1. Install nginx(using source code)
http://www.nginx.org
Install Prerequisites
Download lastest nginx
Compile and Install
Add User and Hroup
Create an Init Script to Manage nginx
http://www.nginx.org
Install Prerequisites
$sudo apt-get install libpcre3-dev build-essential libssl-dev
Download lastest nginx
$curl -O http://nginx.org/download/nginx-1.0.10.tar.gz
$tar xf nginx-1.0.10.tar.gz
$cd nginx-1.0.10/
$tar xf nginx-1.0.10.tar.gz
$cd nginx-1.0.10/
Compile and Install
$./configure --prefix=/opt/nginx --user=nginx --group=nginx --with-http_ssl_module
$make
$sudo make install
$make
$sudo make install
Add User and Hroup
$sudo adduser --system --no-create-home --disabled-login --disabled-password --group nginx
Create an Init Script to Manage nginx
$wget -O init-deb.sh http://library.linode.com/assets/661-init-deb.sh
$sudo mv init-deb.sh /etc/init.d/nginx
$sudo chmod +x /etc/init.d/nginx
$sudo /usr/sbin/update-rc.d -f nginx defaults
$sudo /etc/init.d/nginx start
$sudo mv init-deb.sh /etc/init.d/nginx
$sudo chmod +x /etc/init.d/nginx
$sudo /usr/sbin/update-rc.d -f nginx defaults
$sudo /etc/init.d/nginx start
728x90
'OS > LINUX' 카테고리의 다른 글
Find UUID on UNBUNTU (0) | 2011.12.12 |
---|---|
How to make softraid using mdadm in UBUNTU 10.10 (0) | 2011.12.12 |
Setting NIS on UBUNTU (0) | 2011.11.30 |
Change ext3 to ext4 (0) | 2011.11.30 |
우분투 한글 폰트가 잘 안나올때 해결법(안티얼라이스, antialias) (0) | 2011.11.30 |