yum install epel-release
- 安装插件
yum install nginx
- 配置文件在
vim /etc/nginx/nginx.conf
- Nginx启动命令
nginx
- Nginx 停止命令
nginx –s stop
- nginx 重启命令
nginx –s reload
- nginx.conf配置文件头部加user root
yum install epel-release
yum install nginx
vim /etc/nginx/nginx.conf
nginx
nginx –s stop
nginx –s reload