Tagged with: Samba nginx CentOS
First talk about my development environment: Win7 + editplus + VMware (centos+samba+nginx), using Samba to share web directories (such as WWW) on Centos, and then access this directory on Win7.
The reasons for this are:
- Accustomed to windows, high efficiency
- EditPlus Editor works well, relative to the VI series
- No differences in code test environment and server operating environment
After all these years, there is a small problem that has been bothering me, under the Win7 modified some. html file, such as test.html, and then through http://vm/test.html Access, will report 500 error:
The contents of the Nginx error log are:
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"
If you edit this file directly on CentOS, it is not the problem, so it is caused by samba.
Workaround:
In the Samba configuration file, add:
Oplocks = No
Level2 oplocks = No
Restart Samba for problem solving. But I don't know what it means ...
Reference:
Http://stackoverflow.com/questions/10202567/nginx-resource-temporarily-unavailable-using-a-samba-share
Samba & Nginx-resource temporarily unavailable