weblogic 安裝

[原創(chuàng)鏈接地址:(https://blog.csdn.net/weixin_36065860/article/details/100075427)
yum -y install wget lrzsz
seteforce 0
systemctl stop firewalld
wget http://learning.happymmall.com/jdk/jdk-7u80-linux-x64.rpm
rpm -qa | grep jdk
rz 導(dǎo)入
wls1036_generic.jar
rpm -ivh jdk-7u80-linux-x64.rpm
java -version
vi /etc/profile
JAVA_HOME=/root/jdk1.7.0_80
PATH=JAVA_HOME/bin:PATH
CLASSPATH=.:JAVA_HOME/lib/dt.jar:JAVA_HOME/lib/tools.jar
export JAVA_HOME
export PATH
export CLASSPATH

source /etc/profile
groupadd weblogic
useradd -g weblogic weblogic
passwd weblogic
vi /etc/sudoers
復(fù)制填入一行
weblogic ALL=(ALL) ALL
vi /etc/security/limits.conf

weblogic soft nofile 102400

weblogic hard nofile 102400

weblogic soft nproc 102400

weblogic hard nproc 102400

ulimit -a
mkdir weblogic
chown -R weblogic:weblogic weblogic
chmod a+x wls1036_generic.jar
mkdir -p home/weblogic
mv wls1036_generic.jar home/weblogic
su - weblogic
java -jar wls1036_generic.jar

Unable to instantiate GUI, defaulting to console mode.
Extracting 0%....................................................................................................100%

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Welcome:
--------

This installer will guide you through the installation of WebLogic 10.3.6.0\. 
Type "Next" or enter to proceed to the next prompt.  If you want to change data entered previously, type "Previous".  You may quit the installer at any time by typing "Exit".

Enter [Exit][Next]> 直接回車


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [Enter new value or use default 
"/home/weblogic11g/Oracle/Middleware"]

//填寫安裝路徑
Enter new Middleware Home OR [Exit][Previous][Next]> /weblogic/Oracle/Middleware        

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [/weblogic/Oracle/Middleware]

Use above value or select another option:
    1 - Enter new Middleware Home
    2 - Change to default [/home/weblogic11g/Oracle/Middleware]

 //回車確認(rèn)路徑,1是重新填寫即纲,2是默認(rèn)路徑
Enter option number to select OR [Exit][Previous][Next]> 直接回車    

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[Yes]

//選擇3谨设,把YES修改成NO艇纺,不接受安全更新
Enter index number to select OR [Exit][Previous][Next]> 3


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]

//修改成No
Enter [Yes][No]? No

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]

    ** Do you wish to bypass initiation of the configuration manager and
    **  remain uninformed of critical security issues in your configuration?

// 確認(rèn)剛剛的修改
Enter [Yes][No]?Yes


<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[No]

//修改后顯示為No.直接回車
Enter index number to select OR [Exit][Previous][Next]> 直接回車

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Install Type:
--------------------

Select the type of installation you wish to perform. 

 ->1|Typical
    |  Install the following product(s) and component(s):
    | - WebLogic Server
    | - Oracle Coherence

   2|Custom
    |  Choose software products and components to install and perform optional 
    |configuration.

//選擇安裝的類型税弃,回車選擇1默認(rèn)的安裝類型
Enter index number to select OR [Exit][Previous][Next]> 直接回車

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

JDK Selection (Any * indicates Oracle Supplied VM):
---------------------------------------------------

JDK(s) chosen will be installed.  Defaults will be used in script string-substitution if installed.

   1|Add Local Jdk
   2|/usr/local/jdk1.6.0_45[x]

   *Estimated size of installation:  690.2 MB

//選擇使用的JDK降盹,這里默認(rèn)的是系統(tǒng)的1.6馅笙,沒有問題
Enter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]> 直接回車

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Product Installation Directories:
----------------------------------------

Middleware Home Directory: [/weblogic/Oracle/Middleware]

Product Installation Directories:

   1|WebLogic Server: [/weblogic/Oracle/Middleware/wlserver_10.3]
   2|Oracle Coherence: [/weblogic/Oracle/Middleware/coherence_3.7]

//顯示即將安裝的路徑信息
Enter index number to select OR [Exit][Previous][Next]> 直接回車

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

The following Products and JDKs will be installed:
--------------------------------------------------

    WebLogic Platform 10.3.6.0
    |_____WebLogic Server
    |    |_____Core Application Server
    |    |_____Administration Console
    |    |_____Configuration Wizard and Upgrade Framework
    |    |_____Web 2.0 HTTP Pub-Sub Server
    |    |_____WebLogic SCA
    |    |_____WebLogic JDBC Drivers
    |    |_____Third Party JDBC Drivers
    |    |_____WebLogic Server Clients
    |    |_____WebLogic Web Server Plugins
    |    |_____UDDI and Xquery Support
    |    |_____Evaluation Database
    |_____Oracle Coherence
         |_____Coherence Product Files

    *Estimated size of installation: 690.3 MB

//顯示即將安裝的包和JDKs
Enter [Exit][Previous][Next]> 直接回車

Aug 26, 2019 4:09:15 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Installing files..

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]

Performing String Substitutions... 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Configuring OCM...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]

Creating Domains...

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Installation Complete

Congratulations! Installation is complete.

//顯示安裝過程
Press [Enter] to continue or type [Exit]> 直接回車

//安裝完畢
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Clean up process in progress ...

創(chuàng)建weblogic域

安裝完成后需要創(chuàng)建WebLogic domain骏令,下面是創(chuàng)建過程:

[weblogic11g@gztvtest weblogic]$ cd Oracle/Middleware/wlserver_10.3/common/bin/
[weblogic11g@gztvtest bin]$ ll
total 112
-rwxr-x---. 1 weblogic11g weblogic 22803 Aug 26 16:09 commEnv.sh
-rwxr-x---. 1 weblogic11g weblogic  2124 Aug 26 16:09 config_builder.sh
-rwxr-x---. 1 weblogic11g weblogic  2276 Aug 26 16:09 config.sh
-rwxr-x---. 1 weblogic11g weblogic  2581 Aug 26 16:09 pack.sh
-rwxr-x---. 1 weblogic11g weblogic  2150 Aug 26 16:09 setPatchEnv.sh
-rwxr-x---. 1 weblogic11g weblogic  4084 Aug 26 16:09 startDerby.sh
-rwxr-x---. 1 weblogic11g weblogic  4090 Aug 26 16:09 startManagedWebLogic.sh
-rwxr-x---. 1 weblogic11g weblogic  1450 Aug 26 16:09 stopDerby.sh
-rwxr-x---. 1 weblogic11g weblogic  2089 Aug 26 16:09 unpack.sh
-rwxr-x---. 1 weblogic11g weblogic  3300 Aug 26 16:09 upgrade.sh
-rwxr-x---. 1 weblogic11g weblogic 31219 Aug 26 16:09 wlscontrol.sh
-rwxr-x---. 1 weblogic11g weblogic 13740 Aug 26 16:09 wlsifconfig.sh
-rwxr-x---. 1 weblogic11g weblogic   786 Aug 26 16:09 wlst.sh

執(zhí)行腳本config.sh

[weblogic11g@gztvtest bin]$ ./config.sh 
Unable to instantiate GUI, defaulting to console mode.

<------------------- Fusion Middleware Configuration Wizard ------------------>

Welcome:
--------

Choose between creating and extending a domain. Based on your selection, 
the Configuration Wizard guides you through the steps to generate a new or 
extend an existing domain.

 ->1|Create a new WebLogic domain
    |    Create a WebLogic domain in your projects directory.  

   2|Extend an existing WebLogic domain
    |    Use this option to add new components to an existing domain and modify     |configuration settings. 

//默認(rèn)1創(chuàng)建新的WebLogic domain蔬捷,2是增加一個WebLogic domain
Enter index number to select OR [Exit][Next]> 直接回車

<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Domain Source:
---------------------

Select the source from which the domain will be created. You can create the 
domain by selecting from the required components or by selecting from a 
list of existing domain templates.

 ->1|Choose Weblogic Platform components
    |    You can choose the Weblogic component(s) that you want supported in 
    |your domain. 

   2|Choose custom template
    |    Choose this option if you want to use an existing  template. This 
    |could be a custom created template using the Template Builder. 

//1是默認(rèn)使用weblogic組件,2是選擇自定義
Enter index number to select OR [Exit][Previous][Next]> 直接回車

<------------------- Fusion Middleware Configuration Wizard ------------------>

Application Template Selection:
-------------------------------
    Available Templates
    |_____Basic WebLogic Server Domain - 10.3.6.0 [wlserver_10.3]x
    |_____Basic WebLogic SIP Server Domain - 10.3.6.0 [wlserver_10.3] [2] 
    |_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.6.0 [wlserver_10.3] [3] 
    |_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.6.0 [wlserver_10.3] [4] 

//顯示weblogic支持的組件
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 直接回車


<------------------- Fusion Middleware Configuration Wizard ------------------>

Edit Domain Information:
------------------------

    |  Name  |    Value    |
   _|________|_____________|
   1| *Name: | base_domain |

//填寫domain的名字
Enter value for "Name" OR [Exit][Previous][Next]> cbossdomain

<------------------- Fusion Middleware Configuration Wizard ------------------>

Edit Domain Information:
------------------------

    |  Name  |    Value    |
   _|________|_____________|
   1| *Name: | cbossdomain |

Use above value or select another option:
    1 - Modify "Name"
    2 - Discard Changes
//1 修改名字榔袋,2周拐,放棄修改
Enter option number to select OR [Exit][Previous][Next]> 直接回車


<------------------- Fusion Middleware Configuration Wizard ------------------>

Select the target domain directory for this domain:
---------------------------------------------------

    "Target Location" = [Enter new value or use default 
"/weblogic/Oracle/Middleware/user_projects/domains"]
//顯示創(chuàng)建的domains路徑位置
Enter new Target Location OR [Exit][Previous][Next]> 直接回車

<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the 
default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|         *Name:          |                weblogic                 |
   2|     *User password:     |                                         |
   3| *Confirm user password: |                                         |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"
//1修改名字 2.修改密碼 3確認(rèn)密碼 4修改描述
Enter option number to select OR [Exit][Previous][Next]> 2

<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the 
default administrator used to start development mode servers.

    "*User password:" = []
//輸入密碼
Enter new *User password: OR [Exit][Reset][Accept]>abc123

<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the 
default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|         *Name:          |                weblogic                 |
   2|     *User password:     |                ********                 |
   3| *Confirm user password: |                                         |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"
    5 - Discard Changes
//3確認(rèn)密碼
Enter option number to select OR [Exit][Previous][Next]> 3

<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the 
default administrator used to start development mode servers.

    "*Confirm user password:" = []
//確認(rèn)密碼
Enter new *Confirm user password: OR [Exit][Reset][Accept]> abc123


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the 
default administrator used to start development mode servers.

    |          Name           |                  Value                  |
   _|_________________________|_________________________________________|
   1|         *Name:          |                weblogic                 |
   2|     *User password:     |                ********                 |
   3| *Confirm user password: |                ********                 |
   4|      Description:       | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"
    5 - Discard Changes

Enter option number to select OR [Exit][Previous][Next]> 直接回車


<------------------- Fusion Middleware Configuration Wizard ------------------>

Domain Mode Configuration:
--------------------------

Enable Development or Production Mode for this domain. 

 ->1|Development Mode

   2|Production Mode

//選擇2生產(chǎn)模式,默認(rèn)1是開發(fā)模式
Enter index number to select OR [Exit][Previous][Next]> 2


<------------------- Fusion Middleware Configuration Wizard ------------------>

Java SDK Selection:
-------------------

 ->1|Sun SDK 1.6.0_45 @ /usr/local/jdk1.6.0_45
   2|Other Java SDK

//選擇SDK凰兑,1默認(rèn)本地1.6
Enter index number to select OR [Exit][Previous][Next]> 直接回車


<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Optional Configuration:
------------------------------

   1|Administration Server [ ]
   2|Managed Servers, Clusters and Machines [ ]
   3|RDBMS Security Store [ ]
這里不做配置妥粟,做集群配置在管理頁面做
Enter index number to select OR [Exit][Previous][Next]> 直接回車

備注:
可以在命令行中配置管理服務(wù)器、受管服務(wù)器吏够、集群和計算機勾给,此處選擇在控制臺中配置

安裝完畢

<------------------- Fusion Middleware Configuration Wizard ------------------>

Creating Domain...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]

**** Domain Created Successfully! ****
[weblogic11g@gztvtest bin]$ 

配置AdminServer后臺運行滩报,并優(yōu)化JVM參數(shù)

  1. 第一次前臺運行AdmininServer
[weblogic11g@gztvtest bin]$ cd /weblogic/Oracle/Middleware/user_projects/domains/cbossdomain/bin/
[weblogic11g@gztvtest bin]$ ll
total 48
drwxr-x---. 2 weblogic11g weblogic  4096 Aug 26 17:13 nodemanager
drwxr-x---. 2 weblogic11g weblogic  4096 Aug 26 17:13 server_migration
drwxr-x---. 2 weblogic11g weblogic  4096 Aug 26 17:13 service_migration
-rwxr-x---. 1 weblogic11g weblogic 13251 Aug 26 17:13 setDomainEnv.sh
-rwxr-x---. 1 weblogic11g weblogic  3193 Aug 26 17:13 startManagedWebLogic.sh
-rwxr-x---. 1 weblogic11g weblogic  5694 Aug 26 17:13 startWebLogic.sh
-rwxr-x---. 1 weblogic11g weblogic  2406 Aug 26 17:13 stopManagedWebLogic.sh
-rwxr-x---. 1 weblogic11g weblogic  1974 Aug 26 17:13 stopWebLogic.sh

執(zhí)行./startWebLogic.sh,前臺運行要輸入賬號密碼

[weblogic11g@gztvtest bin]$ ./startWebLogic.sh 
.
.
JAVA Memory arguments: -Xms256m -Xmx512m  -XX:MaxPermSize=256m
.
WLS Start Mode=Production
.
CLASSPATH=/weblogic/Oracle/Middleware/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/weblogic/Oracle/Middleware/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/local/jdk1.6.0_45/lib/tools.jar:/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/weblogic/Oracle/Middleware/modules/features/weblogic.server.modules_10.3.6.0.jar:/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/weblogic/Oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/weblogic/Oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/weblogic/Oracle/Middleware/wlserver_10.3/common/derby/lib/derbyclient.jar:/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/xqrl.jar:/usr/local/jdk1.6.0_45//lib/tools.jar:/usr/local/jdk1.6.0_45//lib/dt.jar
.
PATH=/weblogic/Oracle/Middleware/wlserver_10.3/server/bin:/weblogic/Oracle/Middleware/modules/org.apache.ant_1.7.1/bin:/usr/local/jdk1.6.0_45/jre/bin:/usr/local/jdk1.6.0_45/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/jdk1.6.0_45//bin:/bin:/home/weblogic11g/bin
.
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http://hostname:port/console        *
***************************************************
starting weblogic with Java version:
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
Starting WLS with line:
/usr/local/jdk1.6.0_45/bin/java -server   -Xms256m -Xmx512m  -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer -Djava.security.policy=/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.policy  -Dweblogic.ProductionModeEnabled=true   -da -Dplatform.home=/weblogic/Oracle/Middleware/wlserver_10.3 -Dwls.home=/weblogic/Oracle/Middleware/wlserver_10.3/server -Dweblogic.home=/weblogic/Oracle/Middleware/wlserver_10.3/server   -Dweblogic.management.discover=true  -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/weblogic/Oracle/Middleware/patch_wls1036/profiles/default/sysext_manifest_classpath:/weblogic/Oracle/Middleware/patch_ocp371/profiles/default/sysext_manifest_classpath  weblogic.Server
<Aug 26, 2019 5:23:47 PM CST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true> 
<Aug 26, 2019 5:23:47 PM CST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true> 
<Aug 26, 2019 5:23:48 PM CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 20.45-b01 from Sun Microsystems Inc.> 
<Aug 26, 2019 5:23:48 PM CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050 > 
<Aug 26, 2019 5:23:49 PM CST> <Info> <Security> <BEA-090065> <Getting boot identity from user.> 
Enter username to boot WebLogic server:

當(dāng)出現(xiàn)以下內(nèi)容時表示啟動成功

0:0:0:0:1> 
<Aug 26, 2019 5:35:05 PM CST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.> 
<Aug 26, 2019 5:35:05 PM CST> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.> 
<Aug 26, 2019 5:35:05 PM CST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on fe80:0:0:0:250:56ff:fe80:2f1d:7001 for protocols iiop, t3, ldap, snmp, http.> 
<Aug 26, 2019 5:35:05 PM CST> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "AdminServer" for domain "cbossdomain" running in Production Mode> 
<Aug 26, 2019 5:35:05 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING> 
<Aug 26, 2019 5:35:05 PM CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>

  1. 配置AdminServer后臺運行
    Ctrl + c結(jié)束前臺運行的AdminServer,首次運行AdminServer后播急,會自動在cbossdomain目錄下創(chuàng)建servers/AdminServer目錄
[weblogic11g@gztvtest cbossdomain]$ ll
total 40
drwxr-x---.  2 weblogic11g weblogic 4096 Aug 26 17:13 autodeploy
drwxr-x---.  5 weblogic11g weblogic 4096 Aug 26 17:13 bin
drwxr-x---. 10 weblogic11g weblogic 4096 Aug 26 17:23 config
drwxr-x---.  2 weblogic11g weblogic 4096 Aug 26 17:13 console-ext
-rw-r-----.  1 weblogic11g weblogic  462 Aug 26 17:13 fileRealm.properties
drwxr-x---.  2 weblogic11g weblogic 4096 Aug 26 17:13 init-info
drwxr-x---.  2 weblogic11g weblogic 4096 Aug 26 17:13 lib
drwxr-x---.  2 weblogic11g weblogic 4096 Aug 26 17:13 security
drwxr-----.  3 weblogic11g weblogic 4096 Aug 26 17:23 servers
-rwxr-x---.  1 weblogic11g weblogic  277 Aug 26 17:13 startWebLogic.sh
[weblogic11g@gztvtest cbossdomain]$ pwd
/weblogic/Oracle/Middleware/user_projects/domains/cbossdomain

創(chuàng)建文件然后編輯

[weblogic11g@gztvtest AdminServer]$ pwd
/weblogic/Oracle/Middleware/user_projects/domains/cbossdomain/servers/AdminServer
[weblogic11g@gztvtest AdminServer]$ mkdir security
[weblogic11g@gztvtest AdminServer]$ cd security/
[weblogic11g@gztvtest security]$ vi boot.properties
username=weblogic
password=abc12345678

  1. 優(yōu)化JVM參數(shù)
[weblogic11g@gztvtest bin]$ pwd
/weblogic/Oracle/Middleware/user_projects/domains/cbossdomain/bin
[weblogic11g@gztvtest bin]$ vi startWebLogic.sh 
[weblogic11g@gztvtest bin]$ vi setDomainEnv.sh 
startWebLogic.sh會調(diào)用setDomainEnv.sh脓钾,所以優(yōu)先級比setDomainEnv.sh高
此處選擇修改startWebLogic.sh

(1)trap ‘stopAll’ 1 2 3 15上方加入代碼:MEM_ARGS="-Xms1024m -Xmx1024m -XX:MaxPermSize=512m"

SAVE_CLASSPATH=""
MEM_ARGS="-Xms1024m -Xmx1024m -XX:MaxPermSize=512m"
trap 'stopAll' 1 2 3 15

(2)如果應(yīng)用程序需要在網(wǎng)頁中顯示驗證碼,則增加JVM參數(shù)-Djava.awt.headless=true
將SAVE_JAVA_OPTIONS="${JAVA_OPTIONS}"修改為

SAVE_JAVA_OPTIONS="${JAVA_OPTIONS} -Djava.awt.headless=true"

  1. 后臺啟動weblogic
[weblogic11g@gztvtest bin]$ nohup ./startWebLogic.sh &          //記錄會保存到自動創(chuàng)建的nohup.out文件中
[1] 19314
[weblogic11g@gztvtest bin]$ nohup: ignoring input and appending output to `nohup.out'

之前編輯的密碼文件已經(jīng)變成加密格式了

/weblogic/Oracle/Middleware/user_projects/domains/cbossdomain/servers/AdminServer/security
[weblogic11g@gztvtest security]$ cat boot.properties 
#Mon Aug 26 17:50:20 CST 2019
password={AES}tSv1+qpUFx6otq0Hi83+/IyLhKozU1s7VXN18wzZfXA\=
username={AES}HON39b8L8+lnF8gSCYT5QGH3VWCAg+SSuitGUmuAFko\=

后臺關(guān)閉weblogic:

[weblogic11g@gztvtest bin]$ nohup ./stopWebLogic.sh &          //記錄會保存到自動創(chuàng)建的nohup.out文件中

在瀏覽器輸入網(wǎng)址:

http://192.168.1.220:7001/console

打開控制臺桩警,并輸入用戶名weblogic和密碼abc12345678:


登錄頁面
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末可训,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子捶枢,更是在濱河造成了極大的恐慌握截,老刑警劉巖,帶你破解...
    沈念sama閱讀 216,496評論 6 501
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件柱蟀,死亡現(xiàn)場離奇詭異川蒙,居然都是意外死亡蚜厉,警方通過查閱死者的電腦和手機长已,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,407評論 3 392
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來昼牛,“玉大人术瓮,你說我怎么就攤上這事》〗。” “怎么了胞四?”我有些...
    開封第一講書人閱讀 162,632評論 0 353
  • 文/不壞的土叔 我叫張陵,是天一觀的道長伶椿。 經(jīng)常有香客問我辜伟,道長,這世上最難降的妖魔是什么脊另? 我笑而不...
    開封第一講書人閱讀 58,180評論 1 292
  • 正文 為了忘掉前任导狡,我火速辦了婚禮,結(jié)果婚禮上偎痛,老公的妹妹穿的比我還像新娘旱捧。我一直安慰自己,他們只是感情好踩麦,可當(dāng)我...
    茶點故事閱讀 67,198評論 6 388
  • 文/花漫 我一把揭開白布枚赡。 她就那樣靜靜地躺著,像睡著了一般谓谦。 火紅的嫁衣襯著肌膚如雪贫橙。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,165評論 1 299
  • 那天反粥,我揣著相機與錄音卢肃,去河邊找鬼谓松。 笑死,一個胖子當(dāng)著我的面吹牛践剂,可吹牛的內(nèi)容都是我干的鬼譬。 我是一名探鬼主播,決...
    沈念sama閱讀 40,052評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼逊脯,長吁一口氣:“原來是場噩夢啊……” “哼优质!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起军洼,我...
    開封第一講書人閱讀 38,910評論 0 274
  • 序言:老撾萬榮一對情侶失蹤巩螃,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后匕争,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體避乏,經(jīng)...
    沈念sama閱讀 45,324評論 1 310
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,542評論 2 332
  • 正文 我和宋清朗相戀三年甘桑,在試婚紗的時候發(fā)現(xiàn)自己被綠了拍皮。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 39,711評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡跑杭,死狀恐怖铆帽,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情德谅,我是刑警寧澤爹橱,帶...
    沈念sama閱讀 35,424評論 5 343
  • 正文 年R本政府宣布,位于F島的核電站窄做,受9級特大地震影響愧驱,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜椭盏,卻給世界環(huán)境...
    茶點故事閱讀 41,017評論 3 326
  • 文/蒙蒙 一组砚、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧庸汗,春花似錦惫确、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,668評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至枉昏,卻和暖如春陈肛,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背兄裂。 一陣腳步聲響...
    開封第一講書人閱讀 32,823評論 1 269
  • 我被黑心中介騙來泰國打工句旱, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留阳藻,地道東北人。 一個月前我還...
    沈念sama閱讀 47,722評論 2 368
  • 正文 我出身青樓谈撒,卻偏偏與公主長得像腥泥,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子啃匿,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 44,611評論 2 353

推薦閱讀更多精彩內(nèi)容

  • 1 安裝weblogic java –jar wls1036_generic.jar 1.1 安裝歡迎界面蛔外,點擊下...
    w_dll閱讀 662評論 0 0
  • 一、安裝jdk Linux jdk安裝 以jdk-8u162-linux-x64.tar.gz為例 1溯乒、將jdk安...
    枯竹流過歲月閱讀 3,810評論 0 2
  • 很多大企業(yè)都使用weblogic作為中間件夹厌,優(yōu)點會在后續(xù)透徹研究后添加。 本文主要講述一下weblogic在lin...
    XIAO明同學(xué)閱讀 535評論 0 2
  • 環(huán)境: jdk1.7裆悄,liunx 6.8 使用紅帽VMWARE虛擬機安裝 1矛纹、創(chuàng)建weblogic用戶及用戶組 創(chuàng)...
    這憂傷的閱讀 491評論 0 1
  • 推薦指數(shù): 6.0 書籍主旨關(guān)鍵詞:特權(quán)、焦點光稼、注意力或南、語言聯(lián)想、情景聯(lián)想 觀點: 1.統(tǒng)計學(xué)現(xiàn)在叫數(shù)據(jù)分析钟哥,社會...
    Jenaral閱讀 5,717評論 0 5