linux下启动关闭jboss(转)
Linux Jboss下常用命令:
启动:nohup ./run.sh -b 0.0.0.0 &
停止: sh shutdown.sh -S
[[email protected] ~]$ ls
backup CZ50BML.tar.gz jboss-5.1.0.GA jboss-5.1.0.GA.zip mq
[[email protected] ~]$ cd jboss*
[[email protected] jboss-5.1.0.GA]$ cd bin
[[email protected] bin]$ ls
classpath.sh run.bat twiddle.sh
jboss_init_hpux.sh run.conf wsconsume.bat
jboss_init_redhat.sh run.conf.bat wsconsume.sh
jboss_init_suse.sh run.jar wsprovide.bat
jbosssvc.exe run.sh wsprovide.sh
nohup.bak.08201750 service.bat wsrunclient.bat
nohup.out shutdown.bat wsrunclient.sh
password_tool.sh shutdown.jar wstools.bat
probe.bat shutdown.sh wstools.sh
probe.sh twiddle.bat
README-service.txt twiddle.jar
[[email protected] bin]$ sh shutdown.sh -S
Shutdown message has been posted to the server.
Server shutdown may take a while - check logfiles for completion
[[email protected] bin]$ nohup ./run.sh -b 0.0.0.0 &
[1] 13967
[[email protected] bin]$ nohup: appending output to `nohup.out'
[[email protected] bin]$ tail -f nohup.out
备份
[[email protected] backup]$ mkdir 20100910
[[email protected] backup]$ cd 20100910
[[email protected] 20100910]$ pwd
/home/barcode/backup/20100910
[[email protected] deploy]$ cp -r depponBarCode.war /home/barcode/backup/20100910
[[email protected] deploy]$ cd /home/barcode/backup/20100910
[[email protected] 20100910]$ ls
depponBarCode.war
Linux下查看Java进程:ps -ef |grep java
http://hi.baidu.com/javajavajava/blog/item/56f1964b26ac4dfe83025ce4.html