Opennms -安装
参考官方网站:https://docs.opennms.org/opennms/releases/latest/guide-install/guide-install.html#gi-install-opennms-repo-releases
参考博客 : http://blog.csdn.net/diy8187/article/details/4490656
中文安装请参考01coding.com 中文安装
jdk 安装;
pg 安装;
//设置数据库密码
su - postgres
createuser -P opennms
createdb -O opennms opennms
exit
su - postgres
psql -c "ALTER USER postgres WITH PASSWORD '密码';"
exit
修改数据库加密方式
vi /var/lib/pgsql/data/pg_hba.conf
重启服务
systemctl reload postgresql-10
//////////////////////////////////////////////////////////////////////////////////////
选择安装
Release Description
stable
1 安装源 :${RELEASE} 就是上面的版本
rpm -Uvh https://yum.opennms.org/repofiles/opennms-repo-${RELEASE}-rhel7.noarch.rpm
如:
rpm -Uvh https://yum.opennms.org/repofiles/opennms-repo-stable-rhel7.noarch.rpm
rpm --import https://yum.opennms.org/OPENNMS-GPG-KEY
2 开始安装
yum -y install opennms
//
首先设置一个环境变量,指向OpenNMS的安装位置,便于以后的输入:
export OPENNMS_HOME=/opt/opennms
上面以配置好变量${OPENNMS_HOME} 直接输入:
vi ${OPENNMS_HOME}/etc/opennms-datasources.xml
//配置java 这里注意 S后面是 java安装目录一直到bin/java
$OPENNMS_HOME/bin/runjava -S /usr/jdk1.8.0_144/bin/java
//这里会出现
/////////////////////////////////////////////////////////////////////////////////////////////////////
[root@izopennms]# $OPENNMS_HOME/bin/runjava -S /usr/jdk1.8.0_144/bin/java
runjava: checking specified JRE: "/usr/local/jdk1.8.0_144/bin/java"...
runjava: specified JRE is good.
runjava: value of "/usr/local/jdk1.8.0_144/bin/java" stored in configuration file
/////////////////////////////////////////////////////////////////////////////////////////////////////
//配置数据库
${OPENNMS_HOME}/bin/install -dis
//启动
systemctl enable opennms
systemctl start opennms
//访问:http://<ip-or-fqdn-of-your-server>:8980/opennms
交流请打扫码:关注我的个人微信公共号,也可加我微信,只供技术交流