日期:2014-05-17  浏览次数:21104 次

在windows平台上安装OpenNMS
As of OpenNMS 1.3.8, there is initial support for running on Windows. There are a lot of rough edges, but it is possible to install and run on Windows 2000 and up.

OpenNMS自1.3.8版本后,就支持在windows平台下运行,虽然仍然存在一些问题,但在windows 2000或更新的windows操作系统上运行是可行的。

一,安装JDK
   jdk1.5 或 jdk1.6(我使用的是jdk1.5)
   下在地址:java.sun.com, 选择要下载的jdk版本后, 需要输入email地址,提交后, 将会把jdk下载地址发送到对应的emai邮箱。

二,安装PostgreSQL
   最新的one-click install版本应该是8.4.2
   下载地址:http://www.enterprisedb.com/products/pgdownload.do#windows
   一键安装包基本都是step-by-step,值得注意的是, 在选择locale的页面, 选择“C"或者英语,否则或导致初始化数据库不成功。

三,OpenNMS安装
   下载地址(standalone-opennms-installer-1.6.8.jar)
   http://sourceforge.net/projects/opennms/files/
   
   windows - > cmd
   
   >java -jar d:\opennms\standalone-opennms-installer-1.6.8.jar
    












    由此, 基本都是step-by-step进行安装,直至安装完毕

四,启动
>opennms\bin\opennms.bat start

浏览器输入:http://localhost:8980/opennms






 

1 楼 jinkingmanager 2010-03-30  
中间的图都没有了,不过还是蛮感谢的,对我帮助挺大!!
2 楼 xfei6868 2010-06-23  
不知道 我的为什么出现这样的错误:

- Failed to load the optional jrrd library.
  - This error is not fatal, since jrrd is only required for optional features.
  - For more information, see http://www.opennms.org/index.php/jrrd
- using SQL directory... C:\PROGRA~1\OpenNMS\etc
- using create.sql... C:\PROGRA~1\OpenNMS\etc\create.sql
* using 'postgres' as the PostgreSQL user for OpenNMS
* using 'xfei6868' as the PostgreSQL password for OpenNMS
* using 'opennms' as the PostgreSQL database name for OpenNMS
[color=red]Exception in thread "main" org.opennms.core.schema.MigrationException: an error occurred getting the version from the database[/color]
 at org.opennms.core.schema.Migrator.createLangPlPgsql(Migrator.java:153)
 at org.opennms.core.schema.Migrator.prepareDatabase(Migrator.java:253)
 at org.opennms.install.Installer.install(Installer.java:235)
 at org.opennms.install.Installer.main(Installer.java:859)
Caused by: org.postgresql.util.PSQLException: ERROR: could not access file "$libdir/plpgsql.so": No such file or directory
 at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2062)
 at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795)
 at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
 at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479)
 at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:353)
 at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:345)
 at org.opennms.core.schema.Migrator.createLangPlPgsql(Migrator.java:139)
 ... 3 more