使用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
使用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
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。