<< PREVIOUSNEXT >>

 

 

NGINX SERVER


 

LINUX SERVER RHEL/CENTOS 7.X

  1. Log in to the RHEL/CentOS 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 text to the ExecStar argument

      /opt/virsec/vsp_memory/vsp-memory

       

       

      1. Before Change:

         

        ExecStart=<Nginx_Directory>/nginx -c /etc/nginx/nginx.conf

         

      2. After Change:

         

        ExecStart=/opt/virsec/vsp_memory/vsp-memory <Nginx_Directory>/nginx -c /etc/nginx/nginx.conf

         

    4. Save the file nginx.service

    5. Execute the below commands to start the service:

      1. systemctl daemon-reload

         

         

      2. service nginx start

         

         

 

<< PREVIOUSNEXT >>