UBUNTU SERVER 14.X ,16.X AND 18.X
-
Log in to the Ubuntu Host that has Nginx Server installed
-
If the Nginx Server is running, stop it using the below commands:
-
service nginx stop
OR
-
<Nginx_Directory>/nginx -s stop
-
-
Verify that all the Nginx processes are stopped using the below command:
-
ps -ef | grep -i nginx
-
-
If the Nginx processes are still running, kill them using:
-
kill -9 <nginx-pid>
-
-
Start the Nginx Server with VSP-2.2.0 protection using the below command:
-
/opt/virsec/vsp_memory/vsp-memory <Nginx_Directory>/nginx
OR
-
-
Start the Nginx Server with VSP-2.2.0 protection as a Service
-
cd /etc/systemd/system/multi-user.target.wants
-
vi nginx.service
-
Append the below to the ExecStar argument:
/opt/virsec/vsp_memory/vsp-memory
-
Before Change:
ExecStart=<Nginx_Directory>/nginx -g 'daemon on; master_process on;'
-
After Change:
ExecStart=/opt/virsec/vsp_memory/vsp-memory <Nginx_Directory>/nginx -g 'daemon on; master_process on;'
-
-
Save the file nginx.service
-
Execute the below commands to start the service:
-
systemctl daemon-reload
-
systemctl start nginx
-
-