linux环境下安装weblogic,在Linux下安装weblogic 12.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)

ff8a671f826ba878bf4bff0e47ceb60c.png

验证Java 安装

2f7fc7bd695b1ef1d7390977f931b0fb.png

安装前准备 – 创建必要的用户和组.

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

ca5f8d994c68a14ab307904ecd55e397.png

f0c379de3d442b26fb28ef4d6ace55e3.png

10. 安装存放的路径为:cd /home/weblogic

a9e46ccb7fb4a3184799c26a55a435b2.png

668cf1fe06173b92cdb3b21d89934a2d.png

11. 新建域的目录

[weblogic@yxbj ~]$ mkdir -p /home/weblogic/wls12213/user_projects/domains/base_domain/

4def3f3e444905b187ee747e1d10af7a.png

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;

0c40cfedd1871cf4ce937fbacc174305.png

13. 切换到/home/weblogic/wls12213/wlserver/common/bin目录下

[weblogic@yxbj bin]$ cd /home/weblogic/wls12213/wlserver/common/bin

404114d3967917a9211acac9cc1ac8a2.png

14. 执行创建域脚本

[weblogic@yxbj bin]$ ./config.sh -mode=silent -silent_script=/home/weblogic/create_domain.rsp -logfile=/home/weblogic/create_domain.log

ca5f8d994c68a14ab307904ecd55e397.png

15. 切换到安全目录下新装控制台用户名和密码

[root@yxbj security]#

cd /home/weblogic/wls12213/user_projects/domains/base_domain/servers/AdminServer/

如果没有/servers/AdminServer/目录, 可以自动创建 mkdir -p /servers/AdminServer/

[root@yxbj AdminServer]# mkdir security

[root@yxbj AdminServer]# cd security/

[root@yxbj security]# vi boot.properties

username=weblogic

password= weblogic

062fa6ad2e8e6405238468c850100e33.png

16. 切换到域目录

[weblogic@yxbj bin]$ cd /home/weblogic/wls12213/user_projects/domains/base_domain/

c7ad7dd93ac25b463a4e225e8781621c.png

17. 启动脚本,进入控制台

[weblogic@yxbj base_domain]$  nohup ./startWebLogic.sh >out.log 2>&1 &

3cd607fab4b577318f2d54d774a2eae4.png

18. 验证端口 netstat –nltp |grep 7001

7f00baf73d49990ad9d2f2ffe1475b5e.png

18. 在浏览器输入URL地址  http://172.16.4.120:7001/console/,输入在boot.properties文件中配置用户名和密码接口

70c605fdf603a7c547386dd89c09fd01.png

0598360e6b9220a8275189406f6eb956.png

启动关闭weblogic

进入目录:

#cd /home/weblogic/weblogic12c/oracle/user_projects/domains/base_domain/bin

启动(这个方式启动,关闭终端窗口weblogic也会关闭):

#./startWebLogic.sh

关闭:

#./stopWebLogic.sh

以后台方式启动(关闭终端窗口weblogic不会关闭):

# nohup ./startWebLogic.sh &

查看日志:

#tail -f /home/weblogic/weblogic12c/oracle/user_projects/domains/base_domain/servers/AdminServer /logs/AdminServer.log

放行7001端口:

#firewall-cmd --zone=public --add-port=7001/tcp --permanent

访问管理台:http://192.168.0.10:7001/console

df24c7afaf8da6ed9c89ba18895c84c3.png

73a490a919de1468ef0e47c87b6ebeeb.png

网络笨猪

发布了25 篇原创文章 · 获赞 23 · 访问量 3万+

私信

关注

标签:domain,1.3,AdminServer,12.2,weblogic,home,root,yxbj

来源: https://blog.csdn.net/lyfqyr/article/details/104434555

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值