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