
最近做一个项目的时候,客户要求发布的销售环境的web应用服务器为weblogic,之前依然用的是tomcat,为此着实费了一番脑子,记录下。
weblogic版本10.3.6,jdk版本1.7.9。
一.weblogic10.3.6安装
1. 卸载openjdk
先查功能已有jdk版本,
rpm -qa|grep java
卸载openjdk
rpm -e --nodeps java-1.7.0-openjdk-headless-1.7.0.91-2.6.2.3.el7.x86_64 -e --nodeps java-1.7.0-openjdk-1.7.0.91-2.6.2.3.el7.x86_64 -e --nodeps java-1.8.0-openjdk-1.8.0.65-3.b17.el7.x86_64
卸载完成。
2.安装新jdk
下载Linux版本jdkweblogic图标,并解压。
ll 可以察看当前目录下存在目录jdk1.7.0_07,然后将其移动到/usr/local/目录下,并重命名为 jdk7,输入指示:mv jdk1.7.0_07 /usr/local/jdk7
修改 /etc/profile,它是所有用户的共用的环境数组输入指示:vi /etc/profile然后在打开的文档末尾添加如下内容:
JAVA_HOME=/usr/local/jdk8
JRE_HOME=/usr/local/jdk8/jre
PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
export JAVA_HOME JRE_HOME PATH CLASSPATH
使环境数组立即生效,输入指示:source /etc/profile
输入指示:java #检测jdk bin环境
接着输入:javac #检测jdk classpath环境
3.安装weblogic
创建用户组:groupadd xycrm_weblogic
创建用户添加用户组weblogci指目录:
useradd -g xycrm_weblogic -m -d /home/lip weblogic
设置密码 passwd Xycrmwb123
指定用户目录 chown -R weblogic:xycrm_weblogic /home
执行ll 可察看目录属组
安装:
进入weblogic安装包存放目录执行安装指示如:
java -jar wls1036_generic.jar
一、安装weblogic10.3.6 64位:
-bash-4.1$ java -jar wls1036_generic.jar
Unable to instantiate GUI, defaulting to console mode.无法实例化 GUI,默认进入控制台模式。
Extracting 0%……………………………………………………………………………………….100%
<——————– Oracle Installer - WebLogic 10.3.6.0 ——————->
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 ——————->

"Middleware Home" = [Enter new value or use default
“/bea/weblogic/Oracle/Middleware”]
Enter new Middleware Home OR [Exit][Previous][Next]> /bea/weblogic/
<——————– Oracle Installer - WebLogic 10.3.6.0 ——————->
"Middleware Home" = [/bea/weblogic]
Use above value or select another option:
1 - Enter new Middleware Home
2 - Change to default [/bea/weblogic/Oracle/Middleware]
Enter option number to select OR [Exit][Previous][Next]> 1
<——————– Oracle Installer - WebLogic 10.3.6.0 ——————->
"Middleware Home" = [/bea/weblogic]
Enter new Middleware Home OR [Exit][Previous][Next]>
<——————– Oracle Installer - WebLogic 10.3.6.0 ——————->
Warning
/bea/weblogic directory is not empty. Proceed with installation?
Enter [Exit][Previous][Next]>
<——————– Oracle Installer - WebLogic 10.3.6.0 ——————->
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.6.0 ——————->
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.6.0 ——————->
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]? yes
<——————– Oracle Installer - WebLogic 10.3.6.0 ——————->
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.6.0 ——————->
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.6.0 ——————->
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]> 2
<——————– Oracle Installer - WebLogic 10.3.6.0 ——————->
Release 10.3.6.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 SCA [1.5] x
| |_____WebLogic JDBC Drivers [1.6] x
| |_____Third Party JDBC Drivers [1.7] x
| |_____WebLogic Server Clients [1.8] x
| |_____WebLogic Web Server Plugins [1.9] x
| |_____UDDI and Xquery Support [1.10] x
| |_____Server Examples [1.11]
| |_____Evaluation Database [1.12] x
|_____Oracle Coherence [2] x
|_____Coherence Product Files [2.1] x
|_____Coherence Examples [2.2]
*Estimated size of installation: 690.2 MB
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 2
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-119464-1.html
自古二楼出狗奴
再个地方政府保护当地企业也很正常
恶狗情怀透视