OpenNMS 安装说明-精简版

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_09export OPENNMS_HOME=/opt/opennmsexport CATALINA_HOME=/opt/apache-tomcat-5.5.20export 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 sameuserlocal all all trusthost all all 127.0.0.1 255.255.255.255 trusthost 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 ONMScustomize ONMS per your requirementsoptimize Tomcat/Postgresql/ONMS configuration
署名-非商业性使用-禁止演绎 4.0 (CC BY-NC-ND 4.0)
comments powered by Disqus
本博客始于 2007 年
Built with Hugo
主题 StackJimmy 设计