Windows下无法使用Nginx作为一个http文件服务器(权限问题?),


这里使用的Nginx版本来自于最新的OpenResty。


nginx.conf:

    server {
        listen       8000;
        server_name  chenzx  alias  chenzx.localhost;

        location / {
            root   f:/;
            autoindex on;
            #index  index.html index.htm;
        }
    }


网上找不到解决方案(难道Nginx天生就是用于Linux系统的?)


C:\ngx_openresty-1.9.7.1-win32>nginx.exe

直接命令行nginx启动,无法用Ctrl+Z/C结束掉 ~~~ 坑

nginx在windows下似乎需要用start nginx启动,然后可以再运行nginx -s stop结束进程 

相关内容

    暂无相关文章