Nginx : ioctl(FIONBIO) worker_socket 绑定失败

Nginx : ioctl(FIONBIO) worker_socket bind failed

我在本地实验室环境中设置了 Nginx 用于 rtmp 测试。最初,我工作得很好。但是突然间它停止工作了。我不知道为什么。搜索日志后,我发现了这个错误信息。谁能帮我

调试错误日志:

2015/01/31 22:51:13 [debug] 12127#0: auto_push: creating sockets 2015/01/31 22:51:13 [debug] 12127#0: auto_push: create socket '/var/sock/nginx-rtmp.0' 2015/01/31 22:51:13 [debug] 12127#0: auto_push: delete existing socket '/var/sock/nginx-rtmp.0' 2015/01/31 22:51:13 [emerg] 12127#0: ioctl(FIONBIO) worker_socket bind failed (2: No such file or directory) 2015/01/31 22:51:13 [notice] 12125#0: signal 17 (SIGCHLD) received 2015/01/31 22:51:13 [notice] 12125#0: worker process 12127 exited with code 2 2015/01/31 22:51:13 [alert] 12125#0: worker process 12127 exited with fatal code 2 and cannot be respawned 2015/01/31 22:51:13 [debug] 12125#0: shmtx forced unlock

谢谢!

找到问题了。因为套接字创建文件夹没有 nginx 的写权限。一旦我设置了权限,错误就消失了。

谢谢。