如何使用apt-ubuntu获取最新的nginx

mon*_*nym 5 linux ubuntu nginx apt

我想在 ubuntu lucid 上使用 apt 安装最新的 nginx。

我按照 nginx wiki 上的说明添加了源代码:

echo "deb  http://ppa.launchpad.net/nginx/stable/ubuntu lucid main" >> /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)

问题是最新的稳定版本是 0.7.67,但是当我使用 apt-cache show 时,它显示为 0.7.65

我如何使用apt安装最新版本?我在 php、mysql 等方面遇到了同样的问题,所以我一直在从源代码安装所有内容,但我想知道是否可以使用 apt 获得所有最新版本。

小智 5

我认为您必须使用以下命令:

sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get install nginx=0.7.67-4ppa1
Run Code Online (Sandbox Code Playgroud)

请记住从启动板包中放入 nginx 的版本。