weblogic 12c安装

 

安装最新的weblogic版本,版本号为 12.1.X(12.1.2,12.1.3)。开始以为和旧版安装一样,使用控制台的方式,下载bin文件,然后一步步在console执行下来就行了。万万没想到,从12C版本后,bin文件不提供了,改成全系统通用的jar文件 (generic.jar)。试了半天原来那种安装方式不能用了,非得用图形界面安装。由于服务器只能远程登录,于是各种百度、各种找材料,最后终于找到一种静默方式的安装。请看下文。

修改 打开文件最大个数、最大进程数【root用户操作】

## 新session永久生效,需要打开新终端(hard的值不能小于soft的值)
[root@node2 ~]$ vi /etc/security/limits.conf * soft nofile 65535 * hard nofile 65535 weblogic soft nproc 65535 weblogic hard nproc 65535 ## 临时设置 (1)硬限制 [root@db ~]# ulimit -Hn 102400 (2)软限制 [root@db ~]# ulimit -Sn 102400 [root@db ~]# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 15021 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 102400 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 15021 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited

创建weblogic用户、上传软件包

[root@db ~]# useradd weblogic
[root@db ~]# echo 123456|passwd --stdin weblogic

[root@db ~]# su - weblogic

[weblogic@db ~]$ mkdir softwares

$ ll /home/app/weblogic/softwares/
total 846428
-r-xr-xr-x. 1 weblogic weblogic 866733871 Sep 13  2019 fmw_12.2.1.4.0_wls.jar
drwxr-xr-x. 7 weblogic weblogic       245 Oct  6  2018 jdk1.8.0_191
-rw-rw-r--. 1 weblogic weblogic        67 Jun  1 04:35 oraInst.loc
-rw-rw-r--. 1 weblogic weblogic      1278 Jun  1 04:33 wls.rsp
$ echo -e "export JAVA_HOME=/home/weblogic/softwares/jdk1.8.0_191\nexport PATH=$PATH:$JAVA_HOME/bin" >> ~/.bash_profile 

$ . ~/.bash_profile

Slient Mode静默方式

首先看命令的格式:

java -jar wls_121200.jar -silent -responseFile  file -invPtrLoc file


-response file:响应文件

-invPtrLoc file:初始化环境文件

1、创建响应文件 wls.rsp  [响应文件中的项一定要写全,否则会报参数不足等错误]

$ cat 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/app/weblogic/bea

#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>

#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=

创建Loc文件 oraInst.loc

$ vim oraInst.loc
inventory_loc=/home/app/weblogic/oraInventory

inst_group=weblogic

需要确保wls.rsp文件中ORACLE_HOME定义的目录对weblogic用户有写入权限

oraInst.loc,wls.rsp,fmw_12.1.3.0.0_wls.jar 文件用户weblogic必须要有读写权限

安装

$ java -jar fmw_12.2.1.4.0_wls.jar  -silent  -responseFile  /home/weblogic/softwares/wls.rsp  -invPtrLoc /home/weblogic/softwares/oraInst.loc 

安装成功会提示如下信息

Percent Complete : 10
Percent Complete : 20
Percent Complete : 30
Percent Complete : 40
Percent Complete : 50
Percent Complete : 60
Percent Complete : 70
Percent Complete : 80
Percent Complete : 90
Percent Complete : 100

The installation of Oracle Fusion Middleware 12c WebLogic Server and Coherence 12.2.1.4.0 completed successfully.
Logs successfully copied to /home/app/weblogic/oraInventory/logs.

创建domain

方法1:通过命令行创建

$ pwd
/home/app/weblogic/bea/wlserver/common/bin

$ export MW_HOME="/home/app/weblogic/bea"

$ export WL_HOME="/home/app/weblogic/bea/oracle_common"

$ ./wlst.sh

WARNING: This is a deprecated script. Please invoke the wlst.sh script under oracle_common/common/bin.

