1. 修改安装源, nano 编辑
/etc/apt/sources.list

添加nginx的官方安装源:

deb http://nginx.org/packages/debian/ squeeze nginx
deb-src http://nginx.org/packages/debian/ squeeze nginx
  1. 然后运行 update 并重新安装 nginx即可:
apt update
apt install nginx
如果觉得我的文章对你有用,请随意赞赏