Ubuntu 上安装和配置 Nginx 服务器教程 安装Nginx 更新系统软件包列表: sudo apt update 安装Nginx: sudo apt install nginx 启动Nginx服务: sudo systemctl start nginx 设置Nginx开机自启动: s