安装
yum install nginx
vim /etc/nginx/nginx.conf
检查错误
nginx -t
orcd cd /usr/local/sbin;nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful
表示nginx配置正确
重启nginx:
nginx -s reload
Previous

2023-11-19
Next

高亮代码
2023-11-19