荣耀v9内存规格怎么清其他这一项的内存

> 博客详情
摘要: Nginx包含如此多的功能模块怎么能不让人心动呢,模块越多一般说明Nginx涵盖的功能也就也全面。Nginx的模块可以描述为:核心、标准、可选、邮件和第三方的模块。有时,为了实现功能的最优化,我们会选择开启或禁用部分Nginx的功能,这里也提供了开启和禁用Nginx相关模块的方法和命令。如果要学会Nginx的模块应用那么就需要了解这些模块究竟是何作用,这样才能有的放矢。
Nginx 模块必须在编译时就进行选择,目前不支持在运行时进行模块选择。
在编译时,可以通过命令&./configure --help&运行所提供的配置脚本来查看所有支持的编译选项列表(包含可选模块)。
Nginx 核心模块
这些模块是必须的。
配置错误日志、进程、权限等。
配置epoll、kqueue、select、poll等。
标准 HTTP 模块
这些模块是默认均被编译进去的,除非通过configure明确地禁用它们。
控制端口、location、错误页、别名和其他必要配置。
--without-http
基于客户端IP地址允许/拒绝Http请求。
--without-http_access_module
Basic HTTP 认证。
--without-http_auth_basic_module
自动为没有索引页面的目录生成文件列表。
--without-http_autoindex_module
翻译"User-Agent" 字符串。
--without-http_browser_module
对Web页面重新编码。
--without-http_charset_module
在内存中生成一个高1像素、宽1像素的GIF图片,并对外提供服务。
--without-http_empty_gif_module
提供对FastCGI的支持。
--without-http_fastcgi_module
通过IP地址的键值对来设置配置参数。
--without-http_geo_module
支持使用Gzip压缩响应内容。
--without-http_gzip_module
可以设定任意的HTTP响应头。
控制将哪些文件作为索引页面。
限定客户端创建连接的频率。
--without-http_limit_req_module
限定客户端同时建立连接的最大数。从1.1.8起不再推荐使用,建议使用 Limit Conn。
--without-http_limit_zone_module
通过配置参数限定客户端的最大并发连接数。
--without-http_limit_conn_module
可以定制访问日志。
以键值对的方式设定任意配置参数。
--without-http_map_module
支持Memcached。
--without-http_memcached_module
代理上级服务器。
--without-http_proxy_module
基于RefererHTTP请求头对请求进行过滤。
--without-http_referer_module
使用正则表达式对请求进行重写。
--without-http_rewrite_module
支持SCGI协议。
--without-http_scgi_module
基于某些条件将客户端分类。
--without-http_split_clients_module
支持服务器端的include。
--without-http_ssi_module
支持负载均衡。
--without-http_upstream_ip_hash_module (ip_hash directive only)
发行用户身份标识cookie。
--without-http_userid_module
支持uWSGI协议。
--without-http_uwsgi_module
类X-Sendfile模块。
可选 HTTP 模块
下面的模块必须在编译时为&configure&明确地设定相应的启用选项。
可以为页面追加文本。
--with-http_addition_module
允许当剩余内存较低时对某些位置的请求返回 204 或 404 状态码。
--with-http_degradation_module
允许在配置文件中使用 Perl。
--with-http_perl_module
支持 Flash视频(Flash Streaming Video)。
--with-http_flv_module
根据来自&&的 GeoIP 二进制文件中的信息创建变量。
0.8.6, 0.7.63
--with-http_geoip_module
支持 Google 性能工具。
--with-google_perftools_module
提供预压缩的静态文件。
--with-http_gzip_static_module
支持使用 Libgd 对图片进行变换。
--with-http_image_filter_module
允许对 mp4 流进行寻址。
1.1.3, 1.0.7
--with-http_mp4_module
允许使目录索引随机化。
--with-http_random_index_module
允许将 nginx 作为后端服务器。
--with-http_realip_module
允许通过密钥保护指定的文件。
--with-http_secure_link_module
支持 HTTPS/SSL。
--with-http_ssl_module
提供查看服务器统计信息的能力。
--with-http_stub_status_module
可以替换页面中的文本。
--with-http_sub_module
支持 WebDAV 穿透。
--with-http_dav_module
允许对页面使用 XSLT 进行后处理。
--with-http_xslt_module
使 Nginx 能够处理/代理 IMAP、POP3、SMTP协议。
--with-mail--without-mail_pop3_module--without-mail_imap_module--without-mail_smtp_module
使用 Nginx 为邮件服务进行认证。
使 Nginx 能够代理 IMAP、POP3、SMTP协议。
该模块可以让 POP3/IMAP/SMTP 使用 SSL/TLS。
--with-mail_ssl_module
第三方模块和补丁
请参考目录。
人打赏支持
码字总数 43548
支付宝支付
微信扫码支付
打赏金额: ¥
已支付成功
打赏金额: ¥linux_python 的BLOG
用户名:linux_python
文章数:268
评论数:45
访问量:176119
注册日期:
阅读量:5863
阅读量:12276
阅读量:416469
阅读量:1103928
51CTO推荐博文
nginx lua模块淘宝开发的nginx第三方模块,它能将lua语言嵌入到nginx配置中,从而使用lua就极大增强了nginx的能力.nginx以高并发 而知名,lua脚本轻便,两者的搭配堪称完美.接下来请看如何安装nginx + ngx_lua模块.以及最后来个简单的测试.如果你是ubuntu系统,请看 &redis主从架构redis的shell安装脚本,实现在linux下本机主从架构:结合keepalived实现redis群集高可用故障自动切换 : 系统环境:centos/redhat1. 下载安装LuaJIT#&cd&/usr/local/src
#&wget&http://luajit.org/download/LuaJIT-2.0.2.tar.gz
#&tar&-xzvf&LuaJIT-2.0.2.tar.gz
#&cd&LuaJIT-2.0.2
出现如下内容表示编译成功
OK&&&&&&&&Successfully&built&LuaJIT
make[1]:&Leaving&directory&`/usr/local/src/LuaJIT-2.0.2/src'
====&Successfully&built&LuaJIT&2.0.2&====
#&make&install
出现如下内容,表示安装成功
====&Successfully&installed&LuaJIT&2.0.2&to&/usr/local&====2. 下载准备nginx lua模块#&cd&/usr/local/src
#&wget&/chaoslawful/lua-nginx-module/archive/v0.8.6.tar.gz
#&tar&-xzvf&v0.8.6tar&zxvf&ngx_devel_kit-0.2.19-r1.tar.gz
unzip&echo-nginx-module-master.zip3. 查看nginx以前编译配置信息/usr/local/nginx/sbin&-V
configure&arguments:&--prefix=/usr/local/nginx&--pid-path=/var/run/nginx.pid&--lock-path=/var/lock/subsys/nginx&--error-log-path=/var/log/httpd/error_log&--http-log-path=/var/log/httpd/access_log&--with-http_ssl_module&--with-http_dav_module&--with-http_flv_module&--with-http_realip_module&--with-http_gzip_static_module&--with-http_stub_status_module&--with-mail&--with-mail_ssl_module&--with-pcre=../pcre-8.334. 重新编译安装nginx增加相关需要的模块#&cd&/usr/local/src/
#&wget&http://nginx.org/download/nginx-1.4.2.tar.gz
#&cd&nginx-1.4.2
//先导入环境变量,告诉nginx去哪里找luajit
#&export&LUAJIT_LIB=/usr/local/lib
#&export&LUAJIT_INC=/usr/local/include/luajit-2.0
#&--prefix=/usr/local/nginx&--pid-path=/var/run/nginx.pid&--lock-path=/var/lock/subsys/nginx&--error-log-path=/var/log/httpd/error_log&--http-log-path=/var/log/httpd/access_log&--with-http_ssl_module&--with-http_dav_module&--with-http_flv_module&--with-http_realip_module&--with-http_gzip_static_module&--with-http_stub_status_module&--with-mail&--with-mail_ssl_module&--with-pcre=../pcre-8.33&--add-module=../lua-nginx-module-0.9.5rc2/&--add-module=../echo-nginx-module-master&--add-module=../ngx_devel_kit-0.2.19/
#&make&install&&注意:这里如果首次安装nginx需要进行make&install,如果是为nginx增加相关功能模块,则不需要进行make&install操作,要不然会覆盖以前的nignx编译信息。#&cd&/usr/local/src/nginx-1.3.15.需要替换nginx二进制文件,先备份一下原来的启动脚本。[root@vmware1&nginx-1.3.1]#&cp&/usr/local/nginx/sbin/nginx&/usr/local/nginx/sbin/nginx.bak6.需要把nginx进程杀掉,不然复制会报错[root@vmware1&nginx-1.3.1]#&killall&nginx
nginx:&no&process&killed
[root@vmware1&nginx-1.3.1]#&cp&./objs/nginx&/usr/local/nginx/sbin/
cp:&overwrite&`/usr/local/nginx/sbin/nginx’?&yes7.此时,查看下nginx的所有的模块,是否把cache_purge这个模块成功编译进去。[root@vmware1&nginx-1.3.1]#&/usr/local/nginx/sbin/nginx&-V
./objs/nginx:&error&while&loading&shared&libraries:&libluajit-5.1.so.2:&cannot&open&shared&object&file:&No&such&file&or&directory
解决方法:
#&ln&-s&/usr/local/lib/libluajit-5.1.so.2&/lib64/libluajit-5.1.so.2
#export&LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH8.再次查看编译后的模块信息[root@vmware1&nginx-1.3.1]#&/usr/local/nginx/sbin/nginx&-V
built&by&gcc&4.4.7&&(Red&Hat&4.4.7-4)&(GCC)
TLS&SNI&support&enabled
configure&arguments:&--prefix=/usr/local/nginx&--pid-path=/var/run/nginx.pid&--lock-path=/var/lock/subsys/nginx&--error-log-path=/var/log/httpd/error_log&--http-log-path=/var/log/httpd/access_log&--with-http_ssl_module&--with-http_dav_module&--with-http_flv_module&--with-http_realip_module&--with-http_gzip_static_module&--with-http_stub_status_module&--with-mail&--with-mail_ssl_module&--with-pcre=../pcre-8.33&--add-module=../lua-nginx-module-0.9.5rc2/&--add-module=../echo-nginx-module-master&--add-module=../ngx_devel_kit-0.2.19/9. nginx lua配置nginx配置文件加入如下配置:Vim&usr/local/nginx/conf/nignx.conf
&&&&&&&&listen&&&&&&&80;
&&&&&&&&server_name&&192.168.1.5;
&&&&&&&&index&index.
&&&&&&&&root&&/var/www/product/eliteall/v1/
location&~*&^/2328(/.*)&{
&&&&&&&&default_type&'text/plain';
&&&&&&&&content_by_lua&'ngx.say("hello,&ttlsa&lua")';
cd&/var/www/product/eliteall/v1/hosts
mkdir&232810.开启nginx.[root@vmware1&nginx-1.3.1]#&/usr/local/nginx/sbin/nginx
[root@vmware1&nginx-1.3.1]#&netstat&-anpt&|&grep&nginx
tcp&&&&&&&&0&&&&&&0&0.0.0.0:80&&&&&&&&&&&&&&&&&&0.0.0.0:*&&&&&&&&&&&&&&&&&&LISTEN&&&&&&6205/nginx11.访问测试#&curl&http://192.168.1.5/2328/
hello,&ttlsa&lua&//使用curl测试nginx lua测试截图nginx ngx_lua的添加模块到此结束。本文出自 “” 博客,请务必保留此出处
了这篇文章
类别:┆阅读(0)┆评论(0)liangey 的BLOG
用户名:liangey
文章数:154
评论数:34
访问量:23972
注册日期:
阅读量:5863
阅读量:12276
阅读量:416469
阅读量:1103928
51CTO推荐博文
nginx第三方模块下载地址: unzip&ngx_cache_purge-master.zip&
unzip&nginx_tcp_proxy_module-master.zip&
tar&zxvf&nginx-1.8.0.tar.gz&
cd&nginx-1.8.0
#提示:如果没有patch命令
yum&install&patch&-y
patch&-p1&&&/home/nginx_tcp_proxy_module-master/tcp.patch&
./configure&--prefix=/etc/nginx&--with-http_stub_status_module&--with-http_ssl_module&--with-http_realip_module&--add-module=/home/nginx_tcp_proxy_module-master&--add-module=/home/ngx_cache_purge-master
make&&&&make&install#查看已编译的模块:/etc/nginx/sbin/nginx&&-V
nginx&version:&nginx/1.8.0
built&by&gcc&4.4.7&&(Red&Hat&4.4.7-16)&(GCC)&
built&with&OpenSSL&1.0.1e-fips&11&Feb&2013
TLS&SNI&support&enabled
configure&arguments:&--prefix=/etc/nginx&--with-http_stub_status_module&--with-http_ssl_module&--with-http_realip_module&--add-module=/home/nginx_tcp_proxy_module-master&--add-module=/home/ngx_cache_purge-master本文出自 “” 博客,请务必保留此出处
了这篇文章
附件下载:      
类别:┆阅读(0)┆评论(0)
请输入验证码:<div id="at-top" class="wow animated" data-wow-delay="0.3s"
老牛的自留地~~~!
<span class="tipso_style" id="tip-w" data-tipso="
欢迎您关注我们

我要回帖

更多关于 荣耀v9用的什么内存 的文章

 

随机推荐