ubuntu下nginx的安装:

ubuntu自带的nginx版本较低,在此,我们定义最新nginx版本地址:
打开按照里面的说明为UBUNTU增加NGINX的源,
(附带php5.3.5ppa地址)
更新源方法1(适合 Ubuntu 9.10 (Karmic) and later)

sudo add-apt-repository ppa:user/ppa-name
替换 ppa:user/ppa-name 为PPA”s 为nginx/development这个ppa的内容在以上打开的页面中有显示

更新源方法2:
手动添加方法打开系统软件源,在增加其它软件中分别增加以下两条地址
sudo vim /etc/apt/sources.list
或者 sudo gedit /etc/apt/sources.list

在打开的页面中选择ubuntu版本,或者下面部分内容,添加到sources.list中

deb  oneiric main deb-src  oneiric main

增加key,并update一下。
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C
更新源之后更新一下:

sudo apt-get update

安装:
sudo apt-get install nginx
安装好后,可通过nginx -V查看安装的nginx版本
卸载nginx的方法如下:
sudo rm -rf /etc/nginx/
sudo rm -rf /usr/sbin/nginx
sudo rm /usr/share/man/man1/nginx.1.gz
sudo apt-get remove nginx*

It’s seen as a last-ditch effort and doesn’t have much effect It’s seen as a last-ditch effort and doesn’t have much effect We at pumpic are constantly working vigorously to improve our application to https://cellspyapps.org/spy-apps-android/ make it more advanced, comprehensive, and reliable so that you could secure your loved ones

标签:
本文连接地址: http://www.fresker.com/archives/427 (转载注明出处)

回复

目前暂无评论

Sorry, 评论已关闭.