首页 > 新文章
  • 在CentOS 6.8 x86_64的nginx 1.10.3上开启http2功能 is a project mainly written in , based on the .在原有基础上修改编译选项来开启http2 回见 http://blog.csdn.net/tao_627/article/details/60957521 在nginx源码目录下的configure选项中加入--with-http_v2_module,由于HTTP2需要SSL的支持,因此如缺少--with-http_ssl_m...

  • Bcache状态和配置文件详细介绍(翻译自官网) is a project mainly written in , based on the .参考文献...

  • 在Ubuntu 16.04.3 LTS上运行go install出错的问题 is a project mainly written in , based on the .1.我在.go文件的当前目录下面运行go install出现下面的错误: go install hello.go go install: no install location for .go files listed on command line (GOBIN not set) 此时设置了GOPATH宏,但是没有GOB...

  • 在CentOS 6.9 x86_64上搭建全功能的OpenResty 1.13.6.1笔记 is a project mainly written in , based on the .好久没有玩OpenResty,这段时间机会难得,赶紧实践一下。下面是我在rMBP的CentOS 6.9 x86_64虚拟机上安装目前最新版OpenResty 1.13.6.1的笔记。 OpenResty的下载地址是 https://openresty.org/cn/download.html 下面按照步骤说明如下:...

  • 在Ubuntu 16.04.3 LTS上搭建Go语言环境实录 is a project mainly written in , based on the .1.安装 sudo apt-get install golang-go 目前go的最新版本是1.9.2,但是在Ubuntu 16.04上采用预编译好的包安装的话,只能是go 1.6.x版本。 安装完成之后,查看go的版本号 2.配置环境变量 假定我的go脚本存放在~/program_develop/go_...

  • 在CentOS 6.9 x86_64搭建Lua开发环境 is a project mainly written in , based on the .安装依赖库 yum -y install readline-dev readline-devel 下面源码编译lua时需要用到 安装lua-5.1.5 wget http://www.lua.org/ftp/lua-5.1.5.tar. tar zxvf lua-5.1.5.tar.gz cd lua-5.1.5...

  • 在CentOS 6.9 x86_64上玩转OpenResty 1.13.6.1中的resty-cli模块 is a project mainly written in , based on the .resty-cli是OpenResty中命令行工具的集合,其中resty工具是最有用的。 安装好OpenResty之后,resty-cli就会默认安装,以我的安装为例,参见博文 http://blog.csdn.net/tao_627/article/details/78912545 它的位置在/opt/openresty/b...

  • 在CentOS 6.9 x86_64的OpenResty 1.13.6.1上使用基于Redis实现动态路由示例 is a project mainly written in , based on the .下面是我阅读春哥OpenResty官网主页中“Dynamic Routing Based On Redis”一节的实操记录,整理如下。 https://openresty.org/cn/dynamic-routing-based-on-redis.html 这个例子展示了利用Redis将进来的请求,依据User-Agent头的...

  • 在CentOS 6.9 x86_64的OpenResty 1.13.6.1上使用LuaRocks示例 is a project mainly written in , based on the .下面是我阅读春哥OpenResty官网主页中“Using LuaRocks”一节的实操记录,整理如下。 https://openresty.org/cn/using-luarocks.html 1.在CentOS 6.9 x86_64搭建Lua开发环境 详细过程参见本博博文 http://blog.csdn.net/tao_6...

  • OpenResty学习中的几个小例子汇总 is a project mainly written in , based on the ....

  • 在CentOS 6.9 x86_64上安装redis 4.0.6 is a project mainly written in , based on the .1.安装依赖 yum install -y wget gcc make tcl 2.下载源码并安装 进入redis官网 https://redis.io/download/ 下载最新版 wget http://download.redis.io/releases/redis-4.0.6.tar.gz tar xzf...

  • 在CentOS 6.9 x86_64上开启nginx 1.12.2的stub_status模块(ngx_http_stub_status_module)监控 is a project mainly written in , based on the .Nginx中的stub_status模块主要用于查看Nginx的一些状态信息.  本模块默认是不会编译进Nginx的,如果你要使用该模块,则要在编译安装Nginx时指定: ./configure --with-http_stub_status_module  基础的nginx搭建参见本博博文 http://blog.cs...

  • 在CentOS 6.9 x86_64上安装nginx 1.12.2 is a project mainly written in , based on the .比较详细的教程参见以前的博文 http://blog.csdn.net/tao_627/article/details/60957521 这里只给出简略步骤,没有截图,自始至终使用root操作 目前最新的源码地址 ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/...

  • 在CentOS 6.9 x86_64的nginx 1.12.2上开启ngx_req_status模块实录 is a project mainly written in , based on the .ngx_req_status是一个第三方模块,它用来展示nginx请求状态信息,类似于apache的status,ats的stats_over_http和channel_stats,nginx自带的模块只能显示连接数等等信息,我们并不能知道到底有哪些请求、以及各url域名所消耗的带宽是多少。ngx_req_status提供了这些功能:...

  • 在CentOS 6.9 x86_64上开启nginx 1.12.2的proxy_cache缓存配置 is a project mainly written in , based on the .本文研究nginx提供的缓存功能,下面是实操记录。 这篇博文基于前面文章的基础上搭建,至始至终都是root用户操作 http://blog.csdn.net/tao_627/article/details/78953800 缓存清除功能需要借助第三方模块ngx_cache_purge,其链接如下 https://github...

  • 解决github push错误403 Forbidden while accessing is a project mainly written in , based on the .业务场景...

  • 在CentOS 6.9 x86_64的nginx 1.12.2上开启ngx_http_empty_gif_module模块实录 is a project mainly written in , based on the .ngx_http_empty_gif_module是nginx自带的标准模块,它只返回一个保存在内存中的透明像素的GIF图片(速度当然比硬盘上读取的速度快很多),多用于传递统计参数,用在location上下文中。 该模块默认就是开启的。 配置 location ~ /test_[0-9].gif {empty_gif;...

  • 在CentOS 6.9 x86_64的nginx 1.12.2上开启echo-nginx-module模块实录 is a project mainly written in , based on the .echo-nginx-module是一个第三方模块,在nginx源码中没有,但是OpenResty中有,它为nginx.conf带来了echo,sleep,time等多个类似bash的强大命令。 目前最新版本是v0.61 安装指南参见 https://github.com/openresty/echo-nginx-modul...

  • 在CentOS 6.9 x86_64的nginx 1.12.2上安装第三方模块set-misc-nginx-module实录 is a project mainly written in , based on the .set-misc-nginx-module模块是标准的HttpRewriteModule指令的扩展,提供更多的功能,如URI转义与非转义、JSON引述、Hexadecimal/MD5/SHA1/Base32/Base64编码与解码、随机数等等。在后面的应用中,都将会接触使用到这个模块的。该模块是由章亦春先生开发的,他开发的其他模块应用...

  • 在CentOS 6.9 x86_64的nginx 1.12.2上开启ngx_http_geo_module模块实录 is a project mainly written in , based on the .ngx_http_geo_module模块,默认情况下,nginx会加载,除非人为的 --without-http_geo_module。 这个模块提供了一个非常好用的geo指令,可以用它来创建变量,诞生其值依赖于客户端IP地址。 ngx_http_geo_module 模块官网地址 http://nginx.org/en...