worker_processes 1; error_log logs/error.log; events { worker_connections 1024; } http { server { listen 8080; location / { access_by_lua ' local t = io.popen("checkPort") local a = t:read("*all") ngx.say("

当前进程"..a.."

") '; } } }