`

SeFetion部署

 
阅读更多

 SeFetion 部署

1,  SeFetion介绍

SeFetion jiangwx 使用开源项目MapleFetion飞信项目再次封装而成的短消息报警器,目前适合使用于个人系统报警,或消息警报,系统运行通知,服务器主机网络连接报告,在不久的将来将会免费提供web接口,方便广大程序爱好者调用。

2,  SeFetion 目录结构

       

 

说明:

BinSeFetion启动的可执行文件,现在文件夹为空,以后会拓展

Cjar:此文件夹是程序开发时使用,里面包含快速生成jar包的脚本

Conf:包含配置文件

LibSeFetion核心jar包存放处

LogsSeFetion运行日志

ServiceSeFetion以服务方式启动的脚本与可执行文件

3,  配置文件

  

 

说明:配置文件共有3

Logging.properties:系统日志相关的配置文件

Se.properties : SeFetion 系统配置

Wrapper.conf:服务方式启动的配置文件

4,  部署方式

进入service文件夹,修改3_install_wrapper.bat脚本,修改2个地方

1)         set _WRAPPER_BASE=wrapper  #此处设置wrapper.exe文件名称

2)         set _WRAPPER_CONF_DEFAULT=../conf/wrapper.conf  #设置配置文件名称

 

进入conf文件夹,修改wrapper.conf文件,修改n个地方

1)         wrapper.java.command=java  #此处设置java.exe 路径,如果设置了环境变量,则可直接填写 java

2)         wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperJarApp  #此处填写程序入口类,此处有3种方式填写:详情请看附件1

3)         wrapper.java.classpath.1=../lib/wrapper.jar  #此处填写各种jar包,有多少个jar包就填多少个,填写方式如下

wrapper.java.classpath.1=../lib/wrapper.jar

wrapper.java.classpath.2=../lib/SeFetionClient-1.0.1.jar

4)         wrapper.java.library.path.1=../lib #填写wrapper.dll 所在路径

5)         wrapper.app.parameter.1=../lib/SeFetionClient-1.0.1.jar #根据wrapper.java.mainclass配置填写的参数,填写方式请看附件1

在本程序中就是填写入口jar包,jar包中的manifest文件设置了main-calss:

程序加载时就会从这里进去

6)         服务配置

# Name of the service

wrapper.name=SeFetion

 

# Display name of the service

wrapper.displayname=SeFetion

 

# Description of the service

wrapper.description=simple msg

 

# Service dependencies.  Add dependencies as needed starting from 1

#wrapper.ntservice.dependency.1=

 

# Mode in which the service is installed.  AUTO_START, DELAY_START or DEMAND_START

wrapper.ntservice.starttype=AUTO_START

7)         还有更多的参数请查看wrapper.conf文件

5,  配置好之后可以执行3_install_wrapper.bat 安装服务,届时,SeFetion部署完毕

  

附件1

                       i.              wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp

Main Class

The final component of the command used to launch JBoss is the main class, org.jboss.Main. The main class executed by Java when launched is specified by using the wrapper.java.mainclass property. As mentioned above however. Because the JBoss main class does not know how to communicate with the Wrapper, we will set the main class to be the full class name of WrapperSimpleApp. The JBoss main class is then specified as the first application parameter below.

 

wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp

 

Application Parameters

Application parameters are set using the wrapper.app-parameter.<n> properties. Application parameters appear in the Java command line directly after the main class. While JBoss does not have any such parameters, it is still necessary to set one of these properties. This is because we are using the WrapperSimpleApp helper class and as described above, its first parameter is the main class name of the application being run. in this case, org.jboss.Main:

 

wrapper.app.parameter.1=org.jboss.Main

 

                     ii.              wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperStartStopApp

Main Class

The next component of the command used to launch Tomcat is the main class, org.apache.catalina.startup.Bootstrap. The main class executed by Java when launched is specified by using the wrapper.java.mainclass property. As mentioned above however. Because we are making use of the WrapperStartStopApp helper class to start and stop Tomcat, we will specify that class's full name as the main class. The Tomcat main classes are then specified as application parameters below.

 

wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperStartStopApp

 

Application Parameters

Application parameters are set using the wrapper.app-parameter.<n> properties. Application parameters appear in the Java command line directly after the main class.

 

When using the WrapperStartStopApp helper class, a lot of information needs to be provided about both the "start" and "stop" classes. This information includes each classes' full name, the list of parameters passed to their main methods, and a flag instructing the helper class whether or not it should wait for all non-daemon threads to exit before causing the JVM to exit.

 

To make it clear how all of this information is encoded, we will start by presenting the property values for the Tomcat application several comments have been added above what is normally in the wrapper.conf file to make it clearer what the properties mean. We suggest adding these comments to your configuration file wrapper.conf as well.

 

# The first application parameter is the name of the class whose main

# method is to be called when the application is launched.  The class

# name is followed by the number of parameters to be passed to its main

# method.  Then comes the actual parameters.

wrapper.app.parameter.1=org.apache.catalina.startup.Bootstrap

wrapper.app.parameter.2=1

wrapper.app.parameter.3=start

 

# The start parameters are followed by the name of the class whose main

# method is to be called to stop the application.  The stop class name

# is followed by a flag which controls whether or not the Wrapper should

# wait for all non daemon threads to complete before exiting the JVM.

# The flag is followed by the number of parameters to be passed to the

# stop class's main method.  Finally comes the actual parameters.

wrapper.app.parameter.4=org.apache.catalina.startup.Bootstrap

wrapper.app.parameter.5=TRUE

wrapper.app.parameter.6=1

wrapper.app.parameter.7=stop

 

The start and stop class names should be fairly clear. The first parameter count is required to locate the stop class in the parameter list. The second count is there for consistency.

 

The flag at parameter #5 above is used to control the behavior of the WrapperStartStopApp helper class when it is shutting down the JVM. When the Wrapper sends a JVM shutdown request, WrapperStartStopApp responds by calling the main method of the "stop" class with the configured parameters. The flag above controls what happens when that main method returns. If the flag is FALSE then System.exit(0) will be called immediately. When TRUE, WrapperStartStopApp will wait until all non-daemon threads have completed before calling System.exit(0). The latter is the behavior which produces the cleanest shutdown for Tomcat. If TRUE is specified, but one or more Daemon threads do not complete, the Wrapper will forcibly kill the JVM after its Shutdown Timeout has expired. This defaults to 30 seconds.

 

Non-daemon threads are counted by iterating over all threads in the system and counting those whose isDaemon method returns FALSE. Unfortunately, this count will never actually reach "0" (zero) on most JVMs because of the existence of system threads. In most Sun JVMs, there will be one non-daemon system thread. To make the shutdown work correctly, this system thread count needs to be correct. It can be set by defining a org.tanukisoftware.wrapper.WrapperStartStopApp.systemThreadCount system property. The default value is "1 thread".

 

                    iii.              Wrappper.java.mainclass=org.tanukisofeware.wrapper.wrapperjavaapp

Main Class

When using the Wrapper and the WrapperJarApp helper class, Java is not executing the jar directly. It is necessary to specify the helper class as the main class of the application. The main class executed by Java when launched is specified by using the wrapper.java.mainclass property as follows:

 

wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperJarApp

 

Application Parameters

Application parameters are set using the wrapper.app-parameter.<n> properties. In this case, the command line to launch Hudson does not specifiy any application parameters, but it is nessary to tell the WrapperJarApp helper class which jar to execute. This is done as follows:

 

wrapper.app.parameter.1=C:\Hudson\lib\hudson.war

 

  • 大小: 9.1 KB
  • 大小: 19.2 KB
分享到:
评论

相关推荐

    20220607R4s9F6ZH.zip

    20220607R4s9F6ZH.zip

    【计算机求职笔试】资源

    【计算机求职笔试】资源

    基于S7-200 PLC与组态王的智能楼宇消防系统设计与实现

    内容概要:本文详细介绍了基于西门子S7-200 PLC和组态王软件构建的智能楼宇消防系统的设计与实现。首先阐述了硬件配置,包括烟雾传感器、手动报警按钮、排烟风机和声光报警器等设备的连接方式及其IO分配。接着深入解析了梯形图编程的关键逻辑,如输入滤波设置、分层报警策略以及带时间锁的控制流程。同时探讨了组态王监控画面的设计要点,特别是权限管理和报警弹窗的脚本实现。此外,还分享了一些常见的调试问题及解决方案,如电磁阀误动作、信号干扰等问题的处理方法。最终展示了系统的性能优势,强调了实时监测与快速响应的重要性。 适合人群:从事楼宇自动化、工业控制系统设计的技术人员,尤其是对PLC编程和SCADA系统有一定了解的工程师。 使用场景及目标:适用于新建或改造智能楼宇消防系统的项目规划与实施。目标是提高消防系统的响应速度和可靠性,确保在火灾发生时能够迅速采取措施,保障人员生命财产安全。 其他说明:文中提供了大量实际案例和经验教训,有助于读者更好地理解和应用相关技术和方法。

    2025姓名配对测算系统最新源码 带后台

    2025姓名配对测算系统最新源码 带后台 一套网上全新的UI,用于姓名配对,支持投流各大平台,全开源可进行二开! 投流的老板可以放心使用这套 后台登录地址:/admin    账号admin    密码admin123

    基于LabVIEW的多路压力数据采集系统设计与实现

    内容概要:本文详细介绍了基于LabVIEW构建的多路压力数据采集系统的硬件配置和软件架构。硬件方面,选择了合适的传感器(如STC的CYZ-102)和信号调理模块(如NI的SCXI-1520),确保系统的精度和稳定性。软件部分强调了DAQ助手的使用、生产者-消费者模式的应用以及TDMS格式的数据存储方法。此外,还分享了许多实用技巧,如差分输入应对电磁干扰、波形图控件优化、数据存储的块大小设置等。通过这些措施,系统实现了高效稳定的多通道压力数据采集,显著缩短了设备故障排查时间。 适合人群:从事工业自动化、数据采集系统设计的技术人员,尤其是有一定LabVIEW基础的研发人员。 使用场景及目标:适用于需要进行多通道压力监测的工业环境,如化工厂、液压测试台等。主要目标是提高数据采集的效率和准确性,减少设备故障排查时间,提升生产效率。 其他说明:文中提供了大量具体的配置代码和实践经验,帮助读者更好地理解和应用相关技术。同时,作者还分享了一些调试过程中遇到的问题及其解决方案,为后续开发提供宝贵的经验参考。

    S0073基于JavaSSM框架民宿管理系统1725784419.rar

    本资源为基于Java的SSM框架民宿管理系统的完整代码,适用于【计算机专业毕设/课设】。通过该项目,您可以快速实现民宿管理相关功能,并且该代码已进行了充分的注释和优化,便于开发者快速理解和二次开发。 资源特色: 功能齐全: 高效实现:代码经过优化,性能稳定, 详细注释:每个模块和函数均附带详细注释,便于理解和学习。帮助您快速上手和部署。 易于扩展:代码结构清晰,方便进行二次开发和功能拓展。 适用人群: 初学者:帮助您快速了解并实现[技术/功能]。 开发者:提供高效的代码实现,助力项目开发。 学术研究:为相关领域的研究人员提供有价值的代码资源。 下载说明: 本资源为付费资源,购买后可获得完整代码 支持提供技术支持,若有问题请及时联系我们。

    tbb-devel-2018.2-9.el8.x64-86.rpm.tar.gz

    1、文件说明: Centos8操作系统tbb-devel-2018.2-9.el8.rpm以及相关依赖,全打包为一个tar.gz压缩包 2、安装指令: #Step1、解压 tar -zxvf tbb-devel-2018.2-9.el8.tar.gz #Step2、进入解压后的目录,执行安装 sudo rpm -ivh *.rpm

    大学生智能消费记账系统的设计与实现.zip

    Java项目基于Springboot框架的课程设计,包含LW+ppt

    软考初级信息处理技术员上午试题模拟20及答案

    软考

    使用Matlab辅助设计开关电源.zip

    matlab

    西门子S7-200 SMART与施耐德ATV71变频器自动握手通讯方案及应用

    内容概要:本文详细介绍了如何通过西门子S7-200 SMART PLC与施耐德ATV71变频器建立稳定的自动握手通讯方案。主要内容涵盖硬件连接、参数设置、PLC编程实现DriveCom协议状态机、数据校验方法以及触摸屏配置等方面。文中特别强调了断电重启后的自动恢复机制,确保设备能够快速恢复正常运行,避免人工干预。同时,提供了具体的代码片段和注意事项,帮助读者理解和实施这一解决方案。 适合人群:从事工业自动化领域的工程师和技术人员,特别是那些负责变频器通讯和控制系统集成的专业人士。 使用场景及目标:适用于需要提高工业现场设备自动化水平的企业,旨在解决变频器断电重启后需要人工重新准备的问题,提升系统的稳定性和可靠性。 其他说明:本文不仅提供理论指导,还包括大量实战经验和具体案例分享,有助于读者更好地掌握相关技术和应对实际问题。

    在线考试系统.zip

    Java项目基于Springboot框架的课程设计,包含LW+ppt

    基于SUMO的交通仿真模型研究:信号控制、边界管理与车辆编队技术的应用

    内容概要:本文详细探讨了利用SUMO进行交通仿真的多个关键方面,包括但不限于信号控制、边界管理和车辆编队。首先介绍了通过TraCI接口实现的动态信号灯控制方法,能够根据实时交通状况调整绿灯时长,从而有效降低车辆延误率。其次讨论了高速公路的流量控制策略,如采用渐进式的流速控制和可变限速区来避免因事故造成的严重拥堵。此外,还展示了如何通过协同式自适应巡航控制系统(CACC)实现高效的车辆编队运行,确保车队内部的安全性和稳定性。文中提供了具体的Python代码示例以及XML配置片段,帮助读者更好地理解和实施相关技术。 适合人群:交通工程专业学生、研究人员和技术开发者,特别是对智能交通系统感兴趣的从业者。 使用场景及目标:适用于需要评估不同交通管理策略效果的研究机构或企业;旨在提高城市道路交通效率、减少交通事故发生频率并改善驾驶体验的技术创新项目。 其他说明:作者强调了交通控制参数非线性的特点,并指出在实践中应当灵活运用各种工具和技术手段不断优化仿真模型。同时提醒使用者注意细节之处(如相位编号从零开始),并且鼓励大家充分利用SUMO提供的可视化功能辅助调参工作。

    matlab实现全球定位系统GPS信号产生、捕获与追踪的深度研究-GPS-信号处理-伪随机码-三边测量-多路径效应修正-matlab

    内容概要:本文详细探讨了全球定位系统(GPS)的信号产生、捕获和追踪三个核心步骤,并通过Matlab源码实现相关算法。首先介绍了GPS信号产生的关键要素,包括伪随机码生成、数据编码和信号发射。接着讨论了信号捕获过程,涉及天线接收、码相位测量及其常用方法如滑动相关法。最后阐述了信号追踪的三边测量原理及误差修正措施,如电离层延迟补偿、地形效应补偿和多路径效应修正。通过具体Matlab代码示例展示了整个流程的实现,并附带了详细的运行步骤和结果分析。 适合人群:对GPS系统有兴趣的研究人员和技术爱好者,尤其是有一定编程基础并希望深入了解GPS内部机制的人群。 使用场景及目标:适用于学术研究、工程开发等领域,旨在帮助读者掌握GPS信号处理的基本理论和实践技能,提升定位精度和可靠性。 其他说明:文中提供的Matlab代码已在特定版本下测试通过,但不同版本可能存在差异。此外,还列举了一些参考文献供进一步学习。

    IT技术交流和分享平台的设计与实现.zip

    Java项目基于Springboot框架的课程设计,包含LW+ppt

    P2并联架构Cruise仿真模型与Simulink控制策略解析及应用

    内容概要:本文详细介绍了基于P2并联架构的Cruise仿真模型及其Simulink控制策略。首先,文章阐述了模型架构,特别是P2电机的位置选择以及行星齿轮组的参数配置,强调了扭矩耦合的优势。接着,深入探讨了控制策略,包括三层状态机嵌套的工况识别模块、滑动窗口方差计算用于预判驾驶意图、带遗忘因子的递推最小二乘法进行动态扭矩分配等关键技术。此外,文章还展示了速度跟随模块采用的带前馈的PID控制算法,并讨论了模型验证过程中遇到的问题及解决方案。最后,作者分享了一些有趣的彩蛋和隐藏功能,如秋名山模式和实时参数调整模块,以及模型的实际性能提升情况。 适合人群:从事汽车控制系统研究、混合动力汽车开发的技术人员,尤其是熟悉Matlab/Simulink平台的研发人员。 使用场景及目标:适用于希望深入了解P2并联架构Cruise仿真模型的设计原理和技术细节的研究者;旨在帮助开发者掌握先进的控制策略实现方法,提高仿真模型的精度和效率。 其他说明:文中提供了详细的代码片段和参数设置指南,便于读者理解和复现实验结果。同时,作者提醒读者注意一些潜在的技术陷阱,并给出了相应的解决建议。

    在线互动学习网站设计.zip

    Java项目基于Springboot框架的课程设计,包含LW+ppt

    MATLAB概率风电功率预测.zip

    matlab

    STM32三轴运动控制:基于F1/F4的直线与圆弧插补及加减速算法实现

    内容概要:本文详细介绍了基于STM32F1和STM32F4的三轴运动控制系统源代码及其核心算法。系统实现了直线插补、圆弧插补以及梯形加减速控制,适用于雕刻机和CNC设备。文中提供了详细的中文注释,帮助初学者理解和修改代码。主要特点包括:使用定点数运算提高效率、F4版本利用DSP库进行加速、硬件驱动层针对不同芯片进行了优化配置。 适合人群:具备嵌入式开发基础,尤其是对STM32系列MCU有一定了解的研发人员和技术爱好者。 使用场景及目标:①学习并掌握三轴运动控制的基本原理和实现方法;②应用于雕刻机、CNC机床等需要精确运动控制的场合;③通过修改和扩展现有代码,满足特定应用场景的需求。 其他说明:代码中包含了丰富的调试提示和错误处理机制,有助于快速定位和解决问题。此外,项目结构清晰,便于进一步的功能扩展和技术研究。

Global site tag (gtag.js) - Google Analytics