xubuntu 14下使用文本界面安装weblogic10.3
先使用ssh远程到xubuntu机器,比如wls1034_linux32.bin 在home/lenovo的目录。
使用ssh远程到机器,比如我在本机模拟文本界面安装,使用如下命令登录到自己机器:
ssh lenovo@127.0.0.1
然后执行如下命令
lenovo@lenovo:~$ chmod +x wls1034_linux32.bin
lenovo@lenovo:~$ export LANG=en_US.UTF_8
lenovo@lenovo:~$ export JAVA_HOME=/usr/local/sunjava/jdk1.8.0_20/
lenovo@lenovo:~$ ./wls1034_linux32.bin
Extracting 0%....................................................................................................100%
Unable to instantiate GUI, defaulting to console mode.
<---------------------- Oracle Installer - WebLogic 10.3.4.0 --------------------->
Welcome:
This installer will guide you through the installation of WebLogic 10.3.4.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
<---------------------- Oracle Installer - WebLogic 10.3.4.0 --------------------->
Choose Middleware Home Directory:
"Middleware Home" = [Enter new value or use default
"/home/lenovo/Oracle/Middleware"]
Enter new Middleware Home OR [Exit][Previous][Next]> Next
<---------------------- Oracle Installer - WebLogic 10.3.4.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
<---------------------- Oracle Installer - WebLogic 10.3.4.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
<---------------------- Oracle Installer - WebLogic 10.3.4.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
<---------------------- Oracle Installer - WebLogic 10.3.4.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]>
<---------------------- Oracle Installer - WebLogic 10.3.4.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
<---------------------- Oracle Installer - WebLogic 10.3.4.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
<---------------------- Oracle Installer - WebLogic 10.3.4.0 --------------------->
Choose Product Installation Directories:
Middleware Home Directory: [/home/lenovo/Oracle/Middleware]
Product Installation Directories:
1|WebLogic Server: [/home/lenovo/Oracle/Middleware/wlserver_10.3]
2|Oracle Coherence: [/home/lenovo/Oracle/Middleware/coherence_3.6]
Enter index number to select OR [Exit][Previous][Next]> Next
<---------------------- Oracle Installer - WebLogic 10.3.4.0 --------------------->
The following Products and JDKs will be installed:
WebLogic Platform 10.3.4.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
|_____JDKs
|_____SUN SDK 1.6.0_21
|_____Oracle JRockit 1.6.0_22 SDK
*Estimated size of installation: 1,245.2 MB
Enter [Exit][Previous][Next]> Next
Oct 28, 2014 6:52:47 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.
<---------------------- Oracle Installer - WebLogic 10.3.4.0 --------------------->
Installing files..
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
<---------------------- Oracle Installer - WebLogic 10.3.4.0 --------------------->
Installing JDK....
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
Performing String Substitutions...
<---------------------- Oracle Installer - WebLogic 10.3.4.0 --------------------->
Configuring OCM...
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
Creating Domains...
<---------------------- Oracle Installer - WebLogic 10.3.4.0 --------------------->
Installation Complete
Congratulations! Installation is complete.
Press [Enter] to continue or type [Exit]> Enter
---下面是使用命令行创建域的方法
(此处创建的域,设置的密码为weblogic1,使用的是开发模式“Development Mode”
中途设置密码为weblogic,因为不符合要求,会出现如下错误信息,需要重新设置下密码:
** CFGFWK-60050: Property "Password" of User "weblogic" is invalid.
** CFGFWK-60455: The password must be at least 8 alphanumeric characters with at least one
** number or special character.
)
lenovo@lenovo:~$ ssh lenovo@127.0.0.1
lenovo@127.0.0.1's password:
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-37-generic i686)
- Documentation: https://help.ubuntu.com/
Last login: Tue Oct 28 19:08:47 2014 from localhost
lenovo@lenovo:~$ export LANG=en_US.UTF_8
lenovo@lenovo:~$ cd /home/lenovo/Oracle/Middleware/wlserver_10.3/common/bin/
lenovo@lenovo:~/Oracle/Middleware/wlserver_10.3/common/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.
Enter index number to select OR [Exit][Next]> 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.
Enter index number to select OR [Exit][Previous][Next]> Next
<---------------------------- Fusion Middleware Configuration Wizard ---------------------------->
Application Template Selection:
Available Templates
|_____Basic WebLogic Server Domain - 10.3.4.0 [wlserver_10.3]x
|_____Basic WebLogic SIP Server Domain - 10.3.4.0 [wlserver_10.3] [2]
|_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.4.0 [wlserver_10.3] [3]
|_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.4.0 [wlserver_10.3] [4]
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> Next
<---------------------------- Fusion Middleware Configuration Wizard ---------------------------->
Edit Domain Information:
| Name | Value |
|________|____________|
1| *Name: | base_domain |
Enter value for "Name" OR [Exit][Previous][Next]> F3_domain
<---------------------------- Fusion Middleware Configuration Wizard ---------------------------->
Edit Domain Information:
| Name | Value |
_||___|
1| *Name: | F3_domain |
Use above value or select another option:
1 - Modify "Name"
2 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]> Next
<---------------------------- Fusion Middleware Configuration Wizard ---------------------------->
Select the target domain directory for this domain:
"Target Location" = [Enter new value or use default
"/home/lenovo/Oracle/Middleware/user_projects/domains"]
Enter new Target Location OR [Exit][Previous][Next]> 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"
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]>
<---------------------------- 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]> 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:" = []
Enter new *Confirm user password: OR [Exit][Reset][Accept]>
<---------------------------- 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]> Next
<---------------------------- Fusion Middleware 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]> 1
<---------------------------- Fusion Middleware Configuration Wizard ---------------------------->
Java SDK Selection:
1|JRockit SDK 1.6.0_22 @ /home/lenovo/Oracle/Middleware/jrockit_160_22_D1.1.1-3
->2|Sun SDK 1.6.0_21 @ /home/lenovo/Oracle/Middleware/jdk160_21
3|Other Java SDK
Enter index number to select OR [Exit][Previous][Next]> 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]> Next
<---------------------------- Fusion Middleware Configuration Wizard ---------------------------->
Creating Domain...
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
**** Domain Created Successfully! ****
lenovo@lenovo:~/Oracle/Middleware/wlserver_10.3/common/bin$
进入目录,然后直接执行./startWebLogic.sh即可启动刚才创建的域:
lenovo@lenovo:~/Oracle/Middleware/user_projects/domains/F3_domain$ ./startWebLogic.sh
然后就可以进控制台发布应用程序包了。
使用ps -ef查看进程,即可以看到刚才启动的weblogic服务:
lenovo@lenovo:~$ ps -ef|grep java
lenovo 4214 4179 3 19:28 pts/4 00:00:06 /home/lenovo/Oracle/Middleware/jdk160_21/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -Dweblogic.Name=AdminServer -Djava.security.policy=/home/lenovo/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.policy -Xverify:none -da -Dplatform.home=/home/lenovo/Oracle/Middleware/wlserver_10.3 -Dwls.home=/home/lenovo/Oracle/Middleware/wlserver_10.3/server -Dweblogic.home=/home/lenovo/Oracle/Middleware/wlserver_10.3/server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/home/lenovo/Oracle/Middleware/patch_wls1034/profiles/default/sysext_manifest_classpath:/home/lenovo/Oracle/Middleware/patch_ocp360/profiles/default/sysext_manifest_classpath weblogic.Server
lenovo 4299 4266 0 19:31 pts/16 00:00:00 grep --color=auto java

浙公网安备 33010602011771号