weblogic安装

2020-12-07 04:05

阅读:588

标签:des   cWeb   style   blog   class   code   java   tar   ext   color   string   

1、检查是否关闭防火墙

mamicode.com,搜素材mamicode.com,搜素材
[root@gaosheng ~]# service iptables status

Firewall is stopped.
View Code

如果防火墙没有关闭,最好关闭;生产环境下,视具体情况而定.

2、上传weblogic安装包wls1036_generic.jar

此步骤略

3、安装JDK

mamicode.com,搜素材mamicode.com,搜素材
[root@gaosheng oracle]# rpm -qa | grepjdk
[root@gaosheng oracle]# rpm -qa | grepgcj
libgcj-4.1.2-48.el5
libgcj-devel-4.1.2-48.el5
libgcj-4.1.2-48.el5
java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
3.1、检查当期环境中的jdk

 

mamicode.com,搜素材mamicode.com,搜素材
[root@gaosheng oracle]# yum -y remove java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package java-1.4.2-gcj-compat.x86_64 0:1.4.2.0-40jpp.115 set to be erased
--> Processing Dependency: java-gcj-compat>= 1.0.64 for package: gjdoc
--> Processing Dependency: java-gcj-compat>= 1.0.64 for package: gjdoc
--> Processing Dependency: java-gcj-compat for package: antlr
--> Processing Dependency: java-gcj-compat for package: antlr
--> Running transaction check
---> Package antlr.x86_64 0:2.7.6-4jpp.2 set to be erased
---> Package gjdoc.x86_64 0:0.7.7-12.el5 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================
 Package                                Arch                    Version                              Repository                  Size
======================================================================================================================================
Removing:
 java-1.4.2-gcj-compat                  x86_64                  1.4.2.0-40jpp.115                    installed                   441 
Removing for dependencies:
antlr                                  x86_64                  2.7.6-4jpp.2                         installed                  3.2 M
gjdoc                                  x86_64                  0.7.7-12.el5                         installed                  2.2 M

Transaction Summary
======================================================================================================================================
Remove        3 Package(s)
Reinstall     0 Package(s)
Downgrade     0 Package(s)

Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing        : java-1.4.2-gcj-compat                                                                                          1/3 
  Erasing        : antlr                                                                                                          2/3 
  Erasing        : gjdoc                                                                                                          3/3 

Removed:
  java-1.4.2-gcj-compat.x86_64 0:1.4.2.0-40jpp.115                                                                                    

Dependency Removed:
  antlr.x86_64 0:2.7.6-4jpp.2                                       gjdoc.x86_64 0:0.7.7-12.el5                                      

Complete!
3.2、删除版本较低的JDK

 

mamicode.com,搜素材mamicode.com,搜素材
--手工创建JDK安装目录

[root@gaosheng oracle]# mkdir -p /opt/jdk
[root@gaosheng oracle]# ls -l /opt/
total 8
drwxr-xr-x 2 root root 4096 Feb 26 13:46 jdk
drwxr-xr-x 3 root root 4096 Feb 25 08:41 ORCLfmap
--将JDK安装文件拷贝至/opt/jdk目录
此步骤略

--授予JDK安装文件可执行权限

[root@gaosheng oracle]# chmod +x jdk-6u38-ea-bin-b04-linux-amd64-31_oct_2012-rpm.bin 
[root@gaosheng oracle]# ll
total 1111804
drwxr-xr-x 2 root root       4096 Feb 24 17:55 install_scripts
-rwxr-xr-x 1 root root   68852176 Feb 26 09:34 jdk-6u38-ea-bin-b04-linux-amd64-31_oct_2012-rpm.bin
-rw-r--r-- 1 root root 1068506707 Jul 19  2013 wls1036_generic.jar

--执行JDK安装操作

