27 Star 147 Fork 24

GVPOpenNJet / OpenNJet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build_k8s.sh 2.21 KB
一键复制 编辑 原始数据 按行查看 历史
zhaozh1111 提交于 2023-02-02 14:13 . port_mode
#!/bin/bash
#tgtdir=/Users/`whoami`/njet
tgtdir=/etc/njet
tgbindir=/usr/sbin/njet
tglogdir=/var/log/njet/error.log
modulesdir=/usr/lib/njet/modules
flags=" --conf-path=/etc/njet/njet.conf --with-openssl=auto/lib/tassl --with-debug --with-stream --build=NJT1.0 --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --add-module=./modules/njet-stream-proto-module --add-module=./modules/njet-http-health-check-module --add-module=./modules/njet-stream-health-check-module --add-module=./modules/njet-stream-upstream-dynamic-servers-module --add-module=./modules/njet-http-upstream-dynamic-servers-module --add-module=./modules/njet-http-match-module --with-cc=/usr/bin/cc --with-cc-opt=-O0 --prefix=$tgtdir --sbin-path=$tgbindir --modules-path=$modulesdir --error-log-path=$tglogdir"
cdir=`cd $(dirname $0); pwd`
(
cd $cdir
set -e
for option; do
case $option in
conf*)
./configure $flags
;;
make)
make
;;
install)
make install
;;
clean)
make clean
;;
release)
if [ -f ./objs/njet ]; then
make clean
fi
./configure $flags
make;
cp objs/njet objs/njet.debug
objcopy --strip-unneeded ./objs/njet
;;
modules)
if [ -f ./objs/njet ]; then
make clean
fi
./configure $module_flags
make modules;
;;
*)
echo "$0 [conf[igure]|make|install|clean|release]"
;;
esac
done
set +e
)
C
1
https://gitee.com/njet-rd/njet.git
git@gitee.com:njet-rd/njet.git
njet-rd
njet
OpenNJet
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891