Nginx uses cgiwrap-fcgi.pl to support CGI, but frequent Resource temporarily unavailable problems using Nginx to parse CGI should have seen this: Listen www.2cto.com but in actual use often encounter the following problems: 15:35:16 [error] 8483 #0: * 147071273 connect () to unix:/dev/shm/cgiwrap-dispatch.sock failed (11: Resource temporarily unavailable) while connecting to upstream... cause and php-fpm encounter Resource temporarily unavai The reason for lable is the same. The backlog settings are not large enough. Solution: source code around 35th lines, FCGI: OpenSocket $ socket = FCGI: OpenSocket ("/dev/shm/cgiwrap-dispatch.sock", 10 ); # use UNIX sockets-user running this script must have w access to the 'nginx' folder !! Www.2cto.com after the query http://search.cpan.org /~ Skimo/FCGI-0.67/FCGI. PL learned: [php] FCGI: OpenSocket (path, backlog) Creates a socket suitable to use as an argument to Request. path Pathname of socket or colon followed by local tcp port. note that some systems take file permissions into account on Unix domain sockets, so you'll have to make sure that the server can write to the created file, by changing the umask before the call and/or changing perm Issions and/or group of the file afterwards. backlog Maximum length of the queue of pending connections. if a connection request arrives with the queue full the client may receive an error with an indication of ECONNREFUSED. for example, $ socket = FCGI: OpenSocket ("/dev/shm/cgiwrap-dispatch.sock", 1024 ); # use UNIX sockets-user running this script must have w Access to the 'nginx' folder !! In addition, it should be noted that the/dev/shm/cgiwrap-dispatch.sock of this file to the user and the group, nginx to be able to perform w operations on this file, so do not forget: chown nginx. nginx/dev/shm/cgiwrap-dispatch.sock by Liv2005