Created
October 19, 2012 09:10
-
-
Save solar/3917091 to your computer and use it in GitHub Desktop.
install nginx with supervisord
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo cp ./nginx.repo /etc/yum.repod.d/ | |
sudo yum install nginx | |
sudo chkconfig nginx off | |
# add 'daemon off' to /etc/nginx/nginx.conf | |
sudo cp ./nginx.ini /etc/supervisord.d/ | |
sudo supervisorctl add nginx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:nginx] | |
command=/usr/sbin/nginx | |
autostart=true | |
autorestart=true | |
user=root | |
priority=400 | |
stderr_logfile=/var/log/nginx/stderr.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[nginx] | |
name=nginx repository | |
baseurl=http://nginx.org/packages/rhel/6/x86_64/ | |
gpgcheck=0 | |
enabled=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment