使用yum安装
yum install nginx
nginx的配置文件在/etc/nginx/nginx.conf
自定义的配置文件放在/etc/nginx/conf.d
项目文件存放在/usr/share/nginx/html/
日志文件存放在/var/log/nginx/
启动 sudo systemctl start nginx.service
停止 sudo systemctl stop nginx.service
yum install nginx
启动 sudo systemctl start nginx.service
停止 sudo systemctl stop nginx.service
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。