在Windows 10上更新nginx到最新版本的问题ubuntu
问题描述:
我最近在我的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。
答
我找到了答案。我认为,它与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