Loading

CentOS用yum快速安装nginx

增加nginx源

vim  /etc/yum.repos.d/nginx.repo

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1

 

安装nginx

yum -y install nginx

 

查看配置文件

whereis nginx
nginx: /usr/sbin/nginx /etc/nginx /usr/lib64/nginx /usr/share/nginx /usr/share/man/man8/nginx.8.gz

  

配置nginx

vim /etc/nginx/nginx.conf

posted @ 2016-10-02 17:26  头痛不头痛  阅读(345)  评论(0编辑  收藏  举报