这里不就其它参数细节进行探讨,主要针对模块的加载
加载模块
加载一个模块的方法就是在配置的时候加上 --with-xxx_xxx_module
,禁用一个模块的方法就是在后面加上 --without-xxx_xxx_module
这里我们启用几个常用的模块:
- ngx_http_ssl_module : 用来支持 HTTPS
- ngx_http_gzip_static_module : 用来支持文件压缩
- ngx_http_stub_status_module : 用来提供基本的状态信息
- ngx_http_v2_module : 用来支 HTTP/2
- ipv6 : 用来支持 IPV6
加入这几个模块进行编译配置
代码语言:javascript复制[root@iZ11b0k6s5lZ tengine-2.1.2]# ./configure --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module --with-ipv6 --with-http_v2_module
checking for OS
Linux 3.10.0-327.el7.x86_64 x86_64
checking for C compiler ... found
using GNU C compiler
gcc version: 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)
checking for gcc -pipe switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for compiler structure-packing pragma ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for EPOLLRDHUP ... found
checking for O_PATH ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... found
checking for crypt_r() ... found
checking for SO_REUSEPORT ... found
checking for sys/vfs.h ... found
checking for nobody group ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sysinfo() ... found
checking for getloadavg() ... found
checking for /proc/meminfo ... found
checking for sched_yield() ... found
checking for SO_SETFIB ... not found
checking for SO_ACCEPTFILTER ... not found
checking for TCP_DEFER_ACCEPT ... found
checking for TCP_KEEPIDLE ... found
checking for TCP_FASTOPEN ... found
checking for TCP_INFO ... found
checking for accept4() ... found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system byte ordering ... little endian
checking for size_t size ... 8 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 8 bytes
checking for AF_INET6 ... found
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for sys_nerr ... found
checking for localtime_r() ... found
checking for posix_memalign() ... found
checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
checking for PCRE library ... found
checking for PCRE JIT support ... found
checking for OpenSSL library ... found
checking for zlib library ... found
creating objs/Makefile
Configuration summary
using system PCRE library
using system OpenSSL library
md5: using OpenSSL library
sha1: using OpenSSL library
using system zlib library
jemalloc library is disabled
nginx path prefix: "/usr/local/nginx"
nginx binary file: "/usr/local/nginx/sbin/nginx"
nginx configuration prefix: "/usr/local/nginx/conf"
nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
nginx pid file: "/usr/local/nginx/logs/nginx.pid"
nginx error log file: "/usr/local/nginx/logs/error.log"
nginx http access log file: "/usr/local/nginx/logs/access.log"
nginx http client request body temporary files: "client_body_temp"
nginx dso module path: "/usr/local/nginx/modules/"
nginx http proxy temporary files: "proxy_temp"
nginx http fastcgi temporary files: "fastcgi_temp"
nginx http uwsgi temporary files: "uwsgi_temp"
nginx http scgi temporary files: "scgi_temp"
[root@iZ11b0k6s5lZ tengine-2.1.2]# echo $?
0
[root@iZ11b0k6s5lZ tengine-2.1.2]#
编译与安装
代码语言:javascript复制[root@iZ11b0k6s5lZ tengine-2.1.2]# make
make -f objs/Makefile
make[1]: Entering directory `/usr/local/src/tengine-2.1.2'
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I src/proc -I objs
-o objs/src/core/nginx.o
src/core/nginx.c
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I src/proc -I objs
-o objs/src/core/ngx_log.o
src/core/ngx_log.c
...
...
objs/src/http/modules/ngx_http_upstream_dynamic_module.o
objs/src/http/modules/ngx_http_stub_status_module.o
objs/ngx_modules.o
-lpthread -ldl -lcrypt -lpcre -lssl -lcrypto -ldl -lz
make[1]: Leaving directory `/usr/local/src/tengine-2.1.2'
make -f objs/Makefile manpage
make[1]: Entering directory `/usr/local/src/tengine-2.1.2'
sed -e "s|%%PREFIX%%|/usr/local/nginx|"
-e "s|%%PID_PATH%%|/usr/local/nginx/logs/nginx.pid|"
-e "s|%%CONF_PATH%%|/usr/local/nginx/conf/nginx.conf|"
-e "s|%%ERROR_LOG_PATH%%|/usr/local/nginx/logs/error.log|"
< man/nginx.8 > objs/nginx.8
make[1]: Leaving directory `/usr/local/src/tengine-2.1.2'
[root@iZ11b0k6s5lZ tengine-2.1.2]# echo $?
0
[root@iZ11b0k6s5lZ tengine-2.1.2]# make install
make -f objs/Makefile install
make[1]: Entering directory `/usr/local/src/tengine-2.1.2'
test -d '/usr/local/nginx' || mkdir -p '/usr/local/nginx'
test -d '/usr/local/nginx/sbin' || mkdir -p '/usr/local/nginx/sbin'
test ! -f '/usr/local/nginx/sbin/nginx' || mv '/usr/local/nginx/sbin/nginx' '/usr/local/nginx/sbin/nginx.old'
cp objs/nginx '/usr/local/nginx/sbin/nginx'
test -d '/usr/local/nginx/conf' || mkdir -p '/usr/local/nginx/conf'
cp conf/koi-win '/usr/local/nginx/conf'
cp conf/koi-utf '/usr/local/nginx/conf'
cp conf/win-utf '/usr/local/nginx/conf'
test -f '/usr/local/nginx/conf/mime.types' || cp conf/mime.types '/usr/local/nginx/conf'
cp conf/mime.types '/usr/local/nginx/conf/mime.types.default'
test -f '/usr/local/nginx/conf/fastcgi_params' || cp conf/fastcgi_params '/usr/local/nginx/conf'
cp conf/fastcgi_params '/usr/local/nginx/conf/fastcgi_params.default'
test -f '/usr/local/nginx/conf/fastcgi.conf' || cp conf/fastcgi.conf '/usr/local/nginx/conf'
cp conf/fastcgi.conf '/usr/local/nginx/conf/fastcgi.conf.default'
test -f '/usr/local/nginx/conf/uwsgi_params' || cp conf/uwsgi_params '/usr/local/nginx/conf'
cp conf/uwsgi_params '/usr/local/nginx/conf/uwsgi_params.default'
test -f '/usr/local/nginx/conf/scgi_params' || cp conf/scgi_params '/usr/local/nginx/conf'
cp conf/scgi_params '/usr/local/nginx/conf/scgi_params.default'
test -f '/usr/local/nginx/conf/nginx.conf' || cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf'
cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf.default'
test -d '/usr/local/nginx/logs' || mkdir -p '/usr/local/nginx/logs'
test -d '/usr/local/nginx/logs' || mkdir -p '/usr/local/nginx/logs'
test -d '/usr/local/nginx/html' || cp -R html '/usr/local/nginx'
test -f '/usr/local/nginx/conf/browsers' || cp conf/browsers '/usr/local/nginx/conf'
cp conf/browsers '/usr/local/nginx/conf/browsers'
test -d '/usr/local/nginx/logs' || mkdir -p '/usr/local/nginx/logs'
test -d '/usr/local/nginx/modules/' || mkdir -p '/usr/local/nginx/modules/'
test -f '/usr/local/nginx/conf/module_stubs' || cp objs/module_stubs '/usr/local/nginx/conf'
cp objs/module_stubs '/usr/local/nginx/conf/module_stubs'
test -d '/usr/local/nginx/sbin' || mkdir -p '/usr/local/nginx/sbin'
cp objs/dso_tool '/usr/local/nginx/sbin/dso_tool'
chmod 0755 '/usr/local/nginx/sbin/dso_tool'
test -d '/usr/local/nginx/include' || mkdir -p '/usr/local/nginx/include'
test -f 'src/core/nginx.h' && cp 'src/core/nginx.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_config.h' && cp 'src/core/ngx_config.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_core.h' && cp 'src/core/ngx_core.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_log.h' && cp 'src/core/ngx_log.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_palloc.h' && cp 'src/core/ngx_palloc.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_array.h' && cp 'src/core/ngx_array.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_list.h' && cp 'src/core/ngx_list.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_hash.h' && cp 'src/core/ngx_hash.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_buf.h' && cp 'src/core/ngx_buf.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_queue.h' && cp 'src/core/ngx_queue.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_string.h' && cp 'src/core/ngx_string.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_parse.h' && cp 'src/core/ngx_parse.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_inet.h' && cp 'src/core/ngx_inet.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_file.h' && cp 'src/core/ngx_file.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_crc.h' && cp 'src/core/ngx_crc.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_crc32.h' && cp 'src/core/ngx_crc32.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_murmurhash.h' && cp 'src/core/ngx_murmurhash.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_md5.h' && cp 'src/core/ngx_md5.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_sha1.h' && cp 'src/core/ngx_sha1.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_rbtree.h' && cp 'src/core/ngx_rbtree.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_trie.h' && cp 'src/core/ngx_trie.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_segment_tree.h' && cp 'src/core/ngx_segment_tree.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_radix_tree.h' && cp 'src/core/ngx_radix_tree.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_slab.h' && cp 'src/core/ngx_slab.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_times.h' && cp 'src/core/ngx_times.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_shmtx.h' && cp 'src/core/ngx_shmtx.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_connection.h' && cp 'src/core/ngx_connection.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_cycle.h' && cp 'src/core/ngx_cycle.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_conf_file.h' && cp 'src/core/ngx_conf_file.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_resolver.h' && cp 'src/core/ngx_resolver.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_open_file_cache.h' && cp 'src/core/ngx_open_file_cache.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_crypt.h' && cp 'src/core/ngx_crypt.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_proxy_protocol.h' && cp 'src/core/ngx_proxy_protocol.h' '/usr/local/nginx/include'
test -f 'src/event/ngx_event.h' && cp 'src/event/ngx_event.h' '/usr/local/nginx/include'
test -f 'src/event/ngx_event_timer.h' && cp 'src/event/ngx_event_timer.h' '/usr/local/nginx/include'
test -f 'src/event/ngx_event_posted.h' && cp 'src/event/ngx_event_posted.h' '/usr/local/nginx/include'
test -f 'src/event/ngx_event_busy_lock.h' && cp 'src/event/ngx_event_busy_lock.h' '/usr/local/nginx/include'
test -f 'src/event/ngx_event_connect.h' && cp 'src/event/ngx_event_connect.h' '/usr/local/nginx/include'
test -f 'src/event/ngx_event_pipe.h' && cp 'src/event/ngx_event_pipe.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_time.h' && cp 'src/os/unix/ngx_time.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_errno.h' && cp 'src/os/unix/ngx_errno.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_alloc.h' && cp 'src/os/unix/ngx_alloc.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_files.h' && cp 'src/os/unix/ngx_files.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_channel.h' && cp 'src/os/unix/ngx_channel.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_shmem.h' && cp 'src/os/unix/ngx_shmem.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_process.h' && cp 'src/os/unix/ngx_process.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_setaffinity.h' && cp 'src/os/unix/ngx_setaffinity.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_setproctitle.h' && cp 'src/os/unix/ngx_setproctitle.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_atomic.h' && cp 'src/os/unix/ngx_atomic.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_gcc_atomic_x86.h' && cp 'src/os/unix/ngx_gcc_atomic_x86.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_thread.h' && cp 'src/os/unix/ngx_thread.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_socket.h' && cp 'src/os/unix/ngx_socket.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_os.h' && cp 'src/os/unix/ngx_os.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_user.h' && cp 'src/os/unix/ngx_user.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_pipe.h' && cp 'src/os/unix/ngx_pipe.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_sysinfo.h' && cp 'src/os/unix/ngx_sysinfo.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_process_cycle.h' && cp 'src/os/unix/ngx_process_cycle.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_linux_config.h' && cp 'src/os/unix/ngx_linux_config.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_linux.h' && cp 'src/os/unix/ngx_linux.h' '/usr/local/nginx/include'
test -f 'src/os/unix/ngx_syslog.h' && cp 'src/os/unix/ngx_syslog.h' '/usr/local/nginx/include'
test -f 'src/proc/ngx_proc.h' && cp 'src/proc/ngx_proc.h' '/usr/local/nginx/include'
test -f 'src/event/ngx_event_openssl.h' && cp 'src/event/ngx_event_openssl.h' '/usr/local/nginx/include'
test -f 'src/core/ngx_regex.h' && cp 'src/core/ngx_regex.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http.h' && cp 'src/http/ngx_http.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http_request.h' && cp 'src/http/ngx_http_request.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http_config.h' && cp 'src/http/ngx_http_config.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http_core_module.h' && cp 'src/http/ngx_http_core_module.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http_cache.h' && cp 'src/http/ngx_http_cache.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http_variables.h' && cp 'src/http/ngx_http_variables.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http_script.h' && cp 'src/http/ngx_http_script.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http_upstream.h' && cp 'src/http/ngx_http_upstream.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http_upstream_round_robin.h' && cp 'src/http/ngx_http_upstream_round_robin.h' '/usr/local/nginx/include'
test -f 'src/http/ngx_http_busy_lock.h' && cp 'src/http/ngx_http_busy_lock.h' '/usr/local/nginx/include'
test -f 'src/http/modules/ngx_http_ssi_filter_module.h' && cp 'src/http/modules/ngx_http_ssi_filter_module.h' '/usr/local/nginx/include'
test -f 'src/http/v2/ngx_http_v2.h' && cp 'src/http/v2/ngx_http_v2.h' '/usr/local/nginx/include'
test -f 'src/http/v2/ngx_http_v2_module.h' && cp 'src/http/v2/ngx_http_v2_module.h' '/usr/local/nginx/include'
test -f 'src/http/modules/ngx_http_ssl_module.h' && cp 'src/http/modules/ngx_http_ssl_module.h' '/usr/local/nginx/include'
test -f 'src/http/modules/ngx_http_reqstat.h' && cp 'src/http/modules/ngx_http_reqstat.h' '/usr/local/nginx/include'
test -f 'objs/ngx_auto_headers.h' && cp 'objs/ngx_auto_headers.h' '/usr/local/nginx/include'
test -f 'objs/ngx_auto_config.h' && cp 'objs/ngx_auto_config.h' '/usr/local/nginx/include'
make[1]: Leaving directory `/usr/local/src/tengine-2.1.2'
[root@iZ11b0k6s5lZ tengine-2.1.2]#
[root@iZ11b0k6s5lZ tengine-2.1.2]# echo $?
0
[root@iZ11b0k6s5lZ tengine-2.1.2]#
查看模块
代码语言:javascript复制[root@iZ11b0k6s5lZ tengine-2.1.2]# /usr/local/nginx/sbin/nginx -V
Tengine version: Tengine/2.1.2 (nginx/1.6.2)
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)
TLS SNI support enabled
configure arguments: --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module --with-ipv6 --with-http_v2_module
loaded modules:
ngx_core_module (static)
ngx_errlog_module (static)
ngx_conf_module (static)
ngx_dso_module (static)
ngx_syslog_module (static)
ngx_events_module (static)
ngx_event_core_module (static)
ngx_epoll_module (static)
ngx_procs_module (static)
ngx_proc_core_module (static)
ngx_openssl_module (static)
ngx_regex_module (static)
ngx_http_module (static)
ngx_http_core_module (static)
ngx_http_log_module (static)
ngx_http_upstream_module (static)
ngx_http_v2_module (static)
ngx_http_static_module (static)
ngx_http_gzip_static_module (static)
ngx_http_autoindex_module (static)
ngx_http_index_module (static)
ngx_http_auth_basic_module (static)
ngx_http_access_module (static)
ngx_http_limit_conn_module (static)
ngx_http_limit_req_module (static)
ngx_http_geo_module (static)
ngx_http_map_module (static)
ngx_http_split_clients_module (static)
ngx_http_referer_module (static)
ngx_http_rewrite_module (static)
ngx_http_ssl_module (static)
ngx_http_proxy_module (static)
ngx_http_fastcgi_module (static)
ngx_http_uwsgi_module (static)
ngx_http_scgi_module (static)
ngx_http_memcached_module (static)
ngx_http_empty_gif_module (static)
ngx_http_browser_module (static)
ngx_http_user_agent_module (static)
ngx_http_upstream_ip_hash_module (static)
ngx_http_upstream_consistent_hash_module (static)
ngx_http_upstream_check_module (static)
ngx_http_upstream_least_conn_module (static)
ngx_http_upstream_keepalive_module (static)
ngx_http_upstream_dynamic_module (static)
ngx_http_stub_status_module (static)
ngx_http_write_filter_module (static)
ngx_http_header_filter_module (static)
ngx_http_chunked_filter_module (static)
ngx_http_v2_filter_module (static)
ngx_http_range_header_filter_module (static)
ngx_http_gzip_filter_module (static)
ngx_http_postpone_filter_module (static)
ngx_http_ssi_filter_module (static)
ngx_http_charset_filter_module (static)
ngx_http_userid_filter_module (static)
ngx_http_footer_filter_module (static)
ngx_http_trim_filter_module (static)
ngx_http_headers_filter_module (static)
ngx_http_upstream_session_sticky_module (static)
ngx_http_reqstat_module (static)
ngx_http_copy_filter_module (static)
ngx_http_range_body_filter_module (static)
ngx_http_not_modified_filter_module (static)
[root@iZ11b0k6s5lZ tengine-2.1.2]#
此时这四种模块就被添加到 tengine 中了
命令汇总
hostnamectl
wget http://tengine.taobao.org/download/tengine-2.1.2.tar.gz
md5sum tengine-2.1.2.tar.gz
yum install pcre.x86_64 pcre-devel.x86_64 zlib.x86_64 zlib-devel.x86_64 openssl.x86_64 openssl-devel.x86_64
tar -zxvf tengine-2.1.2.tar.gz
cd tengine-2.1.2
./configure --help
./configure --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module --with-ipv6 --with-http_v2_module
make
make install
echo $?
/usr/local/nginx/sbin/nginx -V