tegine編譯安裝

./configure --prefix=/usr/local/webserver/tengine --with-http_lua_module --with-zlib=/usr/local/webserver/zlib-1.2.11 --with-openssl=/usr/local/webserver/openssl-1.0.2k --with-pcre=/usr/local/webserver/pcre-8.40/ \
--add-module=/usr/local/webserver/ngx_devel_kit \
--add-module=/opt/openresty-1.11.2.3/bundle/headers-more-nginx-module-0.32 \
--add-module=/opt/openresty-1.11.2.3/bundle/rds-json-nginx-module-0.14 \
--add-module=/opt/openresty-1.11.2.3/bundle/ngx_coolkit-0.2rc3 \
--add-module=/opt/openresty-1.11.2.3/bundle/memc-nginx-module-0.18 \
--add-module=/opt/openresty-1.11.2.3/bundle/echo-nginx-module-0.60 \
--add-module=/opt/openresty-1.11.2.3/bundle/redis-nginx-module-0.3.7 \
--add-module=/opt/openresty-1.11.2.3/bundle/encrypted-session-nginx-module-0.06 \
--add-module=/opt/openresty-1.11.2.3/bundle/form-input-nginx-module-0.12 \
--add-module=/opt/openresty-1.11.2.3/bundle/array-var-nginx-module-0.05 \
--add-module=/opt/openresty-1.11.2.3/bundle/iconv-nginx-module-0.14 \
--add-module=/opt/openresty-1.11.2.3/bundle/rds-csv-nginx-module-0.07 \
--add-module=/opt/openresty-1.11.2.3/bundle/xss-nginx-module-0.05 \
--add-module=/opt/openresty-1.11.2.3/bundle/ngx_postgres-1.0rc7 \
--add-module=/opt/openresty-1.11.2.3/bundle/redis2-nginx-module-0.14 \
--add-module=/opt/openresty-1.11.2.3/bundle/set-misc-nginx-module-0.31 \
--add-module=/opt/openresty-1.11.2.3/bundle/srcache-nginx-module-0.31 \
--add-module=/opt/openresty-1.11.2.3/bundle/ngx_lua_upstream-0.06 \
--with-http_realip_module \
--with-ld-opt="-Wl,-rpath,/usr/lib64" \
--with-luajit-lib=/usr/lib64 \
--with-luajit-inc=/usr/include/luajit-2.0

yum -y install luajit luajit-devel postgresql-libs


調整timewait過多情況:

net.ipv4.tcp_syncookies = 1

net.ipv4.tcp_tw_reuse = 1

net.ipv4.tcp_tw_recycle = 1

net.ipv4.tcp_fin_timeout = 30


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章