Chinaunix首页 | 论坛 | 博客
  • 博客访问: 151654
  • 博文数量: 20
  • 博客积分: 2535
  • 博客等级: 少校
  • 技术积分: 410
  • 用 户 组: 普通用户
  • 注册时间: 2006-11-17 11:59
文章分类

全部博文(20)

文章存档

2009年(18)

2008年(2)

我的朋友

分类: LINUX

2008-11-28 11:24:24

jdk安装:
bash jdk-1_5_0_15-linux-i586-rpm.bin
解压tomcat:
tar -zxvf apache-tomcat-5.5.23.tar.gz -C /opt

vi .bash_profile
添加:
export JAVA_HOME=/usr/java/jdk1.5.0_15
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/libexport
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH
export OPENNMS_HOME=/opt/opennms
export CATALINA_HOME=/opt/apache-tomcat-5.5.23

. .bash_profile   //使配置文件生效
java -version     //查看jdk版本
 
service postgresql start
vi /var/lib/pgsql/data/pg_hba.conf
在最后添加:
#local  all    all             ident   sameuser
local all all trust
host all all 127.0.0.1 255.255.255.255 trust
service postgresql restart

cd /opt/opennms/1.6.1/
所有软件包:
apache-tomcat-5.5.23.tar.gz      opennms-core-1.6.1-1.noarch.rpm
jdk-1_5_0_15-linux-i586.rpm      opennms-plugin-ticketer-centric-1.6.1-1.noarch.rpm
jdk-1_5_0_15-linux-i586-rpm.bin  opennms-remote-poller-1.6.1-1.noarch.rpm
jicmp-1.0.7-1.i386.rpm           opennms-webapp-jetty-1.6.1-1.noarch.rpm
opennms-1.6.1-1.noarch.rpm       opennms-webapp-standalone-1.6.1-1.noarch.rpm

rpm -ivh *.rpm

cd /opt/opennms/bin
./runjava -s

vi postgresql.conf
修改:
tcpip_socket = true

service postgresql restart
cd $OPENNMS_HOME
cd bin
ls
./install -dis
./install -y -w /opt/apache-tomcat-5.5.23/conf/Catalina/localhost/
cd apache-tomcat-5.5.23/bin
./startup.sh
ps -ef |grep java

cd /opt/opennms/bin
./opennms start

./runjava -S /usr/java/jdk1.5.0_15/bin/java
 
/etc/init.d/opennms start
 
iptables -vnL
vi /etc/sysconfig/iptables
service iptables restart
 
vi discovery-configuration.xml
 
./opennms status
./opennms stop
./opennms start
./opennms status
./opennms --help
./opennms check
./opennms restart
vi discovery-configuration.xml
[root@monitor etc]# more discovery-configuration.xml
        initial-sleep-time="30000" restart-sleep-time="86400000"
        retries="1" timeout="2000">
 
   
 
      在此处可以添加服务器ip地址网段
 
        file:/opt/opennms/etc/include
 
 

cd ../bin
./opennms restart
chkconfig postgresql on
手动添加服务器:
/opt/OpenNMS/bin/send-event.pl --interface 服务器ip地址 uei.opennms.org/internal/discovery/newSuspect
 
vi /opt/opennms/etc/include
添加单个服务器ip地址

 
以上是我安装的大概步骤。
阅读(1445) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~