Chủ Nhật, 28 tháng 4, 2013

Hướng dẫn cài đặt Tengine Web Server từ mã nguồn

Giới thiệu Tengine
Tengine là Web Server hoàn toàn miễn phí được phát triển từ Nginx, bạn có thể xem thêm các thay đổi của Tengine tại http://tengine.taobao.org/changelog.html.
Phiên bản mới nhất hiện tại là  Tengine/1.4.4 được phát triển từ nginx/1.2.7.



Download mã nguồn Tengine
[root@tonode ~]#wget http://tengine.taobao.org/download/tengine-1.4.4.tar.gz
các phiên bản khác: http://tengine.taobao.org/download.html

Giải nén mã nguồn Tengine
[root@tonode ~]#tar zxvf tengine-1.4.4.tar.gz

Cấu hình Tengine
[root@tonode ~]#cd tengine-1.4.4
[root@tonode ~]#./configure \
 --prefix=/etc/nginx \
 --sbin-path=/usr/sbin/nginx
 --conf-path=/etc/nginx/nginx.conf \
 --error-log-path=/var/log/nginx/error.log \
 --http-log-path=/var/log/nginx/access.log \
 --pid-path=/var/run/nginx.pid \
 --lock-path=/var/run/nginx.lock \
 --http-client-body-temp-path=/var/cache/nginx/client_temp \
 --http-proxy-temp-path=/var/cache/nginx/proxy_temp \
 --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp \
 --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp \
 --http-scgi-temp-path=/var/cache/nginx/scgi_temp \
 --user=nginx \
 --group=nginx \
 --without-http_charset_module \
 --without-http_ssi_module \
 --without-http_ssl_module \
 --without-http_autoindex_module \
 --without-http_geo_module \
 --without-http_map_module \
 --without-http_split_clients_module \
 --without-http_referer_module \
 --without-http_proxy_module \
 --without-http_uwsgi_module \
 --without-http_scgi_module \
 --without-http_memcached_module \
 --without-http_limit_conn_module \
 --without-http_limit_req_module \
 --without-http_empty_gif_module \
 --without-http_browser_module \
 --without-http_upstream_check_module \
 --without-http_upstream_least_conn_module \
 --without-http_upstream_session_sticky_module \
 --without-http_upstream_keepalive_module \
 --without-http_upstream_ip_hash_module \
 --without-http_user_agent_module \
 --without-http_stub_status_module \
 --without-http_stub_status_module

Biên dịch và cài đặt Tengine
[root@tonode ~]#make && make install

Không có nhận xét nào:

Đăng nhận xét