Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1343853
  • 博文数量: 416
  • 博客积分: 10495
  • 博客等级: 上将
  • 技术积分: 4258
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-23 22:13
文章分类

全部博文(416)

文章存档

2015年(7)

2014年(42)

2013年(35)

2012年(14)

2011年(17)

2010年(10)

2009年(18)

2008年(127)

2007年(72)

2006年(23)

2005年(51)

分类: LINUX

2008-03-20 14:41:11

<原创,转载请注明出处

系统centos 5.1,数据库postgresql


1.网络安装opennms关系包
运行命令: rpm -Uvh

2.检查是否安装成功, 运行命令:
[root@opennms vmware]# yum list opennms

Repository opennms-stable-common is listed more than once in the configuration
Repository opennms-stable-rhel5 is listed more than once in the configuration Setting up repositories Reading repository metadata in from local files Available Packages
opennms.noarch 1.3.10-0.8030.snapshot opennms-snapshot

安装这个版本的OpenNMS,运行命令: yum install opennms ; yum会处理包的依赖关系下载安装。

这一步yum会根据opennms的依赖关系到opennms.org下载。(如opennms-webapp、opennms-core、opennms-1.)。opennms-webapp是一个web interface程序

3.配置系统环境变量
vi /etc/profile
OPENNMS_HOME=/opt/opennms
source /etc/profile

 
4.配置postgresql连接安全
service postgresql start
vi /var/lib/pgsql/data/pg_hba.conf
local   all         all  trust
host    all         all         127.0.0.1/32        trust
host    all         all         ::1/128             trust
 
 
5.配置postgreq侦听
vi /var/lib/pgsql/data/postgresql.conf
listen_addresses = 'localhost
有文档说要tcpip_socket = true  这是不完全正确的。在新的版本里,不需要配置,否则不能启动postgresql。
 
service postgresql restart
 
6.指定jdk位置
[root@opennms vmware]# echo $OPENNMS_HOME
/opt/opennms
[root@opennms vmware]# cd /opt/opennms/bin/
runjava  -S /usr/java/jdk1.5.0_15/bin/java
 
 
7.初始化OpenNMS的数据库
[root@opennms bin]# pwd
/opt/opennms/bin
[root@opennms bin]# ./install -disU -l /usr/lib/jni:/usr/lib
 
  - checking table "qrtz_locks"... CREATED
- creating tables... DONE
- inserting initial table data for "distPoller"... OK
- inserting initial table data for "categories"... OK
- inserting initial table data for "qrtz_locks"... OK
- checking if database "opennms" is unicode... ALREADY UNICODE
- checking if iplike is usable... NO
- removing existing iplike definition (if any)... OK
- inserting C iplike function... SKIPPED (location of iplike function not set)
- inserting PL/pgSQL iplike function... OK
- checking for stale eventtime.so references... OK
Installer completed successfully!
 
 
8.
service opennms start
 
9.
lsof -i:8980
 
10.
 
用户名和密码都是admin
 
11.几个较重要的配置文件
/opt/opennms/etc/
include
discovery-configuration.xml
snmp-config.xml
阅读(1651) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~