<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">1,查看Solaris 版本信息</span>
$ cat /etc/release
Oracle Solaris 11.1 SPARC
Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved.
Assembled 19 September 2012
2,下载相应的JDK版本 点击这里
所以我下载的版本是Solaris SPARC
3,ftp工具上传到目标
cp /tmp/jdk-xx /usr/jdk/jdk-xx
解压 jdk包
tar -zxvf jdk-xxx.tar.gz
4,创建新的weblogic domain
Method 1 (GUI)
1. Download Xmanager, use the xstart to login as oracle user to ATWHQSVR002 server
2. $ cd /u01/app/Middleware/wlserver_10.3/common/bin
3. $ ./config.sh
Method 2 (Console/Command Line)
1. Login as oracle user to ATWHQSVR002 using Putty
2. $ cd /u01/app/Middleware/wlserver_10.3/common/bin
3. $ ./config.sh -mode=console
The Option/Step for Console
Option – Description - Comment
• 1 - Choose Create a new WebLogic domain – Type 1, then enter
• 1 - Choose Weblogic Platform components – Type 1, then enter
• wlserver_10.3 - Basic WebLogic Server Domain - 10.3.6.0 [wlserver_10.3]x – Type wlserver_10.3 , then enter
• PutNewDomainName – Edit Domain Name – Type the newdomainname, then enter
• Enter again to continue
• Enter – Target Domain Directory – Just enter to Next
• 2 – Modify password – Type 2, Enter, then type the new password, then enter
• 3 – Confirm user password – Type 3, Enter, then type the confirm new password, then enter
• Enter again to continue
• 2 – Production Mode – Type 2, then enter
• 1 – JDK version – Type 1, then enter
• Enter again to continue
• DONE
具体步骤:
这里输入1 回车
这里输入1 回车
这里直接回车
输入newdomainname 回车
<------------------------------------------------- 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
选择1输入用户名回车
选择2输入密码回车
选择3确认密码回车
最后回车
<------------------------------------------------- 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]> 2
选择2回车
<------------------------------------------------- Fusion Middleware Configuration Wizard ------------------------------------------------->
Java SDK Selection:
-------------------
->1|Sun SDK 1.6.0_35 @ /usr/jdk/instances/jdk1.6.0
2|Other Java SDK
Enter index number to select OR [Exit][Previous][Next]> 1
选择一回车
<------------------------------------------------- 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]>
回车
<------------------------------------------------- Fusion Middleware Configuration Wizard ------------------------------------------------->
Creating Domain...
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
**** Domain Created Successfully! ****
记住输入的用户名 密码,到此为止weblogic DOMAIN就创建完毕
5.运行新的weblogic domain
1. Login as oracle user
2. $ nohup /u01/app/Middleware/user_projects/domains/newdomainname/bin/startWebLogic.sh &
或者
/u01/app/Middleware/user_projects/domains/newdomainname/bin/$ ./startWeblogic.sh
</pre><p>创建成功开启可能会出现的问题</p><p></p><pre name="code" class="plain">The JRE was not found in directory /usr/jdk/instances/jdk1.6.0. (JAVA_HOME)
Please edit your environment and set the JAVA_HOME
variable to point to the root directory of your Java installation.
The JRE was not found in directory /usr/jdk/instances/jdk1.6.0. (JAVA_HOME)
</pre>出现这个问题是因为前面创建domain的时候我们默认选择的是系统自带的jdk 找不到jre 所以我们需要修改配置文件的jdk路径,具体步骤如下<p></p><p></p><p>vi /domain/xxx/bin/setDoomainEnv.sh 编辑文件</p><pre>
BEA_JAVA_HOME=""
export BEA_JAVA_HOME
SUN_JAVA_HOME="/usr/jdk/instances/jdk1.6.0"
export SUN_JAVA_HOME
if [ "${JAVA_VENDOR}" = "Oracle" ] ; then
JAVA_HOME="${BEA_JAVA_HOME}"
export JAVA_HOME
else
if [ "${JAVA_VENDOR}" = "Sun" ] ; then
JAVA_HOME="${SUN_JAVA_HOME}"
export JAVA_HOME
else
JAVA_VENDOR="Sun"
export JAVA_VENDOR
JAVA_HOME="/usr/jdk/instances/jdk1.6.0"
export JAVA_HOME
fi
fi
改成
BEA_JAVA_HOME="<span style="font-family: Arial, Helvetica, sans-serif;"><span style="color:#ff0000;">需要的jdk版本路径</span></span>"
export BEA_JAVA_HOME
SUN_JAVA_HOME="<span style="color:#ff0000;">需要的jdk版本路径</span>"
export SUN_JAVA_HOME
if [ "${JAVA_VENDOR}" = "Oracle" ] ; then
JAVA_HOME="${BEA_JAVA_HOME}"
export JAVA_HOME
else
if [ "${JAVA_VENDOR}" = "Sun" ] ; then
JAVA_HOME="${SUN_JAVA_HOME}"
export JAVA_HOME
else
JAVA_VENDOR="Sun"
export JAVA_VENDOR
JAVA_HOME="<span style="font-family: Arial, Helvetica, sans-serif;"><span style="color:#ff0000;">需要的jdk版本路径</span></span><span style="font-family: Arial, Helvetica, sans-serif;">"</span>
export JAVA_HOME
fi
fi
:wq 退出重新启动问题解决。
问题2:
<Server is Running in Production Mode and Native Library(terminalio) to read the password securely from commandline is not found.>
解决办法:
进入/u01/app/Middleware/user_projects/domains/newdomain/servers/AdminServer
创建security
mkdir security
chmod 777 security/
进入 security
vi boot.properties
password=XXXX
保存退出
重新运行问题解决
如果还有什么疑问可以给我发QQ消息 394818428