ngx_php7_tracker追踪 PHP7 运行的 Nginx 模块
ngx_php7_tracker
ngx_php7 的分支,追踪php7脚本运行的opcode、函数栈调用的nginx模块。
环境
- PHP 7.0.*
- nginx-1.6.3
安装
$ wget http://php.net/distributions/php-7.0.14.tar.gz $ tar xf php-7.0.14.tar.gz $ cd php-7.0.14 $ ./configure --prefix=/path/to/php \ --enable-embed $ make && make install
$ git clone https://github.com/rryqszq4/ngx_php7_tracker.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 PHP_BIN=/path/to/php/bin $ export PHP_INC=/path/to/php/include/php $ export PHP_LIB=/path/to/php/lib $ ./configure --user=www --group=www \ --prefix=/path/to/nginx \ --with-ld-opt="-Wl,-rpath,$PHP_LIB" \ --add-module=/path/to/ngx_php7_tracker $ make $ make install
概要
user www www; worker_processes 4; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; keepalive_timeout 65; client_max_body_size 10m; client_body_buffer_size 4096k; php_ini_path /usr/local/php/etc/php.ini; server { listen 80; server_name localhost; location /content_by_php { content_by_php ' header("Content-Type: text/html;charset=UTF-8"); require_once("/home/www/yaf/cg/output/Sample/index.php"); '; } location /opcode_by_php { opcode_by_php ' header("Content-Type: text/html;charset=UTF-8"); require_once("/home/www/yaf/cg/output/Sample/index.php"); '; } location /stack_by_php { stack_by_php ' header("Content-Type: text/html;charset=UTF-8"); require_once("/home/www/yaf/cg/output/Sample/index.php"); '; } } }
指令
opcode_by_php
stack_by_php
评论
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
ngx_ruby嵌入 ruby 脚本的 Nginx 模块
ngx_rubyngx_ruby是嵌入ruby脚本的Nginx模块。环境ruby-2.3.*nginx-1.6.3+安装$ git clone https://github.com/rryqszq4/
ngx_ruby嵌入 ruby 脚本的 Nginx 模块
0
ngx_ruby嵌入 ruby 脚本的 Nginx 模块
ngx_rubyngx_ruby 是嵌入 ruby 脚本的 Nginx 模块。环境ruby-2.3.
ngx_ruby嵌入 ruby 脚本的 Nginx 模块
0
Nginx Static EtagsNginx 扩展模块
NginxStaticEtags是一个Nginx扩展模块,实现为静态文件生成ETag的功能。不过Nginx从1.3.3版本开始就可通过 etagon|off;指令来实现同样功能,详情请看这里。使用方法
Nginx Static EtagsNginx 扩展模块
0