时间:2021-07-01 10:21:17 帮助过:5人阅读
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结束进程
以上就介绍了Windows下无法使用Nginx作为一个http文件服务器(权限问题?),包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。