# spawn-fcgi -s /var/run/munin-fastcgi-html.sock -U nginx -u munin -g munin munin-fastcgi-html
spawn-fcgi: child exited with: 13
创建.sock文件,但文件大小为0字节。代码13代表什么?
多亏了twitter.com/ngourlay,我找到了Linux使用的系统错误代码列表。它可能对将来的参考有用:http://www.virtsync.com/c-error-codes-include-errno.
它不是详尽的,但部分符合,是一个很好的起点。如果您运行的是Linux系统,请在/usr/include
中查找errno.h
。
摘录:
#define EPERM 1 /* Operation not permitted */
#define ENOENT 2 /* No such file or directory */
#define ESRCH 3 /* No such process */
#define EINTR 4 /* Interrupted system call */
#define EIO 5 /* I/O error */
#define ENXIO 6 /* No such device or address */
#define E2BIG 7 /* Argument list too long */
#define ENOEXEC 8 /* Exec format error */
#define EBADF 9 /* Bad file number */
#define ECHILD 10 /* No child processes */
#define EAGAIN 11 /* Try again */
#define ENOMEM 12 /* Out of memory */
#define EACCES 13 /* Permission denied */
退出代码13被拒绝。试着用-n参数运行这个命令,然后查看/var/log/nginx/error.log