0
I work on windows 10 use built-in bash for ubantu

I installed openresty, and start it's nginx with command "nginx -p openresty-test".

我的 nginx.conf 内容是:

worker_processes  2;       
error_log logs/error.log;  
events {
    worker_connections 1024;
}

http {
    server {
        listen 6699;
        location / {
            default_type text/html;

            content_by_lua_block {
                ngx.say("HelloWorld")
            }
        }
    }
}

问题:我尝试 curl " http://localhost:6699 -i",它被阻止,没有任何消息并且没有返回。我使用网络浏览器访问 localhost:6699,它也被阻止了。

I run "ps -ef | grep nginx" show:
27     1  0  2433 ?        00:00:00 nginx: master process ng
29     2  0  2433 ?        00:00:00 grep --color=auto nginx

As we see there is only a master process, no any work process, I doubt that cause my problem, 

我应该怎么做?

4

0 回答 0