Tag Archives: nginx startup script

startup scripts for nginx

Startup script for nginx that can be used for centos. Save the below code in a file named nginx in /etc/init.d/. Chmod its permission to 755. Also make sure that you give the correct path for your conf file in NGINX_CONF_FILE and of the nginx binary location. #!/bin/sh # # nginx – this script starts […]