使用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