1,更新系统 sudo apt-get update 2,安装nginx sudo apt-get install nginx 3,验证是否安装成功 curl 127.0.0.1 常用配置文件和命令 默认nginx.conf路径:/etc/nginx/nginx.conf 关闭nginx: sudo systemctl stop nginx 启动nginx sudo systemctl start nginx 修改配置文件后,重新加载改变后的配置: sudo systemctl reload n…