安装
下载对应当前系统版本的nginx包
# wget http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
建立nginx的yum仓库
# rpm -ivh nginx-release-centos-7-0.el7.ngx.noarch.rpm
安装nginx
yum install nginx
启动nginx
systemctl start nginx
版本号
# nginx -v
nginx version: nginx/1.12.2
默认配置文件 /etc/nginx/nginx.conf