zoukankan      html  css  js  c++  java
  • 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:WorkspaceOpenNMSSourceopennms)

    6.Set the mavan bin path in environment variable
      (Ex : D:WorkspaceOpenNMSSourceopennmsmavenin)

    7.Enter into D:WorkspaceOpenNMSSourceopennms> path

    8.Clean your project
      (Ex : D:WorkspaceOpenNMSSourceopennms>perl clean.pl)

    9.Compile your opennms project
      (Ex : D:WorkspaceOpenNMSSourceopennms>perl compile.pl)

    10.Assemple your or build your project
      (Ex : D:WorkspaceOpenNMSSourceopennms>perl assemple.pl -Dopennms.home=D:WorkspaceOpenNMSBuild)

    11.Copy your build file opennms-1.13.0-SNAPSHOT.tar.gz from D:WorkspaceOpenNMSSourceopennms arget folder

    12.Put it your build opennms home location and unzip it
       (Ex : D:WorkspaceOpenNMSBuild)

    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 FilesJavajdk1.6.0_20injava" -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 FilesJavajdk1.6.0_20in)

    16.Change your postgres password in D:WorkspaceOpenNMSBuildetcopennms-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:WorkspaceOpenNMSBuildin>install.bat -d)

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

    "C:Program FilesJavajdk1.6.0_20injava" -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:WorkspaceOpenNMSBuildin>opennms.bat start)


    作者:儱剑阿攵
    转载请注明链接:http://blog.csdn.net/awenluck/article/details/38614139

  • 相关阅读:
    Linux日志文件utmp、wtmp、lastlog、messages
    Linux日志五大命令详解
    php 函数合并 array_merge 与 + 的区别
    MySQL对数据表进行分组查询(GROUP BY)
    如何在mysql中查询每个分组的前几名
    Autojump:一个可以在 Linux 文件系统快速导航的高级 cd 命令
    linux 查看磁盘空间大小
    js刷新页面方法大全
    [知乎有感] 读研到底为了什么,值不值得?
    [Hadoop] 在Ubuntu系统上一步步搭建Hadoop(单机模式)
  • 原文地址:https://www.cnblogs.com/mfmdaoyou/p/6698755.html
Copyright © 2011-2022 走看看