安装 #更新包 apt-get update #下载安装nginx apt-get install nginx -y #测试 nginx -t 启动/重启/关闭 service nginx restart service nginx stop service nginx status 配置 #查找 whereis nginx #备份 cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bak