FCGI (The module for supporting FastCGI operation.)
CGI, CGI::Fast (Perl CGI/FastCGI support. Might already be installed localy.) Config::Grammar (The configuration file parser used in smokeping) LWP (The master/slave functionality introduced a dependency on LWP::UserAgent from the libwww-perl (also known as LWP) library. The module is required even if the master/slave mode is not enabled)
[root@localcentos smokeping-2.6.9]# ./setup/build-perl-modules.sh /usr/local/smokeping/thirdparty
[root@localcentos smokeping-2.6.9]# /usr/bin/gmake install
***** smokeping 安装完毕 ********** ##################################################
f.安装中文语言支持
[root@localcentos smokeping-2.6.9]# yum groupinstall "Chinese Support" ###################################################
修改配置httpd.conf文件
[root@localcentos etc]# vi /etc/httpd/conf/httpd.conf 在此文件最后位置加入如下访问控制参数
#########changed by kl 2014/08/15##############
Alias /cache "/usr/local/smokeping/cache/"
Alias /cropper "/usr/local/smokeping/htdocs/cropper/"
Alias /smokeping "/usr/local/smokeping/htdocs/smokeping.fcgi"
AllowOverride None
Options All
AddHandler cgi-script .fcgi .cgi
AllowOverride AuthConfig
Order allow,deny
Allow from all
AuthName "Smokeping"
AuthType Basic
AuthUserFile /usr/local/smokeping/htdocs/htpasswd
Require valid-user
DirectoryIndex smokeping.fcgi
6.设置登录帐号与密码
[root@localcentos etc]# vi /etc/httpd/conf/httpd.conf
[root@localcentos etc]# cd /usr/local/smokeping/htdocs/
[root@localcentos htdocs]# htpasswd -c /usr/local/smokeping/htdocs/htpasswd admin
New password:
Re-type new password:
Adding password for user admin
7.设置smokeping开机启动
[root@localcentos htdocs]# echo "/usr/local/smokeping/bin/smokeping -- logfile=/var/log/smokeping.log 2>&1 &" >> /etc/rc.local 8.启动http和smokeping服务
[root@localcentos htdocs]# service httpd restart
停止 httpd: [失败]
正在启动 httpd:httpd: apr_sockaddr_info_get() failed for localcentos.localdomain
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[确定] 修改httpd.conf文件