[root@gaoshengjdk]# ./jdk-6u38-ea-bin-b04-linux-amd64-31_oct_2012-rpm.bin 
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
  inflating: jdk-6u38-ea-linux-amd64.rpm  
  inflating: sun-javadb-common-10.6.2-1.1.i386.rpm  
  inflating: sun-javadb-core-10.6.2-1.1.i386.rpm  
  inflating: sun-javadb-client-10.6.2-1.1.i386.rpm  
  inflating: sun-javadb-demo-10.6.2-1.1.i386.rpm  
  inflating: sun-javadb-docs-10.6.2-1.1.i386.rpm  
  inflating: sun-javadb-javadoc-10.6.2-1.1.i386.rpm  
Preparing...                ########################################### [100%]
   1:jdk                    ########################################### [100%]
Unpacking JAR files...
        rt.jar...
        jsse.jar...
        charsets.jar...
        tools.jar...
        localedata.jar...
        plugin.jar...
        javaws.jar...
        deploy.jar...
Installing JavaDB
Preparing...                ########################################### [100%]
   1:sun-javadb-common      ########################################### [ 17%]
   2:sun-javadb-core        ########################################### [ 33%]
   3:sun-javadb-client      ########################################### [ 50%]
   4:sun-javadb-demo        ########################################### [ 67%]
   5:sun-javadb-docs        ########################################### [ 83%]
   6:sun-javadb-javadoc     ########################################### [100%]

Java(TM) SE Development Kit 6 successfully installed.

Product Registration is FREE and includes many benefits:
* Notification of new versions, patches, and updates
* Special offers on Oracle products, services and training
* Access to early releases and documentation

Product and system data will be collected. If your configuration
supports a browser, the JDK Product Registration form will
be presented. If you do not register, none of this information
will be saved. You may also register your JDK later by
opening the register.html file (located in the JDK installation
directory) in a browser.

For more information on what data Registration collects and 
how it is managed and used, see:
http://java.sun.com/javase/registration/JDKRegistrationPrivacy.html

Press Enter to continue.....
3.3、开始安装JDK

 

 

mamicode.com,搜素材mamicode.com,搜素材
--编辑/etc/profile文件,在export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC这一句之前添加如下语句.

export JAVA_HOME=/usr/java/jdk1.6.0_38/
export JAVA_BIN=/usr/java/jdk1.6.0_38/bin/
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME JAVA_BIN CLASSPATH
3.4、设置环境变量

 

 

mamicode.com,搜素材mamicode.com,搜素材
--执行java命令

[root@gaosheng ~]# java
Usage: java [-options] class [args...]
           (to execute a class)
or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
    -d32          use a 32-bit data model if available

    -d64          use a 64-bit data model if available
    -server       to select the "server" VM
                  The default VM is server.

    -cpzip/jar files>
    -classpathzip/jar files>
                  A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
    -D=
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:...|:]
    -enableassertions[:...|:]
                  enable assertions
    -da[:...|:]
    -disableassertions[:...|:]
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:[=]
                  load native agent library , e.g. -agentlib:hprof
                    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:[=]
                  load native agent library by full pathname
    -javaagent:[=]
                  load Java programming language agent, see java.lang.instrument
    -splash:
                  show splash screen with specified image


--执行javac命令

[root@gaosheng ~]# javac
Usage: javac
where possible options include:
  -g                         Generate all debugging info
  -g:none                    Generate no debugging info
  -g:{lines,vars,source}     Generate only some debugging info
  -nowarn                    Generate no warnings
  -verbose                   Output messages about what the compiler is doing
  -deprecation               Output source locations where deprecated APIs are used
  -classpath          Specify where to find user class files and annotation processors
  -cp                 Specify where to find user class files and annotation processors
  -sourcepath         Specify where to find input source files
  -bootclasspath      Override location of bootstrap class files
  -extdirs            Override location of installed extensions
  -endorseddirs       Override location of endorsed standards path
  -proc:{none,only}          Control whether annotation processing and/or compilation is done.
  -processor [,,...]Names of the annotation processors to run; bypasses default discovery process
  -processorpath      Specify where to find annotation processors
  -d              Specify where to place generated class files
  -s              Specify where to place generated source files
  -implicit:{none,class}     Specify whether or not to generate class files for implicitly referenced files 
  -encoding        Specify character encoding used by source files
  -source           Provide source compatibility with specified release
  -target           Generate class files for specific VM version
  -version                   Version information
  -help                      Print a synopsis of standard options
  -Akey[=value]              Options to pass to annotation processors
  -X                         Print a synopsis of nonstandard options
  -J                   Pass  directly to the runtime system

--执行java -version命令

[root@gaosheng java]# java -version
java version "1.6.0_38-ea"
Java(TM) SE Runtime Environment (build 1.6.0_38-ea-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)
3.5、验证安装

 

4、安装weblogic

mamicode.com,搜素材mamicode.com,搜素材
#创建weblogic用户所属组
[root@gaosheng ~]# groupaddweblogic
#创建用户weblogic,并设置其主组为weblogic
[root@gaosheng ~]# useradd -g weblogicweblogic
#设置weblogic用户的登陆密码arcerzhang0759
[root@gaosheng ~]# passwdweblogic
Changing password for user weblogic.
New UNIX password: 
Retype new UNIX password: 
passwd: all authentication tokens updated successfully.
#创建weblogic的默认安装目录
[root@gaosheng ~]# mkdir -p /usr/local/webogic/
#修改weblogic的默认安装目录所有者、所属组
[root@gaosheng ~]# chown -Rfweblogic:weblogic /usr/local/webogic/
4.1、安装前准备工作

 

 

mamicode.com,搜素材mamicode.com,搜素材
[root@gaosheng oracle]# chown -R weblogic:weblogic wls1036_generic.jar 
[root@gaosheng oracle]# mv /home/oracle/wls1036_generic.jar /home/weblogic/
4.2、将安装文件放到/home/oracle目录下

 

 

mamicode.com,搜素材mamicode.com,搜素材
[root@gaosheng oracle]# chown -R weblogic:weblogic wls1036_generic.jar 
[root@gaosheng oracle]# mv /home/oracle/wls1036_generic.jar /home/weblogic/
4.3、执行控制台方式安装

 

 

mamicode.com,搜素材mamicode.com,搜素材
[weblogic@gaosheng ~]$ java -jar wls1036_generic.jar#执行默认console mode安装
Unable to instantiate GUI, defaulting to console mode.
Extracting 0%....................................................................................................100%





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]> Next#输入Next





10.3.6.0 ------------------->

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

    "Middleware Home" = [Enter new value or use default 
"/home/weblogic/Oracle/Middleware"]#weblogic的默认安装目录




Enter new Middleware Home OR [Exit][Previous][Next]> Next#输入Next





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]



Enter index number to select OR [Exit][Previous][Next]> 3#选择3,取消安全更新





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"]



Enter [Yes][No]? No#这里输入No





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?


Enter [Yes][No]? Yes#这里输入No,取消安全更新才会设置成功





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]



Enter index number to select OR [Exit][Previous][Next]>#默认回车即可




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]



Enter index number to select OR [Exit][Previous][Next]> Next#手工输入Next





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.





Enter index number to select OR [Exit][Previous][Next]> Next#手工输入Next(默认典型安装)





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/java/jdk1.6.0_38[x]#[ x]表示使用当前JDK作为默认安装,你也可以修改



   *Estimated size of installation:  690.2 MB


Enter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]> Next#手工输入Next





10.3.6.0 ------------------->

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

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

Product Installation Directories:


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




Enter index number to select OR [Exit][Previous][Next]>#直接回车





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




Enter [Exit][Previous][Next]>#直接回车
Feb 26, 2014 2:32:24 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.





10.3.6.0 ------------------->

Installing files..

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


Performing String Substitutions... 





10.3.6.0 ------------------->

Configuring OCM...

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


Creating Domains...





10.3.6.0 ------------------->

Installation Complete


Congratulations! Installation is complete.


Press [Enter] to continue or type [Exit]>#直接回车,安装成功





10.3.6.0 ------------------->

Clean up process in progress ...
[weblogic@gaosheng ~]$
4.4、切换至weblogic用户,执行控制台安装

 

 

mamicode.com,搜素材mamicode.com,搜素材
--备注说明:    启动Configuration Wizardizar,位置在weblogic安装目录(/home/weblogic/Oracle/Middleware)下的~/wlserver_10.3/common/bin下
执行./config.sh


--配置安装domain

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







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. 





Enter index number to select OR [Exit][Next]>#默认回车 选择创建一个新的weblogic domain







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. 





Enter index number to select OR [Exit][Previous][Next]>#直接回车







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] 



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







Edit Domain Information:#使用默认名称base_domain
------------------------

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




Enter value for "Name" OR [Exit][Previous][Next]>#直接回车







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

    "Target Location" = [Enter new value or use default 
"/home/weblogic/Oracle/Middleware/user_projects/domains"]#这就是weblogic的默认安装目录




Enter new Target Location OR [Exit][Previous][Next]>#直接回车







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"#选择2修改用户密码
    3 - Modify "Confirm user password"#选择3确认用户密码
    4 - Modify "Description"




Enter option number to select OR [Exit][Previous][Next]>2#选择2修改用户密码







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]> arcerzhang0759#weblogic的密码







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]> 3#选择3,录入确认密码







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:" = []




Enter new *Confirm user password: OR [Exit][Reset][Accept]> arcerzhang0759#输入确认密码







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]>#修改信息后,直接回车即可







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

Enable Development or Production Mode for this domain. 

 ->1|Development Mode #weblogic部署模式->开发模式

   2|Production Mode#weblogic部署模式->产品模式或者称生产模式




Enter index number to select OR [Exit][Previous][Next]> 2#我们选择2,生产模式







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

 ->1|Sun SDK 1.6.0_38-ea @ /usr/java/jdk1.6.0_38#weblogic选择安装时选择使用的jdk
   2|Other Java SDK




Enter index number to select OR [Exit][Previous][Next]>#默认回车




#其他可选项,此处没有选择,直接回车


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]>#直接回车






#开始创建Domain
Creating Domain...

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

#创建完成,自动回到控制台
**** Domain Created Successfully! ****


[weblogic@gaosheng bin]$
4.5、新建domain

 

 

5、服务管理

mamicode.com,搜素材mamicode.com,搜素材
编辑启动文件(/home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/bin),添加如下内容
最好编辑一下startWeblogic.sh文件,添加WLS_USER="weblogic"、WLS_PW="arcerzhang0759"参数,这样在执行startWeblogic.sh文件时,就不需要再输入weblogic管理账户及密码了.
注意添加WLS_USER、WLS_PW参数的位置,一定要在调用$WLS_USER、$WLS_PW命令之前.

--添加如下内容

WLS_USER="weblogic"
WLS_PW="arcerzhang0759"
配置用户名、密码

 

 

mamicode.com,搜素材mamicode.com,搜素材
如果想在执行stopWeblogic.sh脚本的过程中,自动执行,不许手工输入用户名和口令,可以再stopWeblogic.sh文件中添加如下参数(注意,参数信息同之前的startWebloic.sh文件中的内容略有不同):

--添加如下内容

userID="username=‘weblogic‘,"
password="password=‘arcerzhang0759‘,"


--具体停止服务操作,需要执行:

[weblogic@gaosheng bin]$ ./stopWebLogic.sh 
Stopping Weblogic Server...

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Please enter your username :weblogic
Please enter your password :
Connecting to t3://gaosheng.localdomain:7001 with useridweblogic ...
Successfully connected to Admin Server AdminServer that belongs to domain base_domain.

Warning: An insecure protocol was used to connect to the 
server. To ensure on-the-wire security, the SSL port or 
Admin port should be used instead.

Shutting down the server AdminServer with force=false while connected to AdminServer ...
Disconnected from weblogic server: AdminServer


Exiting WebLogic Scripting Tool.

Done
Stopping Derby Server...
[weblogic@gaosheng bin]$

--停止服务的另一种方法(查找到weblogic进程,直接kill)
[weblogic@gsrealdata ~]$ ps -ef | grep java
weblogic  2610  2565  0 20:38 pts/1    00:00:49 /usr/java/jdk1.6.0_38/bin/java -server -Xms256m -Xmx512m -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer -Djava.security.policy=/opt/weblogic/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.ProductionModeEnabled=true -da -Dplatform.home=/opt/weblogic/wlserver_10.3 -Dwls.home=/opt/weblogic/wlserver_10.3/server -Dweblogic.home=/opt/weblogic/wlserver_10.3/server -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/opt/weblogic/patch_wls1036/profiles/default/sysext_manifest_classpath:/opt/weblogic/patch_ocp371/profiles/default/sysext_manifest_classpath -Dweblogic.management.username=weblogic -Dweblogic.management.password=arcerzhangcec0759 weblogic.Server
weblogic  4090  4000  0 22:02 pts/3    00:00:00 grep java
[weblogic@gsrealdata ~]$
停止服务

 

6、启动weblogic

mamicode.com,搜素材mamicode.com,搜素材
--后台方式启动
[weblogic@gaosheng bin]$ nohup ./startWebLogic.sh &
--普通启动方式
[weblogic@gaosheng bin]$ ./startWebLogic.sh 
.
.
JAVA Memory arguments: -Xms256m -Xmx512m  -XX:MaxPermSize=256m
.
WLS Start Mode=Production
.
CLASSPATH=/home/weblogic/Oracle/Middleware/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/weblogic/Oracle/Middleware/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/java/jdk1.6.0_38/lib/tools.jar:/home/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/home/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/home/weblogic/Oracle/Middleware/modules/features/weblogic.server.modules_10.3.6.0.jar:/home/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/home/weblogic/Oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/home/weblogic/Oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/home/weblogic/Oracle/Middleware/wlserver_10.3/common/derby/lib/derbyclient.jar:/home/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/xqrl.jar:.:/usr/java/jdk1.6.0_38//lib/dt.jar:/usr/java/jdk1.6.0_38//lib/tools.jar
.
PATH=/home/weblogic/Oracle/Middleware/wlserver_10.3/server/bin:/home/weblogic/Oracle/Middleware/modules/org.apache.ant_1.7.1/bin:/usr/java/jdk1.6.0_38/jre/bin:/usr/java/jdk1.6.0_38/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/java/jdk1.6.0_38//bin:/home/weblogic/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_38-ea"
Java(TM) SE Runtime Environment (build 1.6.0_38-ea-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)
Starting WLS with line:
/usr/java/jdk1.6.0_38/bin/java -server   -Xms256m -Xmx512m  -XX:MaxPermSize=256m -Dweblogic.Name=AdminServer -Djava.security.policy=/home/weblogic/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.policy  -Dweblogic.ProductionModeEnabled=true   -da -Dplatform.home=/home/weblogic/Oracle/Middleware/wlserver_10.3 -Dwls.home=/home/weblogic/Oracle/Middleware/wlserver_10.3/server -Dweblogic.home=/home/weblogic/Oracle/Middleware/wlserver_10.3/server   -Dweblogic.management.discover=true  -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/home/weblogic/Oracle/Middleware/patch_wls1036/profiles/default/sysext_manifest_classpath:/home/weblogic/Oracle/Middleware/patch_ocp371/profiles/default/sysext_manifest_classpath -Dweblogic.management.username=weblogic -Dweblogic.management.password=arcerzhang0759  weblogic.Server
26, 2014 3:19:03 PM CST>090905>for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
26, 2014 3:19:03 PM CST>090906>in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
26, 2014 3:19:05 PM CST>000377>64-Bit Server VM Version 20.13-b02 from Sun Microsystems Inc.>
26, 2014 3:19:08 PM CST>


评论


亲,登录后才可以留言!