linux环境下安装weblogic,在Linux下安装weblogic12.2.1.3.0的
过程
Centos7下安装weblogic 12.2.1.3.0的过程
说明:
Weblogic12c安装包:fmw_12.2.1.3.0_wls_quick.jar
JDK:jdk1.8.0_172
部署服务器:172.16.4.120
系统版本:CentOS Linux release 7.4.1708 (Core)
创建⽤户
1、创建weblogic⽤户组
#groupadd weblogic
2、创建weblogic⽤户
#useradd -g weblogic weblogic
3、修改weblogic⽤户密码
#passwd weblogic  ---techops2020
4、切换⽤户到weblogic
# su – weblogic
普通⽤户提权root
注意创建⽤户之后:保险起见还是通过新的weblogic⽤户去登录然后执⾏如下步骤!
安装前准备 – 安装JDK
准备JDK1.8: java 1.8 linux 64位版本 (/etc/profile)
验证Java 安装
安装前准备 – 创建必要的⽤户和组.
1. 创建weblogic组
[root@yxbj ~]# groupadd weblogic
2. 创建weblogic⽤户
[root@yxbj ~]# useradd -g weblogic weblogic
3. 为⽤户创建密码
[root@yxbj ~]# passwd weblogic
4. 切换到weblogic⽤户
[root@yxbj weblogic]# su - weblogic
安装前准备 – 安装weblogic
5.准备weblogic安装包
6. 拷贝weblogic安装包、JDK到/home/weblogic下
修改⽂件的权限
[root@yxbj ~]# chown -R weblogic:weblogic /home/weblogic/
7. 在/home/weblogic⽬录下⽂件wsl.rsp
[ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0
[GENERIC]
#The oracle home location. This can be an existing Oracle Home or a new Oracle Home
ORACLE_HOME=/home/weblogic/oracle
#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
INSTALL_TYPE=WebLogic Server
#Provide the My Oracle Support Username. If you wish to ignore Oracle Configuration Manager configuration provide empty string for user name.
MYORACLESUPPORT_USERNAME=
#Provide the My Oracle Support Password
MYORACLESUPPORT_PASSWORD=
#Set this to true if you wish to decline the security updates. Setting this to true and providing empty string for My Oracle Support username will ignore the Oracle Configuration Manager configuration
DECLINE_SECURITY_UPDATES=true
#Set this to true if My Oracle Support Password is specified
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
#Provide the Proxy Host
PROXY_HOST=
#Provide the Proxy Port
PROXY_PORT=
#Provide the Proxy Username
PROXY_USER=
#Provide the Proxy Password
PROXY_PWD=
#Type String (URL format) Indicates the OCM Repeater URL which should be of the format
[scheme[Http/Https]]://[repeater host]:[repeater port]
COLLECTOR_SUPPORTHUB_URL=
8. 在/home/weblogic⽬录下⽂件oraInst.loc
inventory_loc=/home/weblogic/oraInventory
inst_group=weblogic
9. 执⾏安装操作 (此步骤要使⽤weblogic账号启动  su - weblogic)
[weblogic@yxbj ~]$ java -jar fmw_12.2.1.3.0_wls_quick.jar -silent -responseFile /home/weblogic/wsl.rsp -invPtrLoc /home/weblogic/oraInst.loc
10. 安装存放的路径为:cd /home/weblogic
11. 新建域的⽬录
[weblogic@yxbj ~]$ mkdir -p /home/weblogic/wls12213/user_projects/domains/base_domain/
12. 在home/weblogic创建域脚本create_domain.rsp
read template from "/home/weblogic/wls12213/wlserver/common/templates/wls/wls.jar";
set JavaHome "/usr/java/jdk1.8.0_11";
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/wls12213/user_projects/domains/base_domain/";
/
/ The domain name will be "demo-domain"
close template;
13. 切换到/home/weblogic/wls12213/wlserver/common/bin⽬录下
[weblogic@yxbj bin]$ cd /home/weblogic/wls12213/wlserver/common/bin
14. 执⾏创建域脚本
[weblogic@yxbj bin]$ ./config.sh -mode=silent -silent_script=/home/weblogic/create_domain.rsp -logfile=/home/weblogic/create_domain.log
linux安装jdk16
15. 切换到安全⽬录下新装控制台⽤户名和密码
[root@yxbj security]#
cd /home/weblogic/wls12213/user_projects/domains/base_domain/servers/AdminServer/

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。