OpenNMS 安装说明-精简版

Reading time ~1 minute

Per-install Checklist:


  1. SuSE 10.1 Linux install CD
  2. OpenNMS rpm packages for SuSE Linux
  3. JDK 1.5 package
  4. Tomcat 5.5.20 package

    Here we go:


  • Insert install CD into Cd/Dvd rom
  • Do SuSE Linux mini install
  • Logon in OS, run ‘yast firewall’ to open 8080 tcp port on firewall
  • upload all packages to /opt
  • untar JDK
  • untar Tomcat
  • install postgresql through yast; run ‘rcpostgresql start’
  • Export some variables

    export JAVA_HOME=/opt/jdk1.5.0_09
    export OPENNMS_HOME=/opt/opennms
    export CATALINA_HOME=/opt/apache-tomcat-5.5.20
    export PATH=$PATH:$JAVA_HOME/bin


  • Test Java and Tomcat

    java -version
    $CATALINA_HOME/bin/startup.sh


  • Modify this file, vi /var/lib/pgsql/data/pg_hba.conf , then run ‘rcpostgresql restart’

    #local all all ident sameuser
    local all all trus
    thost all all 127.0.0.1 255.255.255.255 trust
    host all all ::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff trust


  • install OpenNMS rpm packages; rpm -ivh xxx.rpm
  • $OPENNMS_HOME/bin/runjava -s
  • $OPENNMS_HOME/bin/install -dis
  • $OPENNMS_HOME/bin/install -y -w $CATALINA_HOME/conf/Catalina/localhost
  • restart Tomcat
  • start OpenNMS; $OPENNMS_HOME/bin/opennms start
  • Check opennms status; $OPENNMS_HOME/bin/opennms -v status
  • login web console

    以上仅仅是我一个偷懒的方法,可以比较快的部署运行OpenNMS。这种方式的好处如下:

    1. Mini安装可以是最快的安装,总共只有几百MB就得到一个Linux操作系统
    2. SuSE的包管理比较好用,配合一张安装DVD,几乎所有软件招之即来,不需要下载任何东西
    3. Java和Tomcat的安装包是从以前的机器上直接把安装目录tar出来的,这也直接解压来用速度比较快。

      这个安装方式的缺点:

    4. 并不是最优的安装,没用设置服务的自动重启
    5. 没用优化PostgreSQL
    6. 没用优化Java和Tomcat;ONMS是java应用,性能可能会是个问题
    7. 没用对ONMS做任何配置


  • Post-install Checklist:
    Change Admin password for ONMS
    customize ONMS per your requirements
    optimize Tomcat/Postgresql/ONMS configuration

互联网规模的超融合平台

什么是互联网规模?什么是web scale风格?看下Nutanix的亮点。 阅读全文

2017DevOps采用和趋势现状-信息图

Published on February 11, 2017