关闭

配置服务器

标签: jboss服务器jdkwindowsserver脚本
868人阅读 评论(0) 收藏 举报
分类:
2006年5月21日配置成功前期服务器:192.168.100.230

1 使用jboss-4.0.3SP1版本,修改端口 D:/jboss-4.0.3SP1/server/default/deploy/jbossweb-tomcat55.sar/server.xml,改为80.
2 配置FTP服务,路径指向
D:/jboss-4.0.3SP1/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war.用户名密码:
MOV/Administrator,1qaz2wsx.
3 配置Telnet服务。用户名,密码:Administrator,1qaz2wsx,重启服务器使用shutdown -r.
4 JBOSS通过开源项目JavaService2.0.10配成windows服务,名字,jboss。注意首先要配置JAVA_HOME.
5 远程开启关闭服务器,telnet入服务器,net start jboss,net stop jboss.
JavaService2.0.10脚本:
@echo off
if "%1" == "uninstall" goto uninstall
if "%1" == "-uninstall" goto uninstall
if "%1" == "" goto usage
if "%2" == "" goto usage
if "%3" == "" goto usage
if "%1" == "-help" goto usage
if "%1" == "-?" goto usage
if "%1" == "/?" goto usage
:install
JavaService.exe -install JBoss30 %1/jre/bin/%3/jvm.dll  -Djava.class.path=%1/lib/tools.jar;%2/bin/run.jar -start org.jboss.Main -stop org.jboss.Main -method systemExit -out %2/bin/out.txt -current %2/bin
goto eof
:uninstall
JavaService.exe -uninstall JBoss30
goto eof
:usage
echo -------- To Install JBoss 3.0 do
echo Usage: %0 jdk_home jboss_home (classic/hotspot/server)
echo NOTE: You MAY NOT use spaces in the path names. If you know how echo to fix this, please tell me.
echo JDK 1.3 does not come with hotpot server by default,
you must echo install this seperately if you wish to use it.
echo Example: %0 c:/progra~1/jdk c:/progra~1/jboss30 hotspot
echo --------
echo -------- To Uninstall JBoss 3.0 do
echo Usage: %0 uninstall echo --------
goto eof
:eof 

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:30504次
    • 积分:444
    • 等级:
    • 排名:千里之外
    • 原创:11篇
    • 转载:6篇
    • 译文:0篇
    • 评论:2条
    最新评论
    c++程序设计
    考试