vi /etc/yum.repos.d/nginx.repo
(https://www.nginx.com/resources/wiki/start/topics/tutorials/install/)
yum info nginx
yum install nginx
启动nginx 服务
service nginx start
查看nginx版本
nginx -v
本地测试nginx服务
curl -i localhost
vi /etc/yum.repos.d/nginx.repo
(https://www.nginx.com/resources/wiki/start/topics/tutorials/install/)
yum info nginx
yum install nginx
启动nginx 服务
service nginx start
查看nginx版本
nginx -v
本地测试nginx服务
curl -i localhost