Ubuntu APT sources installed Nginx

Using apt to install nginx, by default Ubuntu comes with the source, not the latest version.

You can use the Ubuntu community to maintain source enthusiasts, address: https://launchpad.net/~nginx/+archive/ubuntu/stable .

Installation is simple:

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

Then you can install nginx:

 

apt-get install nginx

Guess you like

Origin www.cnblogs.com/gao88/p/12006519.html