spawn-fcgi:child退出:13

时间:2013-04-30 18:02:34

标签: nginx centos cgi munin spawn-fcgi

# 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,但filesize为0字节。 代码13代表什么?

2 个答案:

答案 0 :(得分:2)

感谢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 */

答案 1 :(得分:0)

退出代码13被拒绝。尝试使用-n参数运行此命令并查看/var/log/nginx/error.log