在做一个使用REST API实现基于WEB的增删查改(CRUD)程序,使用lighttpd,后端
使用python。
在ubuntu上配置好lighttpd之后,浏览器输入网址,lighttpd的error.log报如下错
误,看了下感觉很困惑,而且排除了以下问题:
1. 不是权限问题,/tmp/fastcgi.socket-0权限是srwxr-xr-x 1 root root 0 May
5 07:47 /tmp/fastcgi.socket-0
2. 不是lighttpd权限问题,因为我是root用户安装的。
3. 我修改了lighttpd程序,使得lighttpd在ubuntu上以root用户运行,即
username="root", groupname="root"
2015-05-05 07:47:02: (mod_fastcgi.c.1745) connect failed: Connection
refused on unix:/tmp/fastcgi.socket-0
2015-05-05 07:47:02: (mod_fastcgi.c.2864) backend died; we'll disable it
for 1 seconds and send the request to another backend instead: reconnects:
0 load: 1
2015-05-05 07:47:02: (mod_fastcgi.c.2408) unexpected end-of-file (perhaps
the fastcgi process died): pid: 478 socket: unix:/tmp/fastcgi.socket-0
2015-05-05 07:47:02: (mod_fastcgi.c.3189) response not received, request
sent: 835 on socket: unix:/tmp/fastcgi.socket-0 for /app.py?, closing
connection
2015-05-05 07:47:02: (mod_fastcgi.c.1745) connect failed: Connection
refused on unix:/tmp/fastcgi.socket-0
2015-05-05 07:47:02: (mod_fastcgi.c.2864) backend died; we'll disable it
for 1 seconds and send the request to another backend instead: reconnects:
0 load: 1
2015-05-05 07:47:03: (mod_fastcgi.c.2408) unexpected end-of-file (perhaps
the fastcgi process died): pid: 479 socket: unix:/tmp/fastcgi.socket-0
2015-05-05 07:47:03: (mod_fastcgi.c.3189) response not received, request
sent: 779 on socket: unix:/tmp/fastcgi.socket-0 for /app.py?, closing
connection
--
FROM 114.248.168.*