<< PREVIOUS

 

 

UBUNTU SERVER 14.X ,16.X AND 18.X

  1. Log in to the Ubuntu Host that has Nginx Server installed

  2. If the Nginx Server is running, stop it using the below commands:

    1. service nginx stop

       

       

      OR

    2. <Nginx_Directory>/nginx -s stop

       

       

  3. Verify that all the Nginx processes are stopped using the below command:

    1. ps -ef | grep -i nginx

       

       

  4. If the Nginx processes are still running, kill them using:

    1. kill -9 <nginx-pid>

       

       

  5. Start the Nginx Server with VSP-2.2.0 protection using the below command:

    1. /opt/virsec/vsp_memory/vsp-memory <Nginx_Directory>/nginx

       

       

       

      OR

  6. Start the Nginx Server with VSP-2.2.0 protection as a Service

    1. cd /etc/systemd/system/multi-user.target.wants

       

       

    2. vi nginx.service

       

       

    3. Append the below to the ExecStar argument:

      /opt/virsec/vsp_memory/vsp-memory

       

       

      1. Before Change:

         

        ExecStart=<Nginx_Directory>/nginx -g 'daemon on; master_process on;'

         

      2. After Change:

         

        ExecStart=/opt/virsec/vsp_memory/vsp-memory <Nginx_Directory>/nginx -g 'daemon on; master_process on;'

         

    4. Save the file nginx.service

    5. Execute the below commands to start the service:

      1. systemctl daemon-reload

         

         

      2. systemctl start nginx

         

         

 

<< PREVIOUS