jdk1.8 :链接:https://pan.baidu.com/s/15H4w-FqntqwOsQgjIDDlKQ
提取码:sog3weblogic:Oracle Fusion Middleware Software Downloads
链接:https://pan.baidu.com/s/1IyGDEwKbPgb_Agr_DSEyCw
提取码:ltu7
/home/weblogic目录下放入jdk和weblogic安装包
关于jdk安装可以参照(Linux环境下weblogic的安装与配置_linux安装weblogic-优快云博客)
安装jdk后配置可以安装这个
export JAVA_HOME=/home/weblogic/jdk
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
更改jdk配置文件后需要重启刷新配置文件
source .bash_profile
创建weblogic组
[root@loaclhost ~]# groupadd weblogic
创建weblogic用户
[root@loaclhost ~]# useradd -g weblogic weblogic
为用户创建密码
[root@localhost ~]# passwd weblogic
修改文件的权限
[root@localhost ~]# chown -R weblogic:weblogic /home/weblogic/
[root@localhost weblogic]# su - weblogic
[weblogic@localhost ~]$ vim wsl.rsp
[ENGINE]
Response File Version=1.0.0.0.0
[GENERIC]
DECLINE_AUTO_UPDATES=true
MOS_USERNAME=
MOS_PASSWORD=<SECURE VALUE>
AUTO_UPDATES_LOCATION=
SOFTWARE_UPDATES_PROXY_SERVER=
SOFTWARE_UPDATES_PROXY_PORT=
SOFTWARE_UPDATES_PROXY_USER=
SOFTWARE_UPDATES_PROXY_PASSWORD=<SECURE VALUE>
ORACLE_HOME=/home/weblogic/oracle
FEDERATED_ORACLE_HOMES=
INSTALL_TYPE=WebLogic Server
[weblogic@localhost ~]$ vim oraInst.loc
inventory_loc=/home/weblogic/oraInventory
inst_group=weblogic
[weblogic@localhost ~]$ chmod 766 wsl.rsp
[weblogic@localhost ~]$ chmod 766 oraInst.loc
[weblogic@localhost ~]$ mkdir oracle
[weblogic@localhost ~]$ chmod 766 oracle/
[weblogic@localhost ~]$ chmod -R 766 oracle/
[weblogic@localhost ~]$ java -jar fmw_12.2.1.4.0_wls.jar -silent -responseFile /home/weblogic/wsl.rsp -invPtrLoc /home/weblogic/oraInst.loc
[weblogic@localhost ~]$ pwd
/home/weblogic
[weblogic@localhost ~]$ cd oracle/
[weblogic@localhost oracle]$ mkdir -p /home/weblogic/oracle/user_projects/domains/base_domain/
[weblogic@localhost oracle]$ chmod -R 766 /home/weblogic/oracle/user_projects/domains/base_domain/
[weblogic@localhost oracle]$ cd ..
[weblogic@localhost ~]$ vi create_domain.rsp
read template from "/home/weblogic/oracle/wlserver/common/templates/wls/wls.jar";
set JavaHome "/home/weblogic/jdk";
set ServerStartMode "prod";
find Server "AdminServer" as AdminServer;
set AdminServer.ListenAddress "";
set AdminServer.ListenPort "7001";
set AdminServer.SSL.Enabled "true";
set AdminServer.SSL.ListenPort "7002";
//Create Machine
//create Machine "base" as Machinename;
//use templates default weblogic user
find User "weblogic" as u1;
set u1.password "weblogic";
write domain to "/home/weblogic/oracle/user_projects/domains/base_domain/";
// The domain name will be "demo-domain"
close template;
[weblogic@localhost ~]$ cd /home/weblogic/oracle/wlserver/common/bin
[weblogic@localhost bin]$
./config.sh -mode=silent -silent_script=/home/weblogic/create_domain.rsp -logfile=/home/weblogic/create_domain.log
因为我是按照完后编写,所以显示已经安装
[weblogic@localhost bin]$ mkdir -p /home/weblogic/oracle/user_projects/domains/base_domain/servers/AdminServer/
[weblogic@localhost bin]$ chmod -R 766 /home/weblogic/oracle/user_projects/domains/base_domain/servers/AdminServer/
[weblogic@localhost bin]$ cd /home/weblogic/oracle/user_projects/domains/base_domain/
[weblogic@localhost base_domain]$ cd servers/
[weblogic@localhost servers]$ cd AdminServer/
[weblogic@localhost AdminServer]$ mkdir -p security
[weblogic@localhost AdminServer]$ chmod -R 766 security/
[weblogic@localhost AdminServer]$ cd security/
#登录账号和密码
[weblogic@localhost security]$ vi boot.properties
username=weblogic
password=weblogic
[weblogic@localhost security]$ cd /home/weblogic/oracle/user_projects/domains/base_domain/
[weblogic@localhost base_domain]$ ./startWebLogic.sh
运行后出线让你输入账号密码
浏览器访问路径:127.0.0.1:7001/console
输入账号密码后登陆成功