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
标签:centos7,nginx,systemctl,yum,install,linux From: https://www.cnblogs.com/void--main/p/17771620.html