日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > centos >内容正文

centos

Centos下Web中间件Jboss应用发布start和stop脚本范例

發布時間:2025/4/16 centos 84 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Centos下Web中间件Jboss应用发布start和stop脚本范例 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在centos環境部署jboss發布web應用,摸索了發布具體應用的start和stop腳本,范例如下:


1、start腳本:${JBOSS_HOME}/bin/start-app.sh

export LANG=zh_CN.GBK cd /home/jboss/bin date=1_`date +%Y-%m-%d\ %H:%M`.lognohup ./run.sh -b 127.0.0.1 -c app > "logs/app.logs" &
2、stop腳本:${JBOSS_HOME}/bin/stop-app.sh

cd /home/jboss/bin echo `date +%F\ %T` >> logs/shutdown.log nohup ./shutdown.sh -S -s 127.0.0.1:1199 -u admin -p admin >> "logs/shutdown.log" 2>&1 &
stop腳本最主要是端口和用戶名密碼,其中服務器配置的JNDI端口(默認端口為1099)在${JBOSS_HOME}/server/app/conf/jboss-service.xml文件中:

<mbean code="org.jboss.naming.NamingService"name="jboss:service=Naming"xmbean-dd="resource:xmdesc/NamingService-xmbean.xml"><!-- The call by value mode. true if all lookups are unmarshalled usingthe caller's TCL, false if in VM lookups return the value by reference.--><attribute name="CallByValue">false</attribute><!-- The listening port for the bootstrap JNP service. Set this to -1to run the NamingService without the JNP invoker listening port.--><attribute name="Port">1099</attribute><!-- The bootstrap JNP server bind address. This also sets the defaultRMI service bind address. Empty == all addresses-->
用戶名和密碼在${JBOSS_HOME}/server/app/conf/props/jmx-console-users.properties文件中,也可以新增,如admin=admin


總結

以上是生活随笔為你收集整理的Centos下Web中间件Jboss应用发布start和stop脚本范例的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。