当前位置: 首页 > 工具软件 > spawn-fcgi > 使用案例 >

spawn-fcgi: child exited with: 127

长孙作人
2023-12-01

报错spawn-fcgi: child exited with: 127的解决

]# /usr/local/src/spawn-fcgi-spawn-fcgi-1.6.4/src/spawn-fcgi -a 127.0.0.1 -p 8099 -f /home/codes_13/logserver/logserver_test/cgi_demo/client
spawn-fcgi: child exited with: 127

查看依赖:ldd ./client

[root@master cgi_demo]# ldd ./client
	linux-vdso.so.1 =>  (0x00007fff19de7000)
	libfcgi.so.0 => /usr/lib/libfcgi.so.0 (0x00007fdd34789000)
	libglog.so.0 => not found
	libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fdd34482000)
	libm.so.6 => /lib64/libm.so.6 (0x00007fdd34180000)
	libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fdd33f6a000)
	libc.so.6 => /lib64/libc.so.6 (0x00007fdd33b9d000)
	libnsl.so.1 => /lib64/libnsl.so.1 (0x00007fdd33983000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fdd34994000)

发现 libglog.so.0 => not found

glog需要建立软连接, 正常情况下只要在/usr/lib目录下建立链接就可以了,如果不行的话在/usr/lib64目录下也建立链接:

ln -s /usr/local/lib/libglog.so.0  /usr/lib/libglog.so.0
ln -s /usr/local/lib/libglog.so.0  /usr/lib64/libglog.so.0

解决!

/usr/local/src/spawn-fcgi-spawn-fcgi-1.6.4/src/spawn-fcgi -a 127.0.0.1 -p 8099 -f /home/codes_13/logserver/logserver_test/cgi_demo/client
spawn-fcgi: child spawned successfully: PID: 25999
 类似资料: