1 由于工作上用到solr全文搜索,准备把这个使用一下。由于solr是java写的,又要部署web服务器。tomcat只是练习用,所以生产环境还是得用上weblogic,以此来记录一下安装过程
1、上传安装包至Linux服务器
链接:https://pan.baidu.com/s/1q8kslvK9sJVxWLGYB7WI7A
提取码:xcpk
2、安装Weblogic前准备
赋予Weblogic安装文件可执行权限
chmod 777 /home/weblogic/wls1031_linux32.bin
安装依赖包
因为本次安装的Weblogic为32位版本的,但Linux服务器为64位版本的,如果直接./wls1031_linux32.bin
进行安装,会提示如下错误:
[root@localhost java]# ./wls1031_linux32.bin
-bash: ./wls1031_linux32.bin: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[root@localhost java]# yum install glibc.i686
解决办法:
yum install glibc.i686
yum install libstdc++.so.6
3、安装Weblogic
设置目录
输入1
next
输入no
<-------------------------------------------------------------- Oracle Installer - WebLogic 10.3.1.0 ------------------------------------------------------------->
Register for Security Updates:
------------------------------
Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html
1|Email:[]
2|My Oracle Support Password:[]
3|Receive Security Update:[Yes]
** Invalid input, only integer selection or page movement command are
** accepted: next3
Enter index number to select OR [Exit][Previous][Next]> 3
<-------------------------------------------------------------- Oracle Installer - WebLogic 10.3.1.0 ------------------------------------------------------------->
Register for Security Updates:
------------------------------
Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html
"Receive Security Update:" = [Enter new value or use default "Yes"]
Enter [Yes][No]? no
<-------------------------------------------------------------- Oracle Installer - WebLogic 10.3.1.0 ------------------------------------------------------------->
Register for Security Updates:
------------------------------
Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html
"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.1.0 ------------------------------------------------------------->
Register for Security Updates:
------------------------------
Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html
1|Email:[]
2|My Oracle Support Password:[]
3|Receive Security Update:[No]
Enter index number to select OR [Exit][Previous][Next]>
<-------------------------------------------------------------- Oracle Installer - WebLogic 10.3.1.0 ------------------------------------------------------------->
Register for Security Updates:
------------------------------
Provide your email address to be informed of security issues, install the product, and initiate configuration manager. http://www.oracle.com/support/policies.html
1|Email:[]
2|My Oracle Support Password:[]
3|Receive Security Update:[No]
Enter index number to select OR [Exit][Previous][Next]> n
<-------------------------------------------------------------- Oracle Installer - WebLogic 10.3.1.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
2|Custom
| Choose software products and components to install and perform optional configuration.
Enter index number to select OR [Exit][Previous][Next]> 1
<-------------------------------------------------------------- Oracle Installer - WebLogic 10.3.1.0 ------------------------------------------------------------->
Choose Product Installation Directories:
----------------------------------------
Middleware Home Directory: [/home/java/weblogic]
Product Installation Directories:
"WebLogic Server" = [Enter new value or use default "/home/java/weblogic/wlserver_10.3"]
Enter new WebLogic Server OR [Exit][Previous][Next]> next
<-------------------------------------------------------------- Oracle Installer - WebLogic 10.3.1.0 ------------------------------------------------------------->
The following Products and JDKs will be installed:
--------------------------------------------------
WebLogic Platform 10.3.1.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
|_____JDKs
|_____Sun SDK 1.6.0_11
|_____Oracle JRockit 1.6.0_05 SDK
*Estimated size of installation: 841.1 MB
Enter [Exit][Previous][Next]> n
Jul 13, 2020 11:23:26 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.
<-------------------------------------------------------------- Oracle Installer - WebLogic 10.3.1.0 ------------------------------------------------------------->
Installing files..
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
<-------------------------------------------------------------- Oracle Installer - WebLogic 10.3.1.0 ------------------------------------------------------------->
Installing JDK....
0% 25% 50% 75% 100%
4、创建Domain域
进入common/bin目录
cd /home/java/weblogic/wlserver_10.3/common/bin
./config.sh
<------------------------------------------------------------- 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]> 1
<------------------------------------------------------------- Fusion Middleware Configuration Wizard ------------------------------------------------------------>
Application Template Selection:
-------------------------------
Available Templates
|_____Basic WebLogic Server Domain - 10.3.1.0 [wlserver_10.3]x
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 |
<------------------------------------------------------------- Fusion Middleware Configuration Wizard ------------------------------------------------------------>
Select the target domain directory for this domain:
---------------------------------------------------
"Target Location" = [Enter new value or use default "/home/java/weblogic/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| *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]>
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]> next
<------------------------------------------------------------- Fusion Middleware Configuration Wizard ------------------------------------------------------------>
Domain Mode Configuration:
--------------------------
Enable Development or Production Mode for this domain.
->1|Development Mode
2|Production Mode
Enable Development or Production Mode for this domain.
->1|Development Mode
2|Production Mode
Enter index number to select OR [Exit][Previous][Next]> 2
<------------------------------------------------------------- Fusion Middleware Configuration Wizard ------------------------------------------------------------>
Java SDK Selection:
-------------------
1|Sun SDK 1.6.0_11 @ /home/java/weblogic/jdk160_11
->2|JRockit SDK 1.6.0_05 @ /home/java/weblogic/jrockit_160_05_R27.6.2-20
3|Other Java SDK
Enter index number to select OR [Exit][Previous][Next]> 2
<------------------------------------------------------------- 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]> 1
<------------------------------------------------------------- Fusion Middleware Configuration Wizard ------------------------------------------------------------>
Select Optional Configuration:
------------------------------
1|Administration Server [x]
2|Managed Servers, Clusters and Machines [ ]
3|RDBMS Security Store [ ]
<------------------------------------------------------------- Fusion Middleware Configuration Wizard ------------------------------------------------------------>
Select Optional Configuration:
------------------------------
1|Administration Server [x]
2|Managed Servers, Clusters and Machines [ ]
3|RDBMS Security Store [ ]
Enter index number to select OR [Exit][Previous][Next]> next
<------------------------------------------------------------- Fusion Middleware Configuration Wizard ------------------------------------------------------------>
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must have one Administration Server. The Administration Server hosts the Administration
Console which is used to perform administrative tasks.
| Name | Value |
_|__________________|_____________________|
1| *Name: | AdminServer |
2| *Listen address: | All Local Addresses |
3| Listen port: | 7001 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |
Use above value or select another option:
1 - Modify "Name"
2 - Modify "Listen address"
3 - Modify "Listen port"
4 - Modify "SSL enabled"
Enter option number to select OR [Exit][Previous][Next]> next
<------------------------------------------------------------- Fusion Middleware Configuration Wizard ------------------------------------------------------------>
Creating Domain...
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
**** Domain Created Successfully! ****
5、启动Weblogic
切换base_domain目录
cd /home/java/weblogic/user_projects/domains/base_domain
./startWebLogic.sh