Created
February 14, 2013 17:12
-
-
Save kaishin-r/4954358 to your computer and use it in GitHub Desktop.
Install Nginx on CentOS 6 via yum
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
// 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