solaris下安装ntop,cacti
0
前两天疯了,突然打起那两台废弃sun服务器的主意来,一台fire280,一台u10。搞得我两天时间都废在上面,晕晕乎乎。
计划在u10上装个cacti。fire280装ntop。
装cacti时还没什么问题,从sunfreeware下载各种package,加上相关的,下了一堆。由于这台u10,280除了solaris没别的,所以全部重新装。一路装apache,php,mysql,rrdtool。装ntop是还要装个libpcap,碰到一些问题。
apache:先装了个2.2的,后来运行不起来,改了个2.0的。发现还是有以下问题,
运行时出现出错,察看logs,发现有以下提示
[Wed Aug 02 22:44:34 2006] [notice] Digest: generating secret for digest authent
ication ...
[Wed Aug 02 22:44:34 2006] [crit] (2)No such file or directory: Digest: error ge
nerating secret: No such file or directory
[Wed Aug 02 22:44:34 2006] [notice] Digest: generating secret for digest authent
ication ...
[Wed Aug 02 22:44:34 2006] [crit] (2)No such file or directory: Digest: error ge
nerating secret: No such file or directory
查找资料,把httpd.conf中
#LoadModule auth_digest_module modules/mod_auth_digest.so注释掉以后运行正常
#LoadModule auth_digest_module modules/mod_auth_digest.so注释掉以后运行正常
php:装php包的时候,由于apache的问题,以为php有问题,重新找了个源码来装,要用下面的configure选项
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd --with-png --with-snmp
mysql:装mysql使用package,从mysql网站下一个5.0 的,安装起来倒也没什么问题,不过把cacti装上后,从日志中发现有mysql连接问题
2006-01-09]Warning: mysql_pconnect(): Client does not support authentication protocol requested by server; cons
问题:Warning: mysql_pconnect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client
问题:Warning: mysql_pconnect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client
解决:
> UPDATE mysql.user SET password=OLD_PASSWORD("your_password") WHERE Host="your_host" AND User="your_username" ;
> FLUSH PRIVILEGES;
讨论:这是因为php不支持mysql 4.1新的验证方式。
> UPDATE mysql.user SET password=OLD_PASSWORD("your_password") WHERE Host="your_host" AND User="your_username" ;
> FLUSH PRIVILEGES;
讨论:这是因为php不支持mysql 4.1新的验证方式。
rrdtool:安装rrdtool需要libart,libpng,zlib,freetype。各个Lib 装好后,configure rrdtool会出现找不到的错误提示,这时候需要用以下设置进行configure
solaris:CFLAGS=" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/local/include/freetype2 -D_REENTRANT -I/usr/local/include/libart" ./configure
linux:env CFLAGS=" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/local/include/freetype2 -D_REENTRANT -I/usr/local/include/libart" ./configure
--------------------------------------------------------------------------------------------
280问题更多,还奇怪
开机时配置IP就有问题了
一直以为配置solaris的IP只需要修改hosts,netmasks,defaultrouter 这3个文件,然后重起就好了。
这两天碰到在这3个文件配置好了,但重起后一直不起作用。最后通过ifconfig 先将地址配置好了,
配置文件也是对的,这样重起才有效果。
这两天碰到在这3个文件配置好了,但重起后一直不起作用。最后通过ifconfig 先将地址配置好了,
配置文件也是对的,这样重起才有效果。
然后其它apache等等都用u10的方法都没问题,安装ntop时需要Libpcap,这个怎么也搞不定。package安装,提示找不到。用源码安装路径倒是找到了,就是源码编译成静态的.a文件,ntop需要动态的,而且源码安装libpcap时还出现重起起不来的问题。最后没办法,找两个版本一样的package和源码,先进行源码安装,再进行package安装。总算把这个问题解决了。
源码安装libpcap后,重新启动,发现起不来,启动时提示/sbin/rcS:/dev/null: cannot create
。。
查找资料,boot -s进入单用户,删除/dev/null,重新链接/dev/null
ln -s /devices/pseudo/mm@0:null /dev/null
重新启动正常
。。
查找资料,boot -s进入单用户,删除/dev/null,重新链接/dev/null
ln -s /devices/pseudo/mm@0:null /dev/null
重新启动正常
看来是/dev/null文件被安装libpcap时改掉或删掉了
这样来来去去搞了2天总算把这些东西都搞定了
0 评论:
发表评论