centos 安装nginx
rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
yum install -y nginx
systemctl start nginx //启动并开机自动运行
systemctl enable nginx
重启 nginx
nginx -s reload
查看nginx安装路径
ps -ef | grep nginx
默认80端口渲染文件的路径
/usr/share/nginx/html