読者です 読者をやめる 読者になる 読者になる

nginx install

公式のやつが古いので自分でいれた


#Env

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"


#Script

curl -O http://nginx.org/download/nginx-1.8.0.tar.gz
tar xzvf nginx-1.8.0.tar.gz
cd nginx-1.8.0/
sudo apt-get install gcc g++ make
sudo apt-get install libpcre3 libpcre3-dev
sudo apt-get install zlib1g-dev  
./configure
make
make install


#Result

$ /usr/local/nginx/sbin/nginx  -v
nginx version: nginx/1.8.0