在 CentOS 上重启 WebLogic,通常有两种常见方式:通过脚本重启 和 通过 WebLogic 控制台重启。下面以最常用的 WLST / 启动脚本方式 为主说明。
进入 WebLogic 域目录(假设域名为 base_domain):
cd /u01/oracle/Middleware/user_projects/domains/base_domain/bin
停止 Admin Server(管理服务器):
./stopWebLogic.sh
如果是 受管服务器(Managed Server),使用:
./stopManagedWebLogic.sh managed_server_name t3://localhost:7001
managed_server_name替换为你的受管服务器名
启动 Admin Server:
./startWebLogic.sh
后台运行(推荐):
nohup ./startWebLogic.sh > admin.log 2>&1 &
启动受管服务器:
./startManagedWebLogic.sh managed_server_name t3://localhost:7001
http://IP:7001/console
环境 -> 服务器
✅ 适合只重启某个 Managed Server,不影响 Admin Server
cd /u01/oracle/Middleware/wlserver/common/bin
./wlst.sh
connect('weblogic','password','t3://localhost:7001')
shutdown('ManagedServer1','Server')
start('ManagedServer1','Server')
exit()
netstat -tunlp | grep 7001
ps -ef | grep weblogic
kill -9 <pid>
如果你能告诉我:
我可以给你更精确的命令或写成一键重启脚本。