weblogic 命令行安装
admin
2023-04-30 02:01:44
0

安装JDK

10.1.125.224  注意系统版本32 or 64

1. chmod +x jdk-6u43-linux-i586.bin        jdk 是容器,是运行环境

2.[root@localhost weblogic_software]# cd jdk1.6.0_43

3.[root@localhost jdk1.6.0_43]# useradd weblogic

4.[root@localhost /]# chown weblogic:weblogic -R weblogic_software

5.[weblogic@weblogic2 ~]$ vi .bash_profile 


# .bash_profile


# Get the aliases and functions

if [ -f ~/.bashrc ]; then

        . ~/.bashrc

fi


# User specific environment and startup programs


PATH=$PATH:$HOME/bin


JAVA_HOME=/weblogic_software/jdk1.6.0_43

PATH=$JAVA_HOME/bin:$PATH

export JAVA_HOME

export PATH

6.[weblogic@weblogic2 ~]$ source .bash_profile  生效


7.[weblogic@weblogic2 ~]$ java -version     验证查看JAVA版本

java version "1.6.0_43"

Java(TM) SE Runtime Environment (build 1.6.0_43-b01)

Java HotSpot(TM) Client VM (build 20.14-b01, mixed mode, sharing)


8.安装weblogic

[weblogic@weblogic2 weblogic_software]$ java -jar server103_generic.jar


Unable to instantiate GUI, defaulting to console mode.

Extracting 0%....................................................................................................100%






<----------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ----------------------------------------->


Welcome:

--------


This installer will guide you through the installation of WebLogic Platform 10.3.0.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 Platform 10.3.0.0 ----------------------------------------->


Choose BEA Home Directory:

--------------------------


    "BEA Home" = [Enter new value or use default "/home/weblogic/bea"]





Enter new BEA Home OR [Exit][Previous][Next]> 






<----------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ----------------------------------------->


Choose Install Type:

--------------------


Select the type of installation you wish to perform. 


 ->1|Complete

    |  Install the following software products and examples:

    | - WebLogic Server

    | - Workshop


   2|Custom

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



Enter index number to select OR [Exit][Previous][Next]> 2






<----------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ----------------------------------------->


Choose Products and Components:

-------------------------------


    Release 10.3.0.0

    |_____WebLogic Server [1] x

    |    |_____Core Application Server [1.1] x

    |    |_____Administration Console [1.2] x

    |    |_____Configuration Wizard and Upgrade Framework [1.3] x

    |    |_____Web 2.0 HTTP Pub-Sub Server [1.4] x

    |    |_____WebLogic JDBC Drivers [1.5] x

    |    |_____Third Party JDBC Drivers [1.6] x

    |    |_____WebLogic Server Clients [1.7] x

    |    |_____WebLogic Web Server Plugins [1.8] x

    |    |_____UDDI and Xquery Support [1.9] x

    |    |_____Server Examples [1.10] x

    |_____Workshop [2] x

         |_____Workshop for WebLogic [2.1] x

         |_____Workshop Runtime Framework [2.2] x


    *Estimated size of installation: 662.8 MB





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






<----------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ----------------------------------------->


Choose Products and Components:

-------------------------------


    Release 10.3.0.0

    |_____WebLogic Server [1] x

    |    |_____Core Application Server [1.1] x

    |    |_____Administration Console [1.2] x

    |    |_____Configuration Wizard and Upgrade Framework [1.3] x

    |    |_____Web 2.0 HTTP Pub-Sub Server [1.4] x

    |    |_____WebLogic JDBC Drivers [1.5] x

    |    |_____Third Party JDBC Drivers [1.6] x

    |    |_____WebLogic Server Clients [1.7] x

    |    |_____WebLogic Web Server Plugins [1.8] x

    |    |_____UDDI and Xquery Support [1.9] x

    |    |_____Server Examples [1.10] x

    |_____Workshop [2] 

         |_____Workshop for WebLogic [2.1] 

         |_____Workshop Runtime Framework [2.2] 


    *Estimated size of installation: 407.1 MB


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






<----------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ----------------------------------------->


JDK Selection (Any * indicates BEA Supplied VM):

------------------------------------------------


