CentOS 6.x环境下搭建SmokePing(3)

[root@SmokePing etc]# vim /etc/httpd/conf/httpd.conf #在最后添加如下配置,按'G'可直接跳到最后 Alias /cache "/usr/local/smokeping/cache/" Alias /cropper "/usr/local/smokeping/htdocs/cropper/" Alias /smokeping "/usr/local/smokeping/htdocs/smokeping.fcgi" <Directory "/usr/local/smokeping"> AllowOverride None Options All AddHandler cgi-script .fcgi .cgi Order allow,deny Allow from all DirectoryIndex smokeping.fcgi </Directory>

7)修改Graphs.pm配置

[root@SmokePing etc]# vim /usr/local/smokeping/lib/Smokeping/Graphs.pm '--font TITLE:20:"WenQuanYi Zen Hei Mono"', #147行下插入,按:147可跳转到该行

 三、测试

1)启动服务: 

[root@SmokePing etc]# /etc/init.d/httpd restart
停止 httpd: [确定]
正在启动 httpd:httpd: apr_sockaddr_info_get() failed for SmokePing
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
            [确定]

-----------------------------------------------------------------------------------------------------------

[root@SmokePing etc]# /usr/local/smokeping/bin/smokeping start
WARNING: Hostname 'james.address' does currently not resolve to an IPv6 or IPv4 address
Note: logging to syslog as local0/info.
Daemonizing /usr/local/smokeping/bin/smokeping ...

2)打开     #如果打不开,尝试关闭selinux,检查smokeping的配置文件

CentOS 6.x环境下搭建SmokePing

CentOS 6.x环境下搭建SmokePing

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/649918b1f7345024b1376cc6cd4f1f3b.html