本文共 477 字,大约阅读时间需要 1 分钟。
==========================nginx安装=============================================
rpm -ivh yum install nginx设置开机启动
systemctl enable nginx.service
(1) Nginx配置路径:/etc/nginx/
(2) PID目录:/var/run/nginx.pid
(3) 错误日志:/var/log/nginx/error.log
(4) 访问日志:/var/log/nginx/access.log
(5) 默认站点目录:/usr/share/nginx/html
启动方式
nginx -c /etc/nginx/nginx.conf
systemctl start nginx.servicesystemctl reload nginx.servicesystemctl stop nginx.service转载于:https://blog.51cto.com/guoshaoliang789/2107560