二、Pre-Built Linux Packages for Stable
To enable automatic updates of Linux packages set up the yum repository for the RHEL/CentOS distributions, or the apt repository for the Debian/Ubuntu distributions.
To set up the yum repository for RHEL/CentOS, choose the corresponding
nginx-release
package from the list:
#rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm
三、This package contains yum configuration file and a public PGP key necessary to authenticate signed RPMs. Download and install it, then run the following:
yum install nginx
四、1 配置所在目錄:/etc/nginx/
2 PID目錄:/var/run/nginx.pid
3 錯誤日誌:/var/log/nginx/error.log
命令:
1 啓動:nginx 2 重啓:killall -HUPnginx 3 測試配置:nginx –t