Env:Ubuntu 14.04.2 LTShtml
Nginx安裝:python
因爲Ubuntu的默認倉庫只有1.4.6,因此不能直接進行安裝。nginx
1.添加PPA(Personal Package Archive site:https://launchpad.net)spa
add-apt-repository ppa:nginx/stable(若是提示未找到此命令,安裝apt-get install software-properties-common[python-software-properties]).net
apt-get updatehtm
apt-get install nginxget
2.源碼安裝:參考 Nginx安裝源碼