How to install OpenNMS on CentOS

Source: Internet
Author: User
Tags opennms

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 !!!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.