1.Download Opennms latest source code



2.Download latest Java JDK and install it. Set JAVA_HOME path



3.Download Postgres and install it. Set the path in environment variable



4.Download Perl and install it. Set path in environment variable



5.Unzip the opennms source code and put it your local server

  (Ex : D:\Workspace\OpenNMS\Source\opennms)



6.Set the mavan bin path in environment variable

  (Ex : D:\Workspace\OpenNMS\Source\opennms\maven\bin)



7.Enter into D:\Workspace\OpenNMS\Source\opennms> path



8.Clean your project

  (Ex : D:\Workspace\OpenNMS\Source\opennms>perl clean.pl)



9.Compile your opennms project

  (Ex : D:\Workspace\OpenNMS\Source\opennms>perl compile.pl)



10.Assemple your or build your project

  (Ex : D:\Workspace\OpenNMS\Source\opennms>perl assemple.pl -Dopennms.home=D:\Workspace\OpenNMS\Build)



11.Copy your build file opennms-1.13.0-SNAPSHOT.tar.gz from D:\Workspace\OpenNMS\Source\opennms\target folder



12.Put it your build opennms home location and unzip it

   (Ex : D:\Workspace\OpenNMS\Build)



13.Now your folder structure in build path should be the folllowing hira

   Build

     - bin

     - etc

     - ...



14.Create install.bat file with the following content



SET OPENNMS_HOME=D:/Workspace/OpenNMS/Build

SET DBNAME=opennms

SET DBURL=jdbc:postgresql://localhost:5432/

SET ETCDIR=%OPENNMS_HOME%/etc

SET SERVLETDIR=%OPENNMS_HOME%/webapps/opennms



"C:\Program Files\Java\jdk1.6.0_20\bin\java" -Xmx512m "-Dopennms.home=%OPENNMS_HOME%" "-Dinstall.dir=%OPENNMS_HOME%" "-Dinstall.database.name=%DBNAME%" "-Dinstall.database.url=%DBURL%" "-Dinstall.etc.dir=%ETCDIR%" "-Dinstall.servlet.dir=%SERVLETDIR%" -classpath
"%OPENNMS_HOME%/lib/opennms_bootstrap.jar;%OPENNMS_HOME%/lib/opennms_install.jar" org.opennms.install.Installer %*





15.Download jicmp.dll and jicmp6.dll file and put it in your java bin folder

  (Ex : C:\Program Files\Java\jdk1.6.0_20\bin)



16.Change your postgres password in D:\Workspace\OpenNMS\Build\etc\opennms-datasources.xml file



    <jdbc-data-source name="opennms-admin"



                        database-name="template1"



                        class-name="org.postgresql.Driver"



                        url="jdbc:postgresql://localhost:5432/template1"



                        user-name="postgres"



                        password="postgres" />



17.Create the opennms database for opennms source with help of install.bat file

  (Ex : D:\Workspace\OpenNMS\Build\bin>install.bat -d)



18.Create opennms.bat file with the following content to start opennms bulid



"C:\Program Files\Java\jdk1.6.0_20\bin\java" -Xmx512m -XX:MaxPermSize=256m -Dopennms.home="D:/Workspace/OpenNMS/Build" -Djava.endorsed.dirs="$OPENNMS_HOME/lib/endorsed" -jar "D:/Workspace/OpenNMS/Build/lib/opennms_bootstrap.jar" %*



19.To run the opennms server, Open cmd prompt in admin mode and run opennms.bat file

(Ex : D:\Workspace\OpenNMS\Build\bin>opennms.bat start)

作者:儱剑阿攵

转载请注明链接:http://blog.csdn.net/awenluck/article/details/38614139

最新文章

  1. JS 省,市,区
  2. SpringMVC+MyBatis+EasyUI 实现分页查询
  3. 基于 php-redis 的redis操作
  4. Netfilter&amp;iptables:如何理解连接跟踪机制?
  5. SQL Server一些常见却不太记得住的命令
  6. MEMS加速度计工作原理
  7. SQLite/嵌入式数据库
  8. Android结构分析Android智能指针(两)
  9. Email发展历史
  10. sshd启动报错Could not load host key
  11. Canny边缘检测算法的一些改进
  12. Android studio Connection failed (dl.google.com)
  13. 『Json』常用方法记录
  14. Win10交换Ctrl和大写键
  15. JQuery如何实现双击事件时不触发单击事件,解决鼠标单双击冲突问题
  16. 0、PlayGround可视化
  17. 获取Spring管理的Bean
  18. 关于iOS开发的学习
  19. jsp中java代码、jsp代码、js代码执行的顺序
  20. 红帽rhel7.1usbguard

热门文章

  1. JavaScript数据类型学习脑图:
  2. BZOJ.2194.快速傅立叶之二(FFT 卷积)
  3. Ajax-验证码
  4. 推荐一个简洁优雅的博客系统,farbox
  5. html div 宽度随着浏览器自动适应
  6. 去除ArcMap连接空间数据库中多余的属性表
  7. Google In-App Billing 实现(内含Unity 实现经验)
  8. Selenium2+python自动化51-unittest简介
  9. 关于mysql的wait_timeout参数 设置不生效的问题
  10. iOS:UITableView表格视图控件