Last active
August 29, 2015 14:05
-
-
Save dodyagung/cb703d62bd6712168b7f to your computer and use it in GitHub Desktop.
Install Nginx 1.6.1 on Centos 6.5
This file contains hidden or 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
rpm -Uvh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm | |
yum update | |
yum install nginx -y | |
vi /etc/nginx/nginx.conf | |
error_log /dev/null crit; | |
access_log /dev/null main; | |
vi /etc/nginx/conf.d/default.conf | |
port_in_redirect off; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
chkconfig --levels 235 nginx on | |
service nginx restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment