Ubuntu 安装Nginx的APT源

使用apt安装nginx时,默认是Ubuntu自带的源,版本并不是最新的。

可以使用Ubuntu社区爱好者维护源,地址:https://launchpad.net/~nginx/+archive/ubuntu/stable

安装方法很简单:

sudo add-apt-repository ppa:nginx/stable
sudo apt-get update

然后安装nginx即可:

 

apt-get install nginx
posted @ 2019-12-08 18:01  gao88  阅读(1688)  评论(0编辑  收藏  举报