linux下安装weblogic

1、JDK安装
# 使用rz命令将jdk1.8.0_77.tar.gz上传至/opt/app目录
# 解压:tar -xzf jdk1.8.0_77.tar.gz
2、下载weblogic包
官方地址:https://www.oracle.com/middleware/technologies/fusionmiddleware-downloads.html
3、安装weblogic
# 创建weblogic目录
mkdir /opt/app/weblogic
# 创建weblogic用户
groupadd weblogic
useradd -g weblogic -p weblogic weblogic
passwd weblogic
su - weblogic
cd /opt/app/weblogic
# rz 上传包至该目录,自己简单整个脚本
#!/bin/bash
export JAVA_HOME=/opt/app/jdk1.8.0_77
export PATH=$JAVA_HOME/bin:$PATH
java -jar $PWD/fmw_14.1.1.0.0_wls_lite_generic.jar
# 执行脚本若报weblogic安装时检查监视器: 必须配置为至少显示 256 种颜色
# 解决
执行vncserver查看New localhost.localdomain:4 (weblogic) desktop is localhost.localdomain:4这一相关字样,执行export DISPLAY=localhost.localdomain:4,然后执行脚本,通过。

linux下安装weblogic

4、创建domain域

mkdir -p /opt/app/weblogic/Oracle/Middleware/user_projects/domains/base_domain/
5、创建create_domain.rsp文件
read template from "/opt/app/weblogic/wls1411/wlserver/common/templates/wls/wls.jar";
set JavaHome "/opt/app/jdk1.8.0_77";
set ServerStartMode "dev";
find Server "AdminServer" as AdminServer;
set AdminServer.ListenAddress "";
set AdminServer.ListenPort "7001";
set AdminServer.SSL.Enabled "true";
set AdminServer.SSL.ListenPort "8002";
//We can directly create a new managed server. 
create Server "base" as BASE;
set BASE.ListenAddress ""; 
set BASE.ListenPort "8003";
//set BASE.SSL.Enabled "true";
//set BASE.SSL.ListenPort "8004″;
//Create Machine
create Machine "base" as Machinename;
//use templates default weblogic user
find User "weblogic" as u1;
set u1.password "weblogic123";
//create a new user
create User "weblogic2" as u2;
set u2.password "weblogic123";
write domain to "/opt/app/weblogic/Oracle/Middleware/user_projects/domains/base_domain/";
//The domain name will be "demo-domain"
close template;
6、配置weblogic
cd /opt/app/weblogic/wls1411/wlserver/common/bin
./config.sh -mode=silent -silent_script=/opt/app/weblogic/create_domain.rsp -logfile=/opt/app/weblogic/create_domain.log

linux下安装weblogic

7、启动weblogic

cd /opt/app/weblogic/Oracle/Middleware/user_projects/domains/base_domain
./startWebLogic.sh
8、把7001端口添加到防火墙
# 切换到root
firewall-cmd --zone=public --add-port=7001/tcp --permanent
firewall-cmd --reload

linux下安装weblogic

9、访问weblogic

http://192.168.139.128:7001/console

linux下安装weblogic

账户:weblogic

密码:weblogic123

linux下安装weblogic

 

 

 【参考:https://blog.csdn.net/boxrice007/article/details/107204758/

 

linux下安装weblogic

上一篇:【Bugly干货分享】微信文件微起底Ⅰ


下一篇:CSS问题流水