在 Debian 下启动 WebLogic(通常指 Oracle WebLogic Server),一般步骤如下。以 WebLogic 12c / 14c 为例(其他版本类似):
java -version
/opt/weblogic 或 /u01/oracle)cd /opt/weblogic/user_projects/domains/base_domain/bin
./startWebLogic.sh
如果是后台运行:
nohup ./startWebLogic.sh > admin.log 2>&1 &
cd /opt/weblogic/oracle_common/common/bin
./wlst.sh
# 在 WLST 中执行
startServer('AdminServer','base_domain', '/opt/weblogic/user_projects/domains/base_domain')
如果创建了 Managed Server(如 Server1):
cd /opt/weblogic/user_projects/domains/base_domain/bin
./startManagedWebLogic.sh Server1 t3://localhost:7001
后台运行:
nohup ./startManagedWebLogic.sh Server1 t3://localhost:7001 > server1.log 2>&1 &
http://localhost:7001/console
chown -R weblogic:weblogic /opt/weblogic
apt install libaio1
修改:
base_domain/config/config.xml
可写 systemd 服务文件(如 weblogic.service),需要的话我可以帮你写。
如果你能告诉我:
我可以给你更精确的启动命令。