0
点赞
收藏
分享

微信扫一扫

安装weblogic

奋斗De奶爸 2021-09-27 阅读 73

一、安装weblogic

操作系统环境

CentOS Linux release 7.4.1708 (Core)

1、 创建weblogic操作用户

useradd  weblogic
passwd weblogic  #密码:123456

2、 安装jdk-7u80-linux-x64.tar.gz

mkdir -p /application
tar -zxvf jdk-7u80-linux-x64.tar.gz -C /application
JAVA_HOME=/application/jdk1.7
export JRE_HOME=/application/jdk1.7/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH

3、修改配置

vim /application/jdk1.7/jre/lib/security/java.security
最初
securerandom.source=file:/dev/urandom
修改后
securerandom.source=file:/dev/./urandom

4、创建清单文件,以及组

echo '#Oracle Installer Location File Location' >> /etc/oraInst.loc
echo 'inst_group=weblogic' >> /etc/oraInst.loc
echo 'inventory_loc=/home/weblogic/oraInventory' >> /etc/oraInst.loc
chmod 755 /etc/oraInst.loc
chown -R weblogic:weblogic /etc/oraInst.loc

5、创建rsp文件切换到weblogic用户创建

su - weblogic
vim wls.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/Middleware     ---》指定安装的目录路径
    #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=<SECURE VALUE>
    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=

6、增加文件权限

chmod 755 wls.rsp

7、下载安装weblogic

java -jar fmw_12.1.3.0.0_wls.jar -silent -responseFile /home/weblogic/wls.rsp -invPtrLoc /etc/oraInst.loc

8、安装域(domain)

mkdir -p /home/weblogic/Oracle/Middleware/domains
cd  /home/weblogic/Oracle/Middleware/wlserver/common/bin
./commEnv.sh
./wlst.sh
wls:/offline> readTemplate('/home/weblogic/Oracle/Middleware/wlserver/common/templates/wls/wls.jar')
wls:/offline/base_domain>cd('Servers/AdminServer')
wls:/offline/base_domain/Server/AdminServer>set('ListenAddress','')
wls:/offline/base_domain/Server/AdminServer>set('ListenPort', 7001)
wls:/offline/base_domain/Server/AdminServer>cd('/')
wls:/offline/base_domain>cd('Security/base_domain/User/weblogic')
wls:/offline/base_domain/Security/base_domain/User/weblogic>cmo.setPassword('weblogic12c')
wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption('OverwriteDomain', 'true')
wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain('/home/weblogic/Oracle/Middleware/domains')
wls:/offline/domains/Security/domains/User/weblogic>closeTemplate()
wls:/offline>exit()

9、启动控制台

[weblogic@jun domains]$ pwd
/home/weblogic/Oracle/Middleware/domains
[weblogic@jun domains]$ ./startWebLogic.sh &

二、登录页面

1、链接及端口

http://10.0.0.112:7001/console 
weblogic、weblogic12c

2、页面展示

举报

相关推荐

0 条评论