Tengine编译安装config项目清单

本文详细介绍了Nginx的编译配置选项,包括安装路径设置、模块启用与禁用、性能优化及第三方库集成等。对于希望深入了解并定制Nginx功能的用户非常有用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1   --help                             print this message
2
3 --prefix=PATH set installation prefix
4 --sbin-path=PATH set nginx binary pathname
5 --conf-path=PATH set nginx.conf pathname
6 --error-log-path=PATH set error log pathname
7 --pid-path=PATH set nginx.pid pathname
8 --lock-path=PATH set nginx.lock pathname
9
10 --user=USER set non-privileged user for
11 worker processes
12 --group=GROUP set non-privileged group for
13 worker processes
14
15 --builddir=DIR set build directory
16
17 --with-rtsig_module enable rtsig module
18 --with-select_module enable select module
19 --without-select_module disable select module
20 --with-poll_module enable poll module
21 --without-poll_module disable poll module
22
23 --with-file-aio enable file AIO support
24 --with-ipv6 enable IPv6 support
25 --with-syslog enable syslog logging
26
27 --with-http_ssl_module enable ngx_http_ssl_module
28 --with-http_realip_module enable ngx_http_realip_module
29 --with-http_addition_module enable ngx_http_addition_module
30 --with-http_xslt_module enable ngx_http_xslt_module
31 --with-http_image_filter_module enable ngx_http_image_filter_module
32 --with-http_geoip_module enable ngx_http_geoip_module
33 --with-http_sub_module enable ngx_http_sub_module
34 --with-http_dav_module enable ngx_http_dav_module
35 --with-http_flv_module enable ngx_http_flv_module
36 --with-http_slice_module enable ngx_http_slice_module
37 --with-http_mp4_module enable ngx_http_mp4_module
38 --with-http_gzip_static_module enable ngx_http_gzip_static_module
39 --with-http_concat_module enable ngx_http_concat_module
40 --with-http_random_index_module enable ngx_http_random_index_module
41 --with-http_secure_link_module enable ngx_http_secure_link_module
42 --with-http_degradation_module enable ngx_http_degradation_module
43 --with-http_sysguard_module enable ngx_http_sysguard_module
44 --with-http_stub_status_module enable ngx_http_stub_status_module
45
46 --without-http_charset_module disable ngx_http_charset_module
47 --without-http_gzip_module disable ngx_http_gzip_module
48 --without-http_ssi_module disable ngx_http_ssi_module
49 --without-http_userid_module disable ngx_http_userid_module
50 --without-http_footer_module disable ngx_http_footer_module
51 --without-http_access_module disable ngx_http_access_module
52 --without-http_auth_basic_module disable ngx_http_auth_basic_module
53 --without-http_autoindex_module disable ngx_http_autoindex_module
54 --without-http_geo_module disable ngx_http_geo_module
55 --without-http_map_module disable ngx_http_map_module
56 --without-http_split_clients_module disable ngx_http_split_clients_module
57 --without-http_referer_module disable ngx_http_referer_module
58 --without-http_rewrite_module disable ngx_http_rewrite_module
59 --without-http_proxy_module disable ngx_http_proxy_module
60 --without-http_fastcgi_module disable ngx_http_fastcgi_module
61 --without-http_uwsgi_module disable ngx_http_uwsgi_module
62 --without-http_scgi_module disable ngx_http_scgi_module
63 --without-http_memcached_module disable ngx_http_memcached_module
64 --without-http_limit_zone_module disable ngx_http_limit_zone_module
65 --without-http_limit_req_module disable ngx_http_limit_req_module
66 --without-http_empty_gif_module disable ngx_http_empty_gif_module
67 --without-http_browser_module disable ngx_http_browser_module
68 --without-http_upstream_ip_hash_module
69 disable ngx_http_upstream_ip_hash_module
70
71 --with-http_perl_module enable ngx_http_perl_module
72 --with-perl_modules_path=PATH set Perl modules path
73 --with-perl=PATH set perl binary pathname
74
75 --http-log-path=PATH set http access log pathname
76 --http-client-body-temp-path=PATH set path to store
77 http client request body temporary files
78 --http-proxy-temp-path=PATH set path to store
79 http proxy temporary files
80 --http-fastcgi-temp-path=PATH set path to store
81 http fastcgi temporary files
82 --http-uwsgi-temp-path=PATH set path to store
83 http uwsgi temporary files
84 --http-scgi-temp-path=PATH set path to store
85 http scgi temporary files
86
87 --without-http disable HTTP server
88 --without-http-cache disable HTTP cache
89
90 --with-mail enable POP3/IMAP4/SMTP proxy module
91 --with-mail_ssl_module enable ngx_mail_ssl_module
92 --without-mail_pop3_module disable ngx_mail_pop3_module
93 --without-mail_imap_module disable ngx_mail_imap_module
94 --without-mail_smtp_module disable ngx_mail_smtp_module
95
96 --with-google_perftools_module enable ngx_google_perftools_module
97 --with-cpp_test_module enable ngx_cpp_test_module
98 --with-backtrace_module enable ngx_backtrace_module
99
100 --add-module=PATH enable an external module
101
102 --with-cc=PATH set C compiler pathname
103 --with-cpp=PATH set C preprocessor pathname
104 --with-cc-opt=OPTIONS set additional C compiler options
105 --with-ld-opt=OPTIONS set additional linker options
106 --with-cpu-opt=CPU build for the specified CPU, valid values:
107 pentium, pentiumpro, pentium3, pentium4,
108 athlon, opteron, sparc32, sparc64, ppc64
109
110 --without-pcre disable PCRE library usage
111 --with-pcre force PCRE library usage
112 --with-pcre=DIR set path to PCRE library sources
113 --with-pcre-opt=OPTIONS set additional build options for PCRE
114
115 --with-md5=DIR set path to md5 library sources
116 --with-md5-opt=OPTIONS set additional build options for md5
117 --with-md5-asm use md5 assembler sources
118
119 --with-sha1=DIR set path to sha1 library sources
120 --with-sha1-opt=OPTIONS set additional build options for sha1
121 --with-sha1-asm use sha1 assembler sources
122
123 --with-zlib=DIR set path to zlib library sources
124 --with-zlib-opt=OPTIONS set additional build options for zlib
125 --with-zlib-asm=CPU use zlib assembler sources optimized
126 for the specified CPU, valid values:
127 pentium, pentiumpro
128
129 --with-libatomic force libatomic_ops library usage
130 --with-libatomic=DIR set path to libatomic_ops library sources
131
132 --with-openssl=DIR set path to OpenSSL library sources
133 --with-openssl-opt=OPTIONS set additional build options for OpenSSL
134
135 --with-debug enable debug logging
复制代码

