yum install nginx
修改配置文件
vi /etc/nginx/nginx.conf
输入systemctl status nginx.service 命令,查看服务状态
设置自动启动
systemctl enable nginx
启动
systemctl start nginx
重新加载nginx.config
nginx -s reload
标签:配置文件,ngiunx,nginx,systemctl,contOS,安装
From: https://www.cnblogs.com/dong91/p/17493875.html