Initializing WebLogic Scripting Tool (WLST) ...

Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline> readTemplate(/home/app/weblogic/bea/wlserver/common/templates/wls/wls.jar)
WARNING: The readTemplate is deprecated. Use selectTemplate followed by loadTemplates in place of readTemplate.
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(weblogic123)
wls:/offline/base_domain/Security/base_domain/User/weblogic>setOption(OverwriteDomain, true)
wls:/offline/base_domain/Security/base_domain/User/weblogic>writeDomain(/home/app/weblogic/bea/test/domains/base_domain)
wls:/offline/base_domain/Security/base_domain/User/weblogic>closeTemplate()
wls:/offline>exit()


Exiting WebLogic Scripting Tool.

安装后

[weblogic@localhost bin]$ ll /home/app/weblogic/bea/test/domains/base_domain
total 16
drwxr-x---. 2 weblogic weblogic   24 Jun  1 04:52 autodeploy
drwxr-x---. 6 weblogic weblogic 4096 Jun  1 04:52 bin
drwxr-x---. 3 weblogic weblogic   16 Jun  1 04:52 common
drwxr-x---. 8 weblogic weblogic  124 Jun  1 04:52 config
drwxr-x---. 2 weblogic weblogic   24 Jun  1 04:52 console-ext
-rw-r-----. 1 weblogic weblogic  327 Apr 26  2019 fileRealm.properties
drwxr-x---. 3 weblogic weblogic 4096 Jun  1 04:52 init-info
drwxr-x---. 2 weblogic weblogic   24 Jun  1 04:52 lib
drwxr-x---. 2 weblogic weblogic   63 Jun  1 04:52 nodemanager
drwxr-x---. 2 weblogic weblogic    6 Apr 26  2019 resources
drwxr-x---. 2 weblogic weblogic  167 Jun  1 04:52 security
drwxr-x---. 3 weblogic weblogic   25 Jun  1 04:52 servers
-rwxr-x---. 1 weblogic weblogic  263 Jun  1 04:52 startWebLogic.sh

方法2:通过参数文件执行安装

创建create_domains.py,添加如下内容:

$ vim create_domains.py
readTemplate(/home/app/weblogic/bea/wlserver/common/templates/wls/wls.jar)
cd(Servers/AdminServer)
set(ListenAddress,ip地址)
set(ListenPort, 7001)
cd(/Security/base_domain/User/weblogic)
cmo.setPassword(weblogic123)
setOption(OverwriteDomain, true)
setOption(ServerStartMode, prod)
writeDomain(/home/app/weblogic/domains/dai)


closeTemplate()
exit()

执行安装

$  ./wlst.sh  ./create_domains.py
WARNING: This is a deprecated script. Please invoke the wlst.sh script under oracle_common/common/bin.

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands



Exiting WebLogic Scripting Tool.
[weblogic@localhost bin]$ ll
/home/app/weblogic/domains/dai/ total 16 drwxr-x---. 2 weblogic weblogic 24 Jun 1 04:58 autodeploy drwxr-x---. 6 weblogic weblogic 4096 Jun 1 04:58 bin drwxr-x---. 3 weblogic weblogic 16 Jun 1 04:58 common drwxr-x---. 8 weblogic weblogic 124 Jun 1 04:58 config drwxr-x---. 2 weblogic weblogic 24 Jun 1 04:58 console-ext -rw-r-----. 1 weblogic weblogic 327 Apr 26 2019 fileRealm.properties drwxr-x---. 3 weblogic weblogic 4096 Jun 1 04:58 init-info drwxr-x---. 2 weblogic weblogic 24 Jun 1 04:58 lib drwxr-x---. 2 weblogic weblogic 63 Jun 1 04:58 nodemanager drwxr-x---. 2 weblogic weblogic 6 Apr 26 2019 resources drwxr-x---. 2 weblogic weblogic 167 Jun 1 04:58 security -rwxr-x---. 1 weblogic weblogic 246 Jun 1 04:58 startWebLogic.sh

 

原文链接:https://www.cnblogs.com/fibonaccixue/p/6577377.html

 

weblogic 12c安装

上一篇:(C++)错误提示 c2352 :非静态成员函数的非法调用


下一篇:C++中的多态性