在Windows 10 ubuntu上将nginx更新到最新版本

时间:2016-11-25 18:54:30

标签: ubuntu nginx windows-10

我最近在我的Windows 10机器上安装了ubuntu shell。然后我使用apt-get install nginx在其上安装了nginx。它安装了nginx版本1.4.6。

我需要一个以nginx 1.9.5开头的功能,但我似乎无法找到超越1.4.6的方法。我执行了apt-cache策略nginx,它告诉我1.4.6是最新版本。事实上,Nginx的最新稳定版本是1.10.1。

1 个答案:

答案 0 :(得分:0)

我找到了答案。我想,它与windows 10 linux shell无关。我在nginx网站(https://www.nginx.com/resources/wiki/start/topics/tutorials/install/)上提到了以下内容:

## Append the following lines to /etc/apt/sources.list and replace $release with your corresponding Ubuntu release
deb http://nginx.org/packages/ubuntu/ $release nginx
deb-src http://nginx.org/packages/ubuntu/ $release nginx

# Then execute the next commands
sudo apt-get update
sudo apt-get install nginx
相关问题