更新系统:安装 nginx:
1. 首先,更新系统:
shell
sudo apt-get update
2. 安装 nginx:
shell
sudo apt-get install nginx
3. 检查 nginx 状态:
shell
sudo systemctl status nginx
4. 启动 nginx:
shell
sudo systemctl start nginx
5. 设置 nginx 开机自启动:
shell
sudo systemctl enable nginx
本站系公益性非盈利分享网址,本文来自用户投稿,不代表码文网立场,如若转载,请注明出处
评论列表(4条)