在 CentOS 上启动和停止 WebLogic 服务器的步骤如下:
启动 WebLogic 服务器
-
切换到 WebLogic 安装目录:
cd /path/to/weblogic
-
设置环境变量:
source wlserver/server/bin/setWLSEnv.sh
-
启动 WebLogic 服务器:
./startWebLogic.sh
或者在后台运行:
nohup ./startWebLogic.sh &
停止 WebLogic 服务器
-
切换到 WebLogic 安装目录:
cd /path/to/weblogic
-
停止 WebLogic 服务器:
./stopWebLogic.sh
或者使用
kill
命令停止进程:ps -ef | grep weblogic kill -9
通过以上步骤,您可以在 CentOS 上成功启动和停止 WebLogic 服务器。