ngx_ruby嵌入 ruby 脚本的 Nginx 模块
ngx_ruby
ngx_ruby 是嵌入 ruby 脚本的 Nginx 模块。
环境
ruby-2.3.*
nginx-1.6.3+
安装
$ git clone https://github.com/rryqszq4/ngx_ruby.git $ wget 'http://nginx.org/download/nginx-1.6.3.tar.gz' $ tar -zxvf nginx-1.6.3.tar.gz $ cd nginx-1.6.3 $ export RUBY_INC=/path/to/ruby/include/ruby-2.3.0 $ export RUBY_LIB=/path/to/ruby/lib $ ./configure --user=www --group=www \ --prefix=/path/to/nginx \ --add-module=/path/to/ngx_ruby $ make $ make install
摘要
nginx config:
user www www; worker_processes 4; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; keepalive_timeout 65; server { listen 80; server_name localhost; location /content_by_ruby { content_by_ruby " time1 = Time.new Ngx.print('Hello, Ngx_ruby. Current Time : ' + time1.inspect); "; } location /content_by_ruby_file { content_by_ruby_file /ngx_ruby/t/library/hello.rb; } } }
评论
ngx_php7嵌入 php7 脚本的 nginx 模块
ngx_php7 是一个嵌入php7脚本的nginx模块。环境LinuxonlyPHP-7.0.*~PHP-7.4.*nginx-1.4.7~nginx-1.17.8安装$wget'http://ph
ngx_php7嵌入 php7 脚本的 nginx 模块
0
Jx9可嵌入的脚本引擎
Jx9是一个可嵌入的脚本引擎,基于JSON实现了图灵完备(Turingcomplete)的编程语言。Jx9是那些需要流行和高效率脚本支持应用程序(比如:游戏、数据库系统,文本编辑器,网络应用程序等)的
Jx9可嵌入的脚本引擎
0
GoEmPHPGo 嵌入 PHP 脚本
GoEmPHP可以让你在Go程序中嵌入PHP脚本。示例代码:script = php.New()script.Startup()defer script.Close()if err := script
GoEmPHPGo 嵌入 PHP 脚本
0
nginx tcp lua module将 Lua 的功能嵌入 Nginx 服务器
ngx_tcp_lua_module-将Lua的功能嵌入Nginx服务器。在tcp流模式下工作。基于nginx1.4.1版本,本着精简,高效,模块化等原则,吸收nginx-http-lua模块(htt
nginx tcp lua module将 Lua 的功能嵌入 Nginx 服务器
0
ngx_php7_tracker追踪 PHP7 运行的 Nginx 模块
ngx_php7_trackerngx_php7的分支,追踪php7脚本运行的opcode、函数栈调用的nginx模块。环境-PHP7.0.* -nginx-1.6.3 安装$ wget http:/
ngx_php7_tracker追踪 PHP7 运行的 Nginx 模块
0