NginX Version : 1.4.2
<의존 패키지 설치>
yum -y install gcc g++ cpp gcc-c++
yum -y install pcre-devel
yum -y install openssl openssl-devel
yum -y install gd gd-devel
<NginX 설치>
다운로드 : wget http://nginx.org/download/nginx-1.4.2.tar.gz
압축 해제 : tar -zxvf nginx-1.4.2.tar.gz
압축 풀린 nginx-1.4.2 폴더로 이동 후, configure
./configure --prefix=$HOME/nginx \
--conf-path=$HOME/nginx/conf/nginx.conf \
--sbin-path=$HOME/nginx/sbin/nginx \
--lock-path=$HOME/nginx/lock/nginx.lock \
--pid-path=$HOME/nginx/run/nginx.pid \
--http-client-body-temp-path=$HOME/nginx/lib/nginx/body \
--http-proxy-temp-path=$HOME/nginx/lib/nginx/proxy \
--http-fastcgi-temp-path=$HOME/nginx/lib/nginx/fastcgi \
--http-uwsgi-temp-path=$HOME/nginx/lib/nginx/uwsgi \
--http-scgi-temp-path=$HOME/nginx/lib/nginx/scgi \
--http-log-path=$HOME/nginx/log/access.log \
--error-log-path=$HOME/nginx/log/error.log \
--with-http_addition_module \
--with-http_degradation_module \
--with-http_flv_module \
--with-http_gzip_static_module \
--with-http_image_filter_module \
--with-http_mp4_module \
--with-http_random_index_module \
--with-http_realip_module \
--with-http_ssl_module \
--with-http_stub_status_module \
--with-http_sub_module \
--with-http_realip_module \
--user=nobody \
--group=nobody
설치 : make && make install
TAG 프로그래밍
댓글을 달아 주세요
댓글 RSS 주소 : http://www.yongbi.net/rss/comment/570