在 CentOS 7 下安裝 OpenNMS

參考網站:
Quick Installation Guide |
1. 下載安裝程式並解壓縮
# curl -L https://github.com/opennms-forge/opennms-install/archive/1.1.tar.gz | tar xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   134    0   134    0     0    104      0 –:–:–  0:00:01 –:–:–   104
100 16644  100 16644    0     0   6407      0  0:00:02  0:00:02 –:–:– 30595

2. 切換目錄
# cd opennms-install-1.1[@more@]3. 進行安裝
# bash bootstrap-yum.sh
This script installs OpenNMS on  your system. It will
install  all  components necessary  to  run  OpenNMS.

The following components will be installed:

 – Oracle Java 8 JDK
 – PostgreSQL Server
 – OpenNMS Repositories
 – OpenNMS with core services and Webapplication
 – Initialize and bootstrapping the database
 – Start OpenNMS

If you have OpenNMS already installed, don’t use this
script!

If you want to proceed, type YES:YES

4. PostgreSQL 資料庫設定
PostgreSQL initialize                 … OK
PostgreSQL set auth from ident to md5 … OK
Start PostgreSQL database             … OK
PostgreSQL systemd enable             … OK

Enter database username: opennms
Enter database password:

5. 初始化 OpenNMS
Generate OpenNMS data source config   … OK
Initialize OpenNMS                    … OK
Starting OpenNMS                      … OK
OpenNMS systemd enable                … OK

Congratulations
—————

OpenNMS is up and running. You can access the web application with

http://this-systems-ip:8980

Login with username admin and password admin

Please change immediately the password for your admin user!
Select in the main navigation “Admin” and go to “Change Password”

Thank you computing with us.

6. 防火牆設定
# firewall-cmd –zone=public –add-port=8980/tcp –permanen
# firewall-cmd –reload

7. 登入系統 帳號密碼:admin/admin