Install OpenNMS
RPM of the installation information library
RMP: RedHatPackageManager (RedHat package management tool)
Run the putty.exe tool. Run the command "rpm-Uvhhttp: // others" as the root user after the login name and password.
Prepare OpenNMS for installing the PostgreSQL database.
Run the following command as root:
Yuminstallpostgresqlpostgresql-server command, the system automatically downloads the postgreSQL installation.
Start PostgreSQL first
Run the following command as root:
/Sbin/service‑sqlstart
If you see an error, you must initialize PostgreSQL and run the following command:
/Sbin/servicepostgresqlinitdb
/Sbin/service‑sqlstart
To ensure that PostgreSQL will start after it is restarted, run the "chkconfig" command to start it at startup and run the following command:
/Sbin/chkconfigpostgresqlon
Configure to allow user access to the database
Find/var/lib/pgsql/data/pg_cmd.conf with the following content:
Ident-"trust
Change
You can. After successful, you need to restart the database and run it as root:
/Sbin/servicepostgresqlrestart
Install snmp
You can refer to the following to install
Http://blog.csdn.net/awenluck/article/details/23790457
We strongly recommend that you use OpenNMS-plugin * to install opennms, so that many related files will be installed together.
# Yuminstallopennmsopennms-plugin *
If Complete is displayed, the installation is successful.
Note: opennms-plugin * installs the associated JDK together, so you can directly view the JDK version.
View JavaJDK
# Whichjava
Remember the JDK path, which will be used later.
View the Java JDK version
# Java-version
Set Java path
/Opt/opennms/bin/runjava-S/usr/bin/java
● Install the Table used by OpenNMS In the PostgreSQL database
L-d-toupdatethedatabase
L-I-toinsertanydefadefahathatbelongsinthedatabase
L-s-tocreateorupdatethestoredproceduresOpenNMSusesforcertainkindsofdataaccess
#/Opt/opennms/bin/install-dis
"Installercompletedsuccessfully!" appears !" Indicates successful!
● Set OpenNMS to start upon startup
# Chkconfigopennmson
Set firewall
/Etc/sysconfig/iptables
Add after red
Or close the firewall directly.
# Serviceiptablesstatus view the current Firewall Status
If it is on, execute
# Serviceiptablesstop
# Serviceiptablesrestart
Fixes incompatibility in Chinese Environments
/Opt/opennms/bin/opennms
ADDITIONAL_MANAGER_OPTIONS = "-Duser. language = en-Duser.country = US-Dfile.encoding = UTF-8"
Restart service
# Serviceopennmsrestart
Access page http: // ip address: 8980/opennms/initial Page login page
User: admin
Password: admin
Home Page
Congratulations! installation successful !!!