tengine-2.1.0 + Lua + base64

Source: Internet
Author: User

Reference: http://my.oschina.net/eduosi/blog/169606

yum  install readline yum  install readline-devel

wget http://www.lua.org/ftp/lua-5.3.0.tar.gz

Tar XF lua-5.3.0.tar.gz

CD lua-5.3.0/

make linux make installCd.. wget Http://luajit.org/download/LuaJIT-2.0.3.tar.gztar XF LUAJIT-2.0.3.TAR.GZCD luajit-2.0.3/ make make installLn-s/usr/local/lib/libluajit-5.1.so.2/lib64/libluajit-5.1.so.2export Luajit_lib=/usr/local/lib
Export LUAJIT_INC=/USR/LOCAL/INCLUDE/LUAJIT-2.0/  CD. CD tengine-2.1.0 ./configure--prefix=/usr/local/tengine-2.1.0--dso-path=/usr/local/tengine-2.1.0/modules-- With-http_realip_module--with-http_gzip_static_module--with-http_stub_status_module--with-http_concat_module-- with-http_lua_module --http-proxy-temp-path=/var/tmp/tengine-2.1.0/proxy_temp--http-fastcgi-temp-path=/ Var/tmp/tengine-2.1.0/fastcgi_temp--http-uwsgi-temp-path=/var/tmp/tengine-2.1.0/uwsgi_temp-- Http-scgi-temp-path=/var/tmp/tengine-2.1.0/cgi_temp--http-client-body-temp-path=/var/tmp/tengine-2.1.0/client_ Body_temp--http-log-path=/var/log/tengine-2.1.0/access.log--error-log-path=/var/log/tengine-2.1.0/error.log-- With-ld-opt= "-wl,-rpath, $LUAJIT _lib"  make && make Install useradd www ln-s/usr/local/ Tengine-2.1.0/usr/local/nginxmkdir/var/tmp/tengine-2.1.0/client_body_temp-pchown-r www/var/tmp/tengine-2.1.0

Test

location/lua_content {
# MIME type determined by Default_type:
Default_type ' Text/plain ';

Content_by_lua "Ngx.say (' hello,world! ')";
}

Base64

wget http://luaforge.net/frs/download.php/2664/luasocket-2.0.2.tar.gz

tengine-2.1.0 + Lua + base64

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.