初始化需要的步骤 1. 更新 sudo apt upgrade 2. 安装软件 sudo apt-get install nginx # 修改启动用户为root vi /etc/nginx/nginx.conf # 第一行 # user root;