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
本文标题:centos使用yum安装nginx
本文链接:https://www.haomeiwen.com/subject/asumjxtx.html
网友评论