centos6.4 x64 安裝nginx

一、官網下載http://nginx.org/en/download.html

二、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
相關文章
相關標籤/搜索