Linux下命令行安装WebLogic 10.3.6

一、安装前准备工作:

1、创建用户useradd weblogic;创建用户成功linux系统会自动创建一个和用户名相同的分组,并将该用户分到改组中。并会在/home路径下创建一个和用户名相同的路径,比如我们创建的weblogic。

注:当然,你也可以通过groupadd -g GID groupname(GID代表创建组的ID,一般大于500),然后useradd –d userhome –g GID username(userhome 代表用户的主目录,GID 为前一步创建的组ID)创建用户并将用户分到相应的组里面。

2、卸载掉linux系统自带的jdk,安装我们自己的jdk,建议和开发过程中用到的jdk版本一致。

注:jdk的卸载和安装参见:

二、开始安装:
a.?创建weblogic用户组.?

useradd weblogic
passwd weblogic

更改jdk版本

2、进入安装目录
#cd /home
#cp jdk-7u76-linux-x64.rpm /usr/local
#cd /usr/local
给所有用户添加可执行的权限

#rpm -ivh jdk-7u76-linux-x64.rpm

设置环境变量

#vi /etc/profile

打开后,在文档最下方加上以下环境变量配置代码:

export JAVA_HOME=/usr/java/jdk1.6.0_45
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH

执行生效

#. /etc/profile

weblogic用户

export JAVA_HOME=/usr/java/jdk1.6.0_45

export JAVA_BIN=/usr/java/jdk1.6.0_45/bin

export PATH=$PATH:$JAVA_HOME/bin

export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

export JAVA_HOME JAVA_BIN PATH CLASSPATH

注意:export PATH=$JAVA_HOME/bin:$PATH,注意将$PATH放到最后。以免造成新旧版本问题。
当你已经成功把jdk1.6.0_45 安装到 /usr/java,并且配置好了系统环境变量
执行 # java -version 时就是 显示jdk1.6.0_45,是因为你的linux系统有默认的jdk;执行
cp jdk-6u7-linux-i586.bin /usr
即将jdk复制到/usr目录下,然后进入/usr目录cd /usr

执行权限

chmod +x jdk-6u45-linux-x64.bin

执行安装命令

./jdk-6u45-linux-x64.bin

1、# cd /usr/bin

# ln -s -f /usr/java/jdk1.6.0_45/jre/bin/java

# ln -s -f /usr/java/jdk1.6.0_45/bin/javac

2、接着卸载jdk-1.7.0_76,再次重新安装。卸载方法:

先查看jdk-1.7.0_76包名

#rpm -qa | grep jdk


接着执行

#rpm -e jdk-1.7.0_76-fcs

卸载完后,再次重新安装jdk-7u76-linux-x64.rpm 。


1、进入安装路径:/home/weblogic

2、将安装文件wls1036_generic.jar放入安装目录

3、chmod a+x wls1036_generic.jar  赋予安装文件可执行的权限

4、执行安装命令:java -jar filename.jar -mode=console

注:如果安装文件是.bin格式的文件,安装命令为:./wls1036_generic.bin -mode=console;(你可以不加“-mode=console”的控制台文本模式,因为在你安装时无法启动图形安装界面时它会自动的进入文本控制台模式的)


5、控制台安装:

一、安装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 ------------------->

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]> 回车

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

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

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

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

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

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

"Middleware Home" = [/bea/weblogic]


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

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

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

Warning

/bea/weblogic directory is not empty. Proceed with installation?


Enter [Exit][Previous][Next]>

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

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

<-------------------- Oracle Installer - WebLogic 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]? yes

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


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

<-------------------- Oracle Installer - WebLogic 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]> 2

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Products and Components:
-------------------------------

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/c89720da6408014c8c612d8344c8ed24.html