Samba & Nginx-resource temporarily unavailable

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.