OpenNMS编译,打包并在Windows下启动

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)

OpenNMS编译,打包并在Windows下启动

时间: 2024-12-29 23:28:32

OpenNMS编译,打包并在Windows下启动的相关文章

golang编译的程序在windows下不显示黑框

如题,一个编译参数,备忘: -ldflags="-H windowsgui" 别的平台不适用 golang编译的程序在windows下不显示黑框,布布扣,bubuko.com

Spark笔记--使用Maven编译Spark源码(windows下)

1. 官网下载源码 source code,地址: http://spark.apache.org/downloads.html 2. 使用maven编译: 注意在编译之前,需要设置java堆大小以及永久代大小,避免mvn出现内存溢出的情况. windows下设置:%MAVEN_HOME%\bin\mvn.cmd,将其中的 @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=80

windows下启动/关闭Sybase数据库服务器

启动.关闭Sybase数据库服务器 一.启动Sybase服务器 在windows下介绍两种方法启动Sybase数据库服务器. 1.通过服务器管理器 依次打开控制面板>管理工具>服务 管理窗口.拖动滚动条到Sybase打头的服务名称附近,一般会发现有5个服务:Sybase SQLServer _ <servername>.Sybase BCKServer _ <servername>_BS.Sybase MONServer _ <servername>_MS.

windows下启动和关闭oracle的命令教程

经常要用数据库,让他自己启动的话,开机太慢,所以用命令启动方便点. 1.开启: 在运行中输入cmd,进入控制台,lsnrctl start回车,提示启动监听成功后 net start OracleServiceORCL. 2 关闭 在运行中输入cmd,进入控制台,lsnrctl stop回车,提示启动监听成功后 net stop OracleServiceORCL. 这样还是不太方便. 在桌面右键,新建一个记事本,输入 lsnrctl start net start OracleServiceO

phpstorm分别在Mac和Windows下启动命令行,并启用ssh

Mac:在terminal下运行 sudo -i 输入密码  就可以用ssh IP:端口  命令行登录了 DAssist是一个命令行开发辅助,可直接在系统命令行工具中使用,Linux和MacOS等自带命令终端的系统好说,windows下也有cmd和powerShell.那么如何结合开发IDE工具进行使用?这要求编程使用的IDE必须支持terminal(默认支持或者插件扩展支持均可),PHP Web开发常用工具有jetBrains系列的phpStorm.WebStorm,也有用Sublime Te

activemq在windows下启动报错,闪退问题

2015-04-22 22:42:36,825 | WARN | Exception thrown from LifecycleProcessor on context close | org.apache.activemq.xbean.XBeanBrokerFactory$1 | WrapperSimpleAppMain java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' be

Rabbitmq 服务启动后停止 | Windows下启动报错Error: unable to connect to node [email&#160;protected]: nodedown

1.erlang版本和rabbitmq版本不匹配 版本匹配: http://www.rabbitmq.com/which-erlang.html 2.找到匹配的版本,卸载当前rabbitmq重新安装. 执行以下操作从计算机中完全卸载RabbitMQ和Erlang: (1)打开Windows控制面板,双击“程序和功能”. (2)在当前安装的程序列表中,右键单击RabbitMQ Server,然后单击“卸载”. (3)在当前安装的程序列表中,右键单击“Erlang OTP”,然后单击“卸载”. (4

windows下启动redis提示Invalid argument during startup: Failed to open the .conf file: redis.windows.connf CWD=C:\Users\Administrator

环境:Windows 7 64bit 旗舰版 redis 3.2.100 64bit 开始的时候,redis运行的好好的,不过每次启动都要要进入其路径,挺麻烦的,所以就想把它的路径设置到环境变量里,然后直接运行就出现错误:Invalid argument during startup:Failed to open the .conf file: redis.windows.connf CWD=C:\Users\Administrator 网上搜索了好久也找不到解决办法.后来想是不是因为环境变量的

windows下启动redis服务

https://github.com/MSOpenTech/redis  下载redis启动文件 解压后 cmd里面执行 redis-server redis.windows.conf 出现以上界面为服务端启动成功状态 点击redis-cli.exe 客户端尝试连接