컴 파일 설치 nginx

2080 단어
apt-get install htop binutils cpp flex gcc libarchive-zip-perl libc6-dev 
libcompress-zlib-perl m4 libpcre3 libpcre3-dev libssl-dev libpopt-dev 
lynx make perl perl-modules openssl unzip zip autoconf2.13 
gnu-standards automake libtool bison build-essential zlib1g-dev 
ntp ntpdate autotools-dev g++ bc subversion psmisc
apt-get install libmysqlclient-dev libcurl4-openssl-dev libjpeg62-dev 
libpng3-dev libxpm-dev libfreetype6-dev libt1-dev libmcrypt-dev 
libxslt1-dev libbz2-dev libxml2-dev libevent-dev libltdl-dev 
libmagickwand-dev imagemagick
wget http://nginx.org/download/nginx-1.0.10.tar.gz
./configure 
  --prefix=/opt/nginx 
  --conf-path=/etc/nginx/nginx.conf 
  --pid-path=/var/run/nginx.pid 
  --lock-path=/var/lock/nginx.lock 
  --http-log-path=/var/log/nginx/access.log 
  --error-log-path=/var/log/nginx/error.log 
  --http-client-body-temp-path=/var/lib/nginx/body 
  --http-proxy-temp-path=/var/lib/nginx/proxy 
  --http-fastcgi-temp-path=/var/lib/nginx/fastcgi 
  --http-uwsgi-temp-path=/var/lib/nginx/uwsgi 
  --http-scgi-temp-path=/var/lib/nginx/scgi 
  --with-http_stub_status_module 
  --with-http_ssl_module 
  --with-http_realip_module 
  --with-http_gzip_static_module 
  --user=www-data 
  --group=www-data 
  --without-mail_pop3_module 
  --without-mail_imap_module 
  --without-mail_smtp_module
  
make
make install
wget http://nginx-init-ubuntu.googlecode.com/files/nginx-init-ubuntu_v2.0.0-RC2.tar.bz2
tar jxvf nginx-init-ubuntu_v2.0.0-RC2.tar.bz2
mv nginx /etc/init.d
chmod +x /etc/init.d/nginx
update-rc.d -f nginx defaults
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/nginx/sbin
DAEMON=/opt/nginx/sbin/nginx
lockfile=/var/lock/nginx.lock
NGINX_CONF_FILE="/etc/nginx/nginx.conf"

좋은 웹페이지 즐겨찾기