CentOS OpenNMS installation tutorial

Source: Internet
Author: User
Tags opennms
Install the RPMRMP: Ghost tool of the OpenNMS Installation Information Library. after logging in to the name and password, run the command as root: rpm-Uvhhttp: // yum.opennms.org/repofiles to install OpenNMS

 

RPM of the installation Information Library

 

RMP: RedHat Package Manager (RedHat Package management tool)

Run the putty.exe tool. after logging in to the name and password, run the command "rpm-Uvh restart" as the root user.


 

Prepare OpenNMS for installing the PostgreSQL database.

 

Run the following command as root:

Yum install postgresql-server command, the system automatically downloads the postgreSQL Installation.

 

Start PostgreSQL first

Run the following command as root:

/Sbin/service postgresql start

 

If you see an error, you must initialize PostgreSQL and run the following command:

/Sbin/service postgresql initdb

 

/Sbin/service postgresql start

 

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/chkconfig postgresql on

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/service postgresql restart

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.

 

# Yum install opennms-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 Java JDK

# Which java

 

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-to update the database

L-I-to insert any default data that belongs in the database

L-s-to create or update the stored procedures OpenNMS uses for certain kinds of data access

#/Opt/opennms/bin/install-dis

"Installer completed successfully!" appears !" Indicates successful!

 

● Set OpenNMS to start upon startup

# Chkconfig opennms on

 

Set firewall

/Etc/sysconfig/iptables

 

Add after Red

 

Or close the firewall directly.

# Service iptables status view the current firewall status

If it is on, execute

# Service iptables stop

 

# Service iptables restart

 

Fixes incompatibility in Chinese environments

/Opt/opennms/bin/opennms

ADDITIONAL_MANAGER_OPTIONS = "-Duser. language = en-Duser. country = US-Dfile. encoding = UTF-8"

Restart service

# Service opennms restart

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.