Skip to content

Instantly share code, notes, and snippets.

@solar
Created October 19, 2012 09:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save solar/3917091 to your computer and use it in GitHub Desktop.
Save solar/3917091 to your computer and use it in GitHub Desktop.
install nginx with supervisord
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
[program:nginx]
command=/usr/sbin/nginx
autostart=true
autorestart=true
user=root
priority=400
stderr_logfile=/var/log/nginx/stderr.log
[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