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 

 

posted @ 2023-10-18 11:08  void_main()  阅读(194)  评论(0编辑  收藏  举报