转载于:https://www.cnblogs.com/jouny/archive/2013/05/23/3094826.html

Tengine 是由淘宝网的工程师开发的Web服务器,基于 Nginx 进行优化,提供了一些额外的特性和模块。安装 Tengine 的步骤根据不同的操作系统和环境可能会有所不同,以下是基于通用 Linux 系统的安装指南: 1. **下载 Tengine 源码包** 访问 Tengine 的官方下载页面(http://tengine.taobao.org/download.html)下载适合你的系统的 Tengine 源码压缩包。 2. **安装编译环境** Tengine 需要在具备编译环境的系统上进行编译安装。可以通过包管理工具安装所需的依赖。例如,在基于 Debian 的系统中,你可以使用以下命令安装: ```bash sudo apt-get install build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev openssl libssl-dev ``` 对于基于 RedHat 的系统,可以使用: ```bash sudo yum groupinstall 'Development Tools' sudo yum install pcre-devel zlib-devel openssl-devel ``` 3. **解压源码包** 将下载的源码包解压到本地目录: ```bash tar -zxvf tengine-版本号.tar.gz cd tengine-版本号 ``` 4. **编译安装** 在源码目录中运行 `./configure` 命令来检查系统环境并配置安装选项。如果你需要指定安装路径,可以使用 `--prefix` 参数: ```bash ./configure --prefix=/path/to/your/directory ``` 配置成功后,使用 `make` 和 `make install` 命令编译安装: ```bash make sudo make install ``` 5. **配置 Tengine** 安装完成后,Tengine 的配置文件通常位于 `/path/to/your/directory/conf` 目录下,你需要编辑 `nginx.conf` 文件以及其它可能的配置文件,如虚拟主机配置等,以满足你的需求。 6. **启动 Tengine** 完成配置后,通过以下命令启动 Tengine: ```bash cd /path/to/your/directory ./sbin/nginx ``` 你也可以使用 `./sbin/nginx -s reload` 来重载配置文件。 7. **验证安装** 在浏览器中访问服务器的 IP 地址或域名,看看 Tengine 是否正常工作。 请注意,具体步骤可能会根据 Tengine 的版本和你的系统环境有所不同。务必参考 Tengine 官方文档或安装指南以获取最新的安装信息。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值