Skip to content

Instantly share code, notes, and snippets.

@kaishin-r
Created February 14, 2013 17:12
Show Gist options
  • Save kaishin-r/4954358 to your computer and use it in GitHub Desktop.
Save kaishin-r/4954358 to your computer and use it in GitHub Desktop.
Install Nginx on CentOS 6 via yum
// uninstall all previous Apache and PHP related RPMs
# yum remove httpd* php*
// enable both repositories
# yum install yum-priorities -y
# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# yum install nginx
// run nginx by default when the system boots
# chkconfig --level 345 nginx on
// start nginx for the first time
# /etc/init.d/nginx start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment