我最近在我的windows10机器上安装了ubuntu shell。然后我使用apt-get install nginx在上面安装了nginx。它安装了nginx的1.4.6版本。
我需要一个从nginx 1.9.5开始的特性,但我似乎找不到高于1.4.6的方法。我执行apt-cache policy nginx,结果显示1.4.6是最新版本。事实上,Nginx的最新稳定版本是1.10.1。
发布于 2016-11-29 12:25:28
我找到了答案。我认为,这与windows10linux 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 nginxhttps://stackoverflow.com/questions/40810952
复制相似问题