1、启动WAS服务 :./startServer.sh server1
2、停止WAS服务 :./stopServer.sh server1 -username was -password was
3、删除WAS概要文件 :./manageprofiles.sh -delete -profileName AppSrv01
4、概要文件管理器 :
cd $WAS_HOME/bin/ProfileMangement/
./pmt.sh
5、Linux 控制台实时输出日志 :tail -f SystemOut.log
6、Linux自动启动脚本
新建/etc/init.d/websphereinit文件
#!/bin/bash
#
# name: /etc/rc.d/init.d/WebShpereinit
# chkconfig: 345 99 91
# description: starts and stops WebShpere 6
start() {
#Start Websphere 6
echo "Starting Websphere......"
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/startServer.sh server1
sleep 10
echo "Started Successfully"
}
stop(){
#Stop Websphere 6
echo "Stopping Websphere..."
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/stopServer.sh server1 -username admin -password admin
}
case "$1" in
start)
start
;;
stop)
stop
;;
*)
echo "Usage: Websphere6[start|stop]"
;;
esac
7、将启动脚本加入到启动组中 :chkconfig --add websphereinit