# 安装ngixn
yum install nginx
# 修改配置文件 默认在 /etc/nginx目录下
# 查看nginx状态
systemctl status nginx
# 启动nginx
systemctl start nginx
# 停止nginx
systemctl stop nginx
# 重启nginx
systemctl restart nginx
————————————————————————我是分割线———————————————————————————————
#重新加载
./nginx -s reload
#重启
./nginx -s reopen
#停止
./nginx -s stop
#退出
./nginx -s quit
#测试配置是否有语法错误
nginx -t
网友评论