阅读量:1
在CentOS上启动WebLogic服务,可参考以下方法:
- 手动启动:先确保已安装JDK并配置好环境变量,然后切换到WebLogic安装目录,执行
source wlserver/server/bin/setWLSEnv.sh设置环境变量,最后运行./startWebLogic.sh启动服务,也可在后台运行nohup ./startWebLogic.sh &。如果创建了专门的WebLogic用户,需先切换到该用户,再进入安装目录执行启动脚本。 - 使用Systemd服务管理器自动启动:创建
/etc/systemd/system/weblogic.service文件,内容示例为:
[Unit]
Description=WebLogic Server
After=network.target
[Service]
Type=simple
User=weblogic
Group=weblogic
WorkingDirectory=/path/to/weblogic/domain
ExecStart=/path/to/weblogic/bin/startWebLogic.sh
ExecStop=/path/to/weblogic/bin/stopWebLogic.sh
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
保存后执行sudo systemctl daemon-reload,再使用sudo systemctl enable weblogic.service和sudo systemctl start weblogic.service启用并启动服务。
以上就是关于“Centos Weblogic如何启动服务”的相关介绍,筋斗云是国内较早的云主机应用的服务商,拥有10余年行业经验,提供丰富的云服务器、租用服务器等相关产品服务。云服务器资源弹性伸缩,主机vCPU、内存性能强悍、超高I/O速度、故障秒级恢复;电子化备案,提交快速,专业团队7×24小时服务支持!
简单好用、高性价比云服务器租用链接:https://www.jindouyun.cn/product/cvm