溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

OpenNMS系統(tǒng)安裝(Linux-CentOS7)

發(fā)布時間:2020-07-06 03:34:27 來源:網(wǎng)絡(luò) 閱讀:884 作者:yinbangmin 欄目:網(wǎng)絡(luò)管理

注釋:此處以CentOS7為例,介紹OpenNMS的安裝過程。

準(zhǔn)備環(huán)境
安裝git
yum install git

安裝autoconf
yum install autoconf automake libtool

1.  安裝Jdk首先下載相應(yīng)版本的jdk,下載地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html
安裝完成后需要設(shè)置環(huán)境變量,過程如下:
    vi /etc/profile.d/java.sh

    #!/bin/sh

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

    export PATH JAVA_HOME

配置完環(huán)境變量后需要加載環(huán)境變量,命令:su –

2.  安裝Jicmp,地址:https://github.com/OpenNMS/jicmp 和 https://github.com/OpenNMS/jicmp6
當(dāng)前需要安裝jicmp和jicmp6,過程如下:

    git clone https://github.com/OpenNMS/jicmp.git
    cd jicmp
    git submodule update --init --recursive
    autoreconf -fvi
    ./configure --prefix=/usr
    make
    make 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.  安裝數(shù)據(jù)庫數(shù)據(jù)庫使用Postgres,可以使用系統(tǒng)默認(rèn)安裝的版本,如果安裝CentOS時沒有選擇安裝,可以使用yum install命令安裝。
在線安裝
yum install postgresql-server

數(shù)據(jù)庫安裝完成后,需要初始化數(shù)據(jù)庫才能使用,命令為:
postgresql-setup initdb
啟動數(shù)據(jù)庫:
systemctl start postgresql
添加主機(jī)訪問權(quán)限,編輯文件/var/lib/pgsql/data/pg_hba.conf,添加如下:
host    all         all         127.0.0.1/32          trust
修改主機(jī)訪問限制,編輯文件/var/lib/pgsql/data/postgresql.conf,修改如下:
listen_addresses = '*'
修改完規(guī)則后需以載入配置,命令:
systemctl reload postgresql

注意:其它主機(jī)訪問數(shù)據(jù)庫還需要關(guān)閉防火墻
命令:systemctl stop firewalld


4.  安裝OpenNMS系統(tǒng),下載地址:https://sourceforge.net/projects/opennms/
安裝、運(yùn)行需要使用root用戶。
unzip standalone-opennms-installer-20.1.0-1.zip

=======================================
創(chuàng)建安裝目錄,命令:
mkdir /opt/opennms
將系統(tǒng)程序釋放到安裝目錄:
tar –zxf opennms-20.1.0.tar.gz –C /opt/opennms
配置環(huán)境:
/opt/opennms/bin/runjava -s
安裝系統(tǒng):
/opt/opennms/bin/install -dis
至此,系統(tǒng)安裝完成。
======================================

5.  啟動系統(tǒng)啟動命令:
/opt/opennms/bin/opennms -v start
停止命令:
/opt/opennms/bin/opennms -v stop
查看運(yùn)行狀態(tài):
/opt/opennms/bin/opennms -v status


OpenNMS安裝視頻稍后在學(xué)院提供

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI