OpenNMS system Linux (CentOS7) installation

Note: CentOS7 is used as an example here to introduce the installation process of OpenNMS.

Prepare the environment
Install git
yum install git

install autoconf
yum install autoconf automake libtool

1. Install Jdk First
download the corresponding version of jdk, download address: http://www.oracle.com/technetwork/java/javase/downloads/index.htmlInstall
After completion, you need to set the environment variables. The process is as follows:
vi /etc/profile.d/java.sh

    #!/bin/sh

    JAVA_HOME=/usr/java/default
    PATH=$JAVA_HOME/bin:$PATH

    export PATH JAVA_HOME After

configuring the environment After the variable, you need to load the environment variable, command: su –

2. Install Jicmp
Download address: https://github.com/OpenNMS/jicmp and https://github.com/OpenNMS/jicmp6
Currently, jicmp and jicmp6 need to be installed, and the process is as follows :

    git clone https://github.com/OpenNMS/jicmp.git
    cd jicmp
    git submodule update --init --recursive
    autoreconf -fvi
    ./configure --prefix=/usr
    make
    make install

install jicmp6

    git clone https://github.com/OpenNMS/jicmp6.git
    cd jicmp6
    git submodule update --init - -recursive
    autoreconf -fvi
    ./configure --prefix=/usr
    make
    make install


3. Install the database The
database uses PostgreSQL, you can use the version installed by default in the system, if you do not choose to install it when installing CentOS, you can use the yum install command to install it.
Online installation
yum install postgresql-server

After the database is installed, the database needs to be initialized before it can be used. The command is:
postgresql-setup initdb
to start the database:
systemctl start postgresql
To add host access rights, edit the file /var/lib/pgsql/data/pg_hba.conf and add the following:
host all all 127.0.0.1/32 trust
Modify the host access restrictions and edit the file /var/lib/pgsql/data/postgresql. conf, modify as follows:
listen_addresses = '*'
After modifying the rules, you need to load the configuration, command:
systemctl reload postgresql

Note: other hosts need to close the firewall to access the database
Command : systemctl stop firewalld


4. Install the OpenNMS system
Download address: https: //sourceforge.net/projects/opennms/
Installation and operation requires the root user.
unzip standalone-opennms-installer-20.1.0-1.zip

===================================== ===
Create an installation directory, command:
mkdir /opt/opennms
Release system programs to the installation directory:
tar –zxf opennms-20.1.0.tar.gz –C /opt/opennms
Configuration environment:
/opt/opennms/bin/ runjava -s
Install the system:
/opt/opennms/bin/install -dis
At this point, the system installation is complete.
=======================================

5. Start the system
Start command:
/opt/opennms/ bin/opennms -v start
Stop command:
/opt/opennms/bin/opennms -v stop
View running status:
/opt/opennms/bin/opennms -v status


OpenNMS video address: https://edu.csdn.net/course /play/6256/118501
OpenNMS video download: https://pan.baidu.com/s/1k2QdWxBqrN9nhWLIKLIrTQ

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326033743&siteId=291194637