时间:2023-03-02来源:系统屋作者:zhijie
3、打包tengine
# mkdir /tmp/tengine
# cd /usr/local/src
# wget -O lua-nginx-module-0.9.16.tar.gz https://codeload.github.com/openresty/lua-nginx-module/tar.gz/v0.9.16
# tar xvzf lua-nginx-module-0.9.16.tar.gz
# wget http://tengine.taobao.org/download/tengine-2.1.0.tar.gz
# tar xvzf tengine-2.1.0.tar.gz
# cd tengine-2.1.0
# 。/configure --prefix=/opt/share/nginx \
--sbin-path=/opt/sbin/nginx \
--conf-path=/opt/etc/nginx/nginx.conf \
--error-log-path=/opt/log/nginx/error.log \
--http-log-path=/opt/log/nginx/access.log \
--user=nginx \
--group=nginx \
--http-client-body-temp-path=/opt/lib/nginx/tmp/client_body \
--http-proxy-temp-path=/opt/lib/nginx/tmp/proxy \
--http-uwsgi-temp-path=/opt/lib/nginx/tmp/uwsgi \
--pid-path=/opt/run/nginx.pid \
--lock-path=/opt/lock/subsys/nginx \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_addition_module \
--with-http_gzip_static_module \
--with-http_gunzip_module \
--with-http_secure_link_module \
--with-http_stub_status_module \
--with-http_sysguard_module \
--with-file-aio \
--add-module=。。/lua-nginx-module-0.9.16 \
--with-cc-opt=‘-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security’ \
--with-ld-opt=‘-Wl,-Bsymbolic-functions -Wl,-z,relro’
# make
# make install DESTDIR=/tmp/tengine
# cd /tmp/tengine/opt
# mkdir -p lib/nginx/tmp/{client_body,proxy,uwsgi}
# mkdir -p lock/subsys/nginx
# cd /tmp/tengine
# mkdir etc/rc.d/init.d
# cp /etc/rc.d/init.d/nginx etc/rc.d/init.d
# mkdir etc/logrotate.d
# cp /etc/logrotate.d/nginx etc/logrotate.d
# mkdir tmp
安装之前所要运行的脚本
# vim tmp/install_before.sh
#!/bin/bash
[[ -n `ps aux|grep ngin[x]` ]] && killall -9 nginx
[[ -e /opt/etc/nginx ]] && cp -a /opt/etc/nginx/ /opt/etc/nginx_$(date +%F_%H-%M-%S)
2023-03-01
如何查看Linux加载内置模块的信息2023-03-01
Arch Linux系统下挂载iPhone的方法2023-03-01
Linux系统下安装Tecplot的步骤Linux系统下rmdir和rm命令都是删除的命令,不同的是rmdir命令用来删除目录,而rm命令可以同时删除文件和目录,下面就来具体介绍一下Linux命令rmdir和rm有什么不同。...
2023-03-01