-
启用测试连接:
panda --set-test-connection
-
创建Nginx配置文件:
-
创建一个新的配置文件,内容如下:
server list* server -m http -u 'localhost:8443' -d /var/log/nginx/ -e index.html index.html index.html server -b http -u 'localhost:8443' -d / /var/log/nginx/ request -o /var/log/nginx - -m http -u 'localhost:8443' -f - -d -u http - -e -m -c HTTP-Server -X-Request-Connection -X-Request-Method GET -X-Request-Header -X-Request-Content /var/log/nginx/index.html -X-Request-Location /var/log/nginx/index.html response -o /var/log/nginx - -m http -u 'localhost:8443' -f - -d -u http - -e -m -c HTTP-Server -X-Response-Connection -X-Response-Method GET -X-Response-Header -X-Response-Content /var/log/nginx/index.html -X-Response-Location /var/log/nginx/index.html
-
-
编写Nginx脚本:
-
创建一个脚本文件,内容如下:
server -m http -u 'localhost:8443' -d /var/log/nginx -e index.html index.html index.html server -b http -u 'localhost:8443' -d / /var/log/nginx -e index.html server -x -u http -d /var/log/nginx -e index.html index.html index.html
-
-
运行测试脚本:
nginx -g --trace --on=1 --on-diff --on-fail --on-wait --on-error --on-connection test
- 使用
--trace设置日志编号为1。 - 使用
--on=1仅查看日志文件。
- 使用
-
查看测试结果:
- 检查日志文件
nginx.log,查看测试结果和流量数据。
- 检查日志文件
-
获取测速信息:
- 流量百分比:查看请求的流量百分比。
- 平均流量:查看请求的平均流量。
- 最大流量:查看请求的最大流量。
- 最小流量:查看请求的最小流量。
通过以上步骤,可以准确测量Panda VPN节点的流量测速情况。
