OpenNMS编译,打包并在Windows下启动
来源:互联网 发布:淘宝店铺宝贝链接提取 编辑:程序博客网 时间:2024/06/04 17:51
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下启动
- OpenNMS编译,打包并在Windows下启动
- Linux下opennms编译
- windows下安装opennms
- opennms启动
- 在windows命令行下编译*.java文件,并运行
- ijkplayer在windows下编译并导入Android Studio
- windows下编译xgboost 并在eclipse中导入xgboost
- OpenNms source1.6 可以在windows下的eclipse中运行吗?
- Windows系统下Ant自动编译打包并签名Android应用——探索篇
- Windows系统下Ant自动编译打包并签名Android应用——实践篇
- Windows下打包并在Tomcat7下运行Libreplan(基于Mysql)
- windows下erlang打包镜像启动
- java项目打包成jar编写启动文件在windows和Linux下运行
- Cocos2d-x3.9 在Windows平台下编译打包成APK
- dubbo源码在Windows下编译打包dubbo-admin-xxx.war
- 在Windows Vista系统下安装Windows Xp并设置双重启动
- Ceph在Ubuntu下编译打包
- onejar-maven-plugin把java类与lib打包为一个可运行jar
- 一些网站地址
- UVA - 11044 Searching for Nessy
- 固定导航栏css样式待代码
- Java异常处理机制
- OpenNMS编译,打包并在Windows下启动
- POJ1611 The Suspects 并查集
- oracle11g 常用函数(Functions)详解
- wireshark过滤规则总结
- Mediastreamer2入门需知--数据结构和常用函数
- OpenStack详细解读:定义,好处与使用实例(1)
- UIScrollView的属性总结
- 如何从一个类的ViewController,如何获取一个UIView上的某种控件
- mediastreamer2 的简介