JDK(s) chosen for use with this product installation will be installed. Supported defaults if not deselected will be used in script string-substitution.


   1|Add Local Jdk

   2|/weblogic_software/jdk1.6.0_43[x]




   *Estimated size of installation:  407.1 MB



Enter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]> 

<----------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ----------------------------------------->


JDK Selection (Any * indicates BEA Supplied VM):

------------------------------------------------


JDK(s) chosen for use with this product installation will be installed. Supported defaults if not deselected will be used in script string-substitution.


    *Confirmation required

    *-------------------------

    *WebLogic Server  10.3.0.0  will use uncertified JVM: Sun 1.6.0_43

    *

    *Please consult documentation for appropriate JDK

    *Choose "Yes" to continue with the settings.


 ->1|Yes

   2|No




Enter 1 for "Yes" or 2 for "No" OR [Exit][Previous][Next]> 1






<----------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ----------------------------------------->


Choose Product Installation Directories:

----------------------------------------


BEA Home Directory: [/home/weblogic/bea]


Product Installation Directories:



    "WebLogic Server" = [Enter new value or use default "/home/weblogic/bea/wlserver_10.3"]

Enter new WebLogic Server OR [Exit][Previous][Next]> 






<----------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ----------------------------------------->


The following Products and JDKs will be installed:

--------------------------------------------------


    WebLogic Platform 10.3.0.0

    |_____WebLogic Server

         |_____Core Application Server

         |_____Administration Console

         |_____Configuration Wizard and Upgrade Framework

         |_____Web 2.0 HTTP Pub-Sub Server

         |_____WebLogic JDBC Drivers

         |_____Third Party JDBC Drivers

         |_____WebLogic Server Clients

         |_____WebLogic Web Server Plugins

         |_____UDDI and Xquery Support

         |_____Server Examples


    *Estimated size of installation: 407.2 MB





Enter [Exit][Previous][Next]> 

Jan 22, 2016 4:18:10 PM java.util.prefs.FileSystemPreferences$2 run

INFO: Created user preferences directory.






<----------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ----------------------------------------->


Installing files..


0%          25%          50%          75%          100%

[------------|------------|------------|------------]

[***************************************************]



Performing String Substitutions... 




Creating Domains...






<----------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ----------------------------------------->


Installation Complete



Congratulations! Installation is complete.



Press [Enter] to continue or type [Exit]> 






<----------------------------------------- Oracle Installer - WebLogic Platform 10.3.0.0 ----------------------------------------->


Clean up process in progress ...

[weblogic@weblogic2 weblogic_software]$ cd /home/weblogic/bea/wlserver_10.3/common/bin


[weblogic@weblogic2 bin]$ ./config.sh

Unable to instantiate GUI, defaulting to console mode.






<---------------------------------------------- Oracle WebLogic 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

    |    Extend an existing WebLogic domain.  Use this option to add applications and services, or to override existing database 

    |access (JDBC) and messaging (JMS) settings. You can also incorporate additional functionality in your domain, for example, by 

    |including AquaLogic Service Bus. 






Enter index number to select OR [Exit][Next]> 






<---------------------------------------------- Oracle WebLogic 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. 


Enter index number to select OR [Exit][Previous][Next]> 






<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->


Application Template Selection:

-------------------------------


 


    Available Templates

    |_____WebLogic Server (Required)x




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






<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->


Configure Administrator Username 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|       *User 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 "User name"

    2 - Modify "User password"

    3 - Modify "Confirm user password"

    4 - Modify "Description"


Enter option number to select OR [Exit][Previous][Next]> 2






<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->


Configure Administrator Username 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]> 






<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->


Configure Administrator Username 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|       *User 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 "User 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  






<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->


Configure Administrator Username 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]> 






<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->


Configure Administrator Username 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|       *User 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 "User 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]> 






<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->


Domain Mode Configuration:

--------------------------


Enable Development or Production Mode for this domain. 


 ->1|Development Mode


   2|Production Mode





Enter index number to select OR [Exit][Previous][Next]> 2






<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->


Java SDK Selection:

-------------------


 ->1|Sun SDK 1.6.0_43 @ /weblogic_software/jdk1.6.0_43

   2|Other Java SDK


Enter index number to select OR [Exit][Previous][Next]> 






