lost and found ( for me ? )

ubuntu 12.04 : install nginx



# tail -1 /etc/lsb-release ;uname -ri
DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
3.2.0-49-virtual x86_64

# apt-get install -y nginx

# nginx -v
nginx version: nginx/1.1.19

start nginx
# /etc/init.d/nginx start
Starting nginx: nginx.





[ install the latest nginx from PPA ]

at first, uninstall nginx if you have installed

root@ubuntu-vm2:~# /etc/init.d/nginx stop
Stopping nginx: nginx.

root@ubuntu-vm2:~# apt-get remove nginx -y

root@ubuntu-vm2:~# apt-get autoremove -y

add a PPA repo.
root@ubuntu-vm2:~# egrep nginx /etc/apt/sources.list
# for nginx
deb http://ppa.launchpad.net/nginx/development/ubuntu precise main
deb-src http://ppa.launchpad.net/nginx/development/ubuntu precise main

root@ubuntu-vm2:~# apt-get update
root@ubuntu-vm2:~# apt-get install nginx

root@ubuntu-vm2:~# nginx -v
nginx version: nginx/1.5.0

root@ubuntu-vm2:~# service nginx start
* Starting nginx nginx                                                  [ OK ]

root@ubuntu-vm2:/etc/nginx# pwd
/etc/nginx
root@ubuntu-vm2:/etc/nginx# ls
conf.d          koi-win        naxsi.rules       proxy_params     sites-enabled
fastcgi_params  mime.types     naxsi_core.rules  scgi_params      uwsgi_params
koi-utf         naxsi-ui.conf  nginx.conf        sites-available  win-utf


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.