Skip to content

guimello/centos_nginx_initd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

CentOS nginx init.d script

Thank this guy here (not me): http://articles.slicehost.com/2009/2/2/centos-adding-an-nginx-init-script

sudo vim /etc/init.d/nginx

Added the content of the nginx file. Pay attention to the nginx path. Change accordingly.

sudo chmod +x /etc/init.d/nginx

sudo /sbin/chkconfig nginx on


Check everything is right with:

chkconfig --list nginx

Now:

sudo /etc/init.d/nginx start|stop|restart|reload|status|configtest

Wee!

About

CentOS nginx init.d script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages