免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1663 | 回复: 0
打印 上一主题 下一主题

[其他] smokeping安装后的问题!!!急 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-06-19 16:36 |只看该作者 |倒序浏览
做的smokeping,安装完访问页面Error: No such CGI app -  may not exist or is not executable by this process.




系统是debian,环境是nginx的,安装smokeping直接用的apt-get install smokeping,
nginx配置如下图:
server
   {
      listen       50032;
      server_name  10.18.3.253;
      root  /usr/share/smokeping/;

location ~ .*\.cgi$ {
root  /usr/share/smokeping/cgi-bin/;
fastcgi_pass unix:/var/run/nginx-fcgi.sock;
include /etc/nginx/fastcgi_params;
}
}


CGI已经启动
gls:/tmp# ps -aux | grep cgi                  
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root     18786  0.0  0.0  32036  5044 ?        S    14:25   0:00 /usr/bin/perl /etc/nginx-fcgi -l /var/log/nginx-fcgi.log -pid /var/run/nginx-fcgi.pid -S /var/run/nginx-fcgi.sock


smokeping目录下的权限
权限
gls:/usr/share/smokeping# ll
total 12
drwxr-xr-x   9 www-data www-data   89 2013-06-18 20:41 .
drwxr-xr-x 116 root     root     4096 2013-06-19 13:55 ..
drwxr-xr-x   2 www-data www-data    6 2013-06-18 20:41 cache
drwxr-xr-x   2 www-data www-data   47 2013-06-18 20:45 cgi-bin
drwxr-xr-x   4 www-data www-data 4096 2013-06-18 20:42 etc
drwxr-xr-x   3 www-data www-data   41 2013-06-18 20:39 lib
drwxr-xr-x   6 www-data www-data   62 2013-06-18 20:39 oldconfigs
drwxr-xr-x   2 www-data www-data    6 2013-06-18 20:41 var
drwxr-xr-x   3 www-data www-data   36 2013-06-18 20:39 www

现在通过浏览器访问:
http://10.18.3.253:50032/smokeping/cgi-bin/smokeping.cgi
报错:Error: No such CGI app -  may not exist or is not executable by this process.

nginx.error.log日志
2013/06/19 16:06:03 [error] 21371#0: *1 open() "/usr/share/smokeping/favicon.ico" failed (2: No such file or directory), client: 10.18.253.110, server: 10.18.3.253, request: "GET /favicon.ico HTTP/1.1", host: "10.18.3.253:50032"
2013/06/19 16:12:04 [error] 21371#0: *12 open() "/usr/share/smokeping/favicon.ico" failed (2: No such file or directory), client: 10.18.253.110, server: 10.18.3.253, request: "GET /favicon.ico HTTP/1.1", host: "10.18.3.253:50032"
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP