nginx::升级到最新nginx

ubuntu16.04 升级nginx到最新版本

wget http://nginx.org/keys/nginx_signing.key 

sudo apt-key add nginx_signing.key

 

vim /etc/apt/sources.list

deb http://ag-projects.com/ubuntu xenial main
deb-src http://ag-projects.com/ubuntu xenial main

deb http://nginx.org/packages/ubuntu/ xenial nginx
deb-src http://nginx.org/packages/ubuntu/ xenial nginx

 

apt-get install nginx

 

posted @ 2019-07-09 11:18  osbreak  阅读(608)  评论(0编辑  收藏  举报