首页 技术 正文
技术 2022年11月9日
0 收藏 381 点赞 2,777 浏览 3112 个字

CentOS 安装Weblogic并配置 domain

1、创建用户组
[root@localhost weblogic]# groupadd weblogic
2、创建 tmn 用户
[root@localhost weblogic]# adduser tmn
3、设置 tmn 用户密码
> [root@localhost weblogic]# passwd tmn

Changing password for user tmn.

New password:

BAD PASSWORD: The password is shorter than 8 characters

Retype new password:

passwd: all authentication tokens updated successfully.

[root@localhost weblogic]#

4、切换至 tmn 用户
[root@localhost opt]# su - tmn

[tmn@localhost ~]$

5、进入 wls1036_generic.jar 安装包目录
[tmn@localhost ~]$ cd /opt/weblogic/

[tmn@localhost weblogic]$ ll

total 1043464

-rwxrwxrwx 1 root root 1068506707 Dec 13 10:45 wls1036_generic.jar

[tmn@localhost weblogic]$ pwd

/opt/weblogic

[tmn@localhost weblogic]$

6、检查 java 环境
[tmn@localhost weblogic]$ java -version

java version "1.8.0_144"

Java(TM) SE Runtime Environment (build 1.8.0_144-b01)

Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

7、安装 weblogic
[tmn@localhost weblogic]$ java -jar wls1036_generic.jar

Enter [Exit][Next]> Next

Enter new Middleware Home OR [Exit][Previous][Next]> Next

Enter index number to select OR [Exit][Previous][Next]> 3

Enter [Yes][No]? No

Enter [Yes][No]? Yes

Enter index number to select OR [Exit][Previous][Next]> Next

Enter index number to select OR [Exit][Previous][Next]> Next

Enter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]> Next

Enter index number to select OR [Exit][Previous][Next]> Next

Enter [Exit][Previous][Next]> Next

Press [Enter] to continue or type [Exit]>

8、进入 weblogic 配置脚本目录,准备执行 config.sh 脚本
[tmn@localhost bin]$ cd /home/tmn/Oracle/Middleware/wlserver_10.3/common/bin

[tmn@localhost bin]$

[tmn@localhost bin]$ ll

total 112

-rwxr-x— 1 tmn tmn 22801 Dec 29 11:30 commEnv.sh

-rwxr-x— 1 tmn tmn 2124 Dec 29 11:30 config_builder.sh

-rwxr-x— 1 tmn tmn 2276 Dec 29 11:30 config.sh

-rwxr-x— 1 tmn tmn 2581 Dec 29 11:30 pack.sh

-rwxr-x— 1 tmn tmn 2150 Dec 29 11:30 setPatchEnv.sh

-rwxr-x— 1 tmn tmn 4084 Dec 29 11:30 startDerby.sh

-rwxr-x— 1 tmn tmn 4090 Dec 29 11:30 startManagedWebLogic.sh

-rwxr-x— 1 tmn tmn 1450 Dec 29 11:30 stopDerby.sh

-rwxr-x— 1 tmn tmn 2089 Dec 29 11:30 unpack.sh

-rwxr-x— 1 tmn tmn 3300 Dec 29 11:30 upgrade.sh

-rwxr-x— 1 tmn tmn 31219 Dec 29 11:29 wlscontrol.sh

-rwxr-x— 1 tmn tmn 13740 Dec 29 11:29 wlsifconfig.sh

-rwxr-x— 1 tmn tmn 786 Dec 29 11:30 wlst.sh

9、执行 config.sh 配置脚本,创建 domain
[tmn@localhost bin]$ ./config.sh

Enter index number to select OR [Exit][Next]> Next

Enter index number to select OR [Exit][Previous][Next]> Next

Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> Next

Enter value for "Name" OR [Exit][Previous][Next]> Next

Enter new Target Location OR [Exit][Previous][Next]> Next

Enter option number to select OR [Exit][Previous][Next]> 2

Enter new *User password: OR [Exit][Reset][Accept]> tjyd@123

Enter option number to select OR [Exit][Previous][Next]> 3

Enter new *Confirm user password: OR [Exit][Reset][Accept]> tjyd@123

Enter option number to select OR [Exit][Previous][Next]> Next

Enter index number to select OR [Exit][Previous][Next]> Next

Enter index number to select OR [Exit][Previous][Next]> Next

Enter index number to select OR [Exit][Previous][Next]> 1

Enter index number to select OR [Exit][Previous][Next]> Next

Enter option number to select OR [Exit][Previous][Next]> Next

10、启动 domain,验证是否安装成功

进入创建的 domain 目录

[tmn@localhost ~]$ cd /home/tmn/Oracle/Middleware/user_projects/domains/base_domain/bin

启动 domain

[tmn@localhost ~]$ nohup ./startWebLogic.sh &

登录网址 http://192.168.116.129:7001/console/login/LoginForm.jsp 验证

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,488
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,903
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,736
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,487
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:8,127
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:5,289