smokeping安裝后的問題!!!急
做的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 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 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"
[火星人
]
smokeping安裝后的問題!!!急已經有656次圍觀
http://coctec.com/docs/service/show-post-11398.html