Samba & Nginx - Resource temporarily unavailable
2015-06-11 17:33
519 查看
先说说本人的开发环境:Win7 + Editplus + VMware(Centos+Samba+Nginx),用Samba在Centos上把web目录(如www)共享,然后在Win7上访问这个目录。
之所以这么用的原因有:
习惯了Windows,效率比较高
Editplus编辑器好用,相对于vi系列来说
代码测试环境和服务器运行环境无差异
用了这么些年,其实有个小问题一直困扰着我,在Win7下修改了某个.html文件,比如test.html ,然后通过http://vm/test.html访问,会报500错误:
Nginx错误日志里面的内容是:
2015/06/11 16:51:29 [crit] 1787#0: *671 open() “/www/test.html” failed (11: Resource temporarily unavailable), client: 192.168.9.1, server: vm, request: “GET /test.html?9 HTTP/1.1”, host: “vm”
如果直接在Centos上编辑这个文件,是没有这个问题的,所以是Samba导致。
解决方法:
在Samba的配置文件里面加入:
oplocks = no
level2 oplocks = no
重启Samba,问题解决。但不明白是啥意思。。。
参考:
http://stackoverflow.com/questions/10202567/nginx-resource-temporarily-unavailable-using-a-samba-share
之所以这么用的原因有:
习惯了Windows,效率比较高
Editplus编辑器好用,相对于vi系列来说
代码测试环境和服务器运行环境无差异
用了这么些年,其实有个小问题一直困扰着我,在Win7下修改了某个.html文件,比如test.html ,然后通过http://vm/test.html访问,会报500错误:
Nginx错误日志里面的内容是:
2015/06/11 16:51:29 [crit] 1787#0: *671 open() “/www/test.html” failed (11: Resource temporarily unavailable), client: 192.168.9.1, server: vm, request: “GET /test.html?9 HTTP/1.1”, host: “vm”
如果直接在Centos上编辑这个文件,是没有这个问题的,所以是Samba导致。
解决方法:
在Samba的配置文件里面加入:
oplocks = no
level2 oplocks = no
重启Samba,问题解决。但不明白是啥意思。。。
参考:
http://stackoverflow.com/questions/10202567/nginx-resource-temporarily-unavailable-using-a-samba-share
相关文章推荐
- Nginx配置文件详细说明
- 生产环境上nginx 不覆盖添加lua模块
- Nginx 负载均衡
- nginx-upstream安装配置
- wdcp(nginx)平滑升级到Tengine 教程!无须重启
- Ubuntu nginx+php+mysql的一些问题总结
- elk收集分析nginx access日志
- Linux服务器(CentOS 6.5)Nginx服务器的安装
- Nginx配置文件nginx.conf中文详解
- NGINX、PHP-FPM开机自动启动
- Nginx和PHP-FPM的启动/重启脚本 [转发]
- Centos 6.5 64bit 安装 nginx+php
- nginx+keepalived实现双机热备高可用性
- Nginx RTMP 功能研究
- nginx---X-Accel-Redirect(X-Sendfile)
- Nginx参数详解
- nginx在varnish后端做负载均衡,后端tomca获取客户端真实IP
- Linux环境下安装Nginx+Pcre+OpenSSL
- Nginx最新解析漏洞
- nginx报错:Permission denied