<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->


Choose Configuration Option:

----------------------------


    *Do you want to modify any of the preconfigured settings or defaults in your template?

    *

    *To keep the default or template settings, and proceed directly to name and create your domain, leave No selected.


   1|Yes


 ->2|No






Enter index number to select OR [Exit][Previous][Next]> 






<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->


Select the target domain directory for this domain:

---------------------------------------------------


    "Target Location" = [Enter new value or use default "/home/weblogic/bea/user_projects/domains"]

Enter new Target Location OR [Exit][Previous][Next]> 






<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->


Edit Domain Information:

------------------------


    |  Name  |    Value    |

   _|________|_____________|

   1| *Name: | base_domain |





Enter value for "Name" OR [Exit][Previous][Next]> zhaopin_domain






<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->


Edit Domain Information:

------------------------


    |  Name  |     Value      |

   _|________|________________|

   1| *Name: | zhaopin_domain |


Use above value or select another option:

    1 - Modify "Name"

    2 - Discard Changes


Enter option number to select OR [Exit][Previous][Next]> 






<---------------------------------------------- Oracle WebLogic Configuration Wizard --------------------------------------------->


Creating Domain...


0%          25%          50%          75%          100%

[------------|------------|------------|------------]

[***************************************************]



**** Domain Created Successfully! ****



[weblogic@weblogic2 bin]$ cd /home/weblogic/bea/user_projects/domains/zhaopin_domain

[weblogic@weblogic2 zhaopin_domain]$ ./startWebLogic.sh


如果报网络错误,做主机名解析:

[root@localhost /]# vim /etc/hosts


# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1               localhost.localdomain localhost

::1             localhost6.localdomain6 localhost6

10.1.125.244 weblogic2


启动节点:

[weblogic@weblogic2 bin]$cd /home/weblogic/bea/user_projects/domains/zhaopin_domain/bin

[weblogic@weblogic2 bin]$ ./startManagedWebLogic.sh  Server-1 http://10.1.125.224:7001

记住前台要激活应用。



发布包:

[weblogic@weblogic2 weblogic_software]$ tar -xvf webapp.tar.gz 

去前台页面部署并发布包





相关内容

热门资讯

烈焰熊熊,堪比“原子弹”,欧洲... 据美国有线电视新闻网(CNN)7月29日报道,席卷法国西南部的大片野火燃烧得如此猛烈,以至于形成了一...
外交部:对日本熊本县地震遇难者... 据凤凰卫视报道,针对日本熊本县发生强震造成人员伤亡,中国外交部发言人毛宁7月29日在例行记者会上表示...
高铁喧哗被劝阻后叫嚣全家体制内... “女子高铁喧哗被劝阻后叫嚣全家体制内”一事迎来官方通报。据新京报报道,7月29日,辽宁北票市公安局发...
广东专业蓝牙耳机定制厂家推荐,... 在珠三角腹地,广东早已成为全球蓝牙耳机产业链的“心脏地带”。从深圳华强北的声学元件批发,到东莞、惠州...
格雷厄姆葬礼变地缘竞价场!两大... 有些葬礼,送别的是逝者;有些葬礼,演的却是活人最现实的政治博弈。当地时间7月28日,美国老牌鹰派参议...
一道小学数学题难住3名医学博士... 3名不同学校的博士同做一道数学题,谁最厉害?近日,一陕西网友发布的视频引发热议。29日,视频发布者“...
华为全新“小艺任务”亮相:整合... 7月29日,在华为鸿蒙电脑新品技术沟通会上,终端云服务小艺业务部总裁贾永利宣布,小艺将迎来“从对话到...
广西日报特稿《王的猜想》火了,... 澎湃新闻记者 蒋子文 实习生 汤煜炜为应对外界购买纸质版特稿《王的猜想》的热情,《广西日报》宣布紧急...
月租20元内!2026年平价云... 不少手游玩家、账号运营从业者挑选云手机时,首要诉求就是低价够用,想要控制每月支出在20元以内,同时兼...
诺奖得主如何看待王虹境遇?“我... 中村修二(2014年诺贝尔物理学奖得主)【导读】近日王虹与邓煜双双获得2026年菲尔兹奖,成为了首批...