linux centos7用 yum安装nginx
1.nginx中加入nginx软件包
yum install epel-release yum update
2.安装nginx
yum -y install nginx
3.查看nginx相关目录(可跳过)
whereis nginx
4.启动nginx
systemctl start nginx
5.nginx 停止 重启 平滑重启命令
systemctl stop nginx
systemctl restart nginx
systemctl reload nginx
本文来自博客园,作者:void_main(),转载请注明原文链接:https://www.cnblogs.com/void--main/p/17771620.html