使用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刪除。