安装步骤
1.创建weblogic组
groupadd weblogic
2.创建weblogic用户
useradd -g weblogic weblogic
3.为用户创建密码
passwd weblogic
4.拷贝weblogic安装包到/usr/local/src/weblogic/下,修改文件的权限
chown -R weblogic:weblogic /usr/local/src/weblogic/
5.切换到weblogic用户
su - weblogic
6.解压安装包
7.在/usr/local/src/weblogic/install/目录下新建文件wsl.rsp(我把脚本文件放在了install目录下),输入内容(设置安装存放路径为:/usr/local/src/weblogic/oracle):
[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=/usr/local/src/weblogic/oracle
INSTALL_TYPE=WebLogic Server
MYORACLESUPPORT_USERNAME=
#Provide the My Oracle Support Password
MYORACLESUPPORT_PASSWORD=<SECURE VALUE>
#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=<SECURE VALUE>
#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.在/usr/local/src/weblogic/install/目录下新建文件oraInst.loc(我把脚本文件放在了install目录下),输入内容:
inventory_loc=/usr/local/src/weblogic/oraInventory
inst_group=weblogic
9.执行安装操作(命令必须为绝对路径)
java -jar fmw_12.2.1.4.0_wls.jar -silent -responseFile /usr/local/src/weblogic/install/wsl.rsp -invPtrLoc /usr/local/src/weblogic/install/oraInst.loc
出现如下内容,安装成功
10.新建域目录
mkdir -p /usr/local/src/weblogic/oracle/user_projects/domains/base_domain/
11.在/usr/local/src/创建域脚本create_domain.rsp,输入内容(需要注意jdk路径,安装安装域目录,密码等,红色部分):
read template from "/usr/local/src/weblogic/oracle/wlserver/common/templates/wls/wls.jar";
set JavaHome "/usr/local/jdk1.8.0";
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 "h5" as Machinename;
//use templates default weblogic user
find User "weblogic" as u1;
set u1.password "weblogic123";
write domain to "/usr/local/src/weblogic/oracle/user_projects/domains/base_domain/";
// The domain name will be "base_domain"
close template;
12.加速创建域,找到使用的jdk的如下文件:(按需操作)
find / -name java.security
将securerandom.source=file:/dev/urandom 修改为
securerandom.source=file:/dev/./urandom
13.执行创建域脚本
cd /usr/local/src/weblogic/oracle/wlserver/common/bin
[weblogic@bogon bin]$ ./config.sh -mode=silent -silent_script=/usr/local/src/create_domain.rsp -logfile=/usr/local/src/weblogic/create_domain.log
启动服务
14.切换到安装目录下增加控制台用户名和密码(启动以后会出现此目录)
cd /usr/local/src/weblogic/oracle/user_projects/domains/base_domain/servers/AdminServer/
mkdir security
cd security/
vi boot.properties
设置用户名密码
username=weblogic
password=weblogic123
15.启动weblogic(weblogic用户)
cd /usr/local/src/weblogic/oracle/user_projects/domains/base_domain/bin
./startWebLogic.sh
在浏览器输入URL地址 http://ip:7001/console/ ,输入在boot.properties文件中配置用户名和密码
注意: 如果是在虚拟机里边装的环境,在本机访问上述地址时,可能访问不到,需要关闭防火墙或者是开放端口;
1.禁用防火墙
systemctl stop firewalld
2.启动防火墙
systemctl start firewalld
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)