2016-11-25 161 views
0

我最近在我的windows 10機器上安裝了ubuntu shell。然後我使用apt-get install nginx在其上安裝了nginx。它安裝了nginx的1.4.6版本。在Windows 10上更新nginx到最新版本的問題ubuntu

我需要一個以nginx 1.9.5開頭的功能,但我似乎無法找到超過1.4.6的方法。我執行了apt-cache策略nginx,它告訴我1.4.6是最新版本。事實上,Nginx的最新穩定版本是1.10.1。

回答

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