在CentOS上部署WebLogic应用涉及多个步骤,以下是详细的指南:
java -version
命令检查当前系统的JDK版本,如果需要,可以从Oracle官方网站下载并安装合适的JDK版本。建议使用Oracle JDK,并确保其版本满足WebLogic的要求。groupadd weblogic
useradd -g weblogic weblogic
passwd weblogic
systemctl stop firewalld
systemctl disable firewalld
vi /etc/hostname
reboot
su - weblogic
vi /.bash_profile
# 添加以下内容
export JAVA_HOME=/path/to/jdk
export CLASSPATH=JAVA_HOME/lib/dt.jar:JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH
export WEBLOGIC_HOME=/path/to/weblogic
export PATH=$WEBLOGIC_HOME/bin:$PATH
source /.bash_profile
unzip /path/to/weblogic/fmw_14.1.1.0.0_wls_lite_generic.jar -d /opt/weblogic/
mkdir -p /opt/weblogic/oraInventory
touch /opt/weblogic/oraInst.loc
vi /opt/weblogic/oraInst.loc
# 添加以下内容
Inventory_loc=/opt/weblogic/oraInventory
inst_group=weblogic
touch /opt/weblogic/wls.rsp
vi /opt/weblogic/wls.rsp
# 添加以下内容
[ENGINE] Response File Version 1.0.0.0.0
[GENERIC]
ORACLE_HOME=/opt/weblogic/Oracle/Middleware
INSTALL_TYPE=WebLogic Server
DECLINE_SECURITY_UPDATES=true
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
[REQUEST]
dispatch = true
cd /opt/weblogic
su - weblogic
java -jar fmw_14.1.1.0.0_wls_lite_generic.jar -silent -responseFile /opt/weblogic/wls.rsp -invPtrLoc /opt/weblogic/oraInst.loc
cd /opt/weblogic/Oracle/Middleware/wlserver/common/bin
./config.sh
cd /opt/weblogic/user_projects/domains/base_domain/bin
./startWebLogic.sh