You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
329 B
20 lines
329 B
4 years ago
|
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("<h1>当前进程"..a.."</h1>")
|
||
|
|
||
|
';
|
||
|
}
|
||
|
}
|
||
|
}
|