1、nginx日志切割脚本需求来源:nginx本身并没有日志切割的功能,由访问产生的大日志很难进行分析。实现目的:每天对nginx日志进行切割,并备份至指定文件夹。简要指令:mv/usr/local/tengine/logs/access.…
yuminstall-ygccgcc-c++PCRE.wgethttps://netix.dl.sourceforge.net/project/pcre/pcre/8.40/pcre-8.40.tar.gztar-zxvfpcre-8.40…
用这个东西实现了一个js脚本引擎代码生成器,调研的时候这个东西的资料比较少。我就根据自己的这点应用来讲解讲解,有错误,不符的地方还请园友指出。使用Nuget安装MsieJavaScriptEngine我使用的是3.0.3.0版本。添加usi…
packagedemo7;importjava.util.Arrays;importjava.util.List;importjavax.script.Invocable;importjavax.script.ScriptEngine;im…
开源自己封装的sendfile模块,可以高效的通过lua发送文件源码地址:https://github.com/weinyzhou/Lua-sendfile调用方法localsendfile=require"sendfile";sendfi…
1、初始化系统环境net.ipv4.ip_forward=1net.ipv4.conf.default.rp_filter=1net.ipv4.conf.default.accept_source_route=0kernel.sysrq=0…
从http://luajit.org/download.html下载的luajit来安装tengine上,启动时报错如下nginx:[alert]detectedaLuaJITversionwhichisnotOpenResty's;man…
一.两个依赖包有yum的直接yumyum–yinstallopensslopenssl-develprceprce-develzlibzlib-devel没有yum环境的,可以源码安装:cd/usr/localwgethttps://sou…
参考:http://my.oschina.net/eduosi/blog/169606安装readline,lua编译需要用到这个,centos可以通过yum直接安装,如果不需要系统的,可以编译安装yuminstallreadlineyum…
tengine+lua实现时时在线图片缩放,剪切。-epiclight的colorfulworld-开源中国社区
1、安装开发环境#aptituteupdate#aptitudeinstall-ybuild-essential#aptitudeinstall-ylibldap2-devopenssllibssl-dev2、升级gcc和glibc(deb…
环境搭建参考地址:http://www.cnblogs.com/cp-miao/p/7505910.htmlcp.lualocalres1,res2,actionaction=ngx.var.request_methodifaction==…