weblogic测试环境安装部署--傻瓜式安装教程

这篇具有很好参考价值的文章主要介绍了weblogic测试环境安装部署--傻瓜式安装教程。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

测试环境weblogic部署手册

1.weblogic需要有jdk环境

1.1 通过xftp工具把jdk1.8的软件包传入到服务器的/usr/local中并解压

cd /usr/local
tar -zxf jdk-8u333-linux-x64.tar.gz
[root@hjc ~]# cd /usr/local
[root@hjc local]# ls
aegis  bin  etc  games  include  jdk-8u333-linux-x64.tar.gz  lib  lib64  libexec  sbin  share  src
[root@hjc local]# tar -zxf jdk-8u333-linux-x64.tar.gz

1.2 配置java的环境变量

在/etc/profile文件中配置环境变量
运行这个命令 vim /etc/profile后在末尾加上下面的内容,:wq保存并退出

export JAVA_HOME=/usr/local/jdk1.8.0_333
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib:$CLASSPATH
export JAVA_PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin
export PATH=$PATH:${JAVA_PATH}

1.3 重启环境变量并检查java安装成功

source /etc/profile  # 让环境变量生效
java -version # 查看jdk的版本与是否安装成功
[root@hjc local]# source /etc/profile
[root@hjc local]# java -version
java version "1.8.0_333"
Java(TM) SE Runtime Environment (build 1.8.0_333-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.333-b02, mixed mode)
[root@hjc local]# 

2.安装weblogic并创建用户

[root@hjc local]# ls
aegis  bin  etc  games  include  jdk1.8.0_333  jdk-8u333-linux-x64.tar.gz  lib  lib64  libexec  sbin  share  src  wls1036_generic.jar

2.1新建weblogic用户和用户密码

2.2.1新建weblogic中间件用户,使用命令:

groupadd -g 2001 weblogic  # 建组
# -m自动建立用户登入目录 -u指定id -g属组-d:指定用户登入时的启始目录-s:指定用户登入后所使用的shell
useradd -m -u 2001 -g weblogic -d /home/weblogic -s /bin/bash weblogic 
passwd weblogic #设置密码
usermod -aG wheel weblogic # 把weblogic用户添加了附加组到wheel中
[root@hjc local]# groupadd -g 2001 weblogic
[root@hjc local]# useradd -m -u 2001 -g weblogic -d /home/weblogic -s /bin/bash weblogic
[root@hjc local]# passwd weblogic
[root@hjc local]# usermod -aG wheel weblogic
[root@hjc local]# id weblogic
uid=2001(weblogic) gid=2001(weblogic) groups=2001(weblogic),10(wheel)

2.2.2增加weblogic环境变量
登录weblogic用户,修改weblogic用户下基础环境变量,在.bash_profile文件中添加umask 022

vi .bash_profile
# 写入内容
umask 022

2.3切换为weblogic用户操作

[root@hjc local]# su - weblogic
[weblogic@hjc ~]$ 

3.部署weblogic

3.1 部署目录

在weblogic用户下,新建两个规划目录,一个是webapp文件夹,用于放置应用程序,另一个是domain文件夹,用于放置weblogic部署的域

/home/weblogic/
         /webapp/<app name>/             #应用系统部署文件目录,war、ear等
         /domain/<domain name>          #weblogic域存放地址
[weblogic@hjc ~]$ mkdir webapp
[weblogic@hjc ~]$ mkdir domain
[weblogic@hjc ~]$ ls
domain  webapp

3.2安装weblogic软件

3.2.1将weblogic的安装包wls1036_generic.jar通过xftp工具上传至/home/weblogic/webapp,然后安装

[weblogic@hjc local]$ cd /home/weblogic/webapp/
[weblogic@hjc webapp]$ ls
wls1036_generic.jar
[weblogic@hjc webapp]$ java -jar wls1036_generic.jar -mode=console

安装过程:(这里的细节很多,必须注意!)

[weblogic@jxapp01 ~]$ java -jar wls1036_generic.jar -mode=console
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 
"/home/weblogic/Oracle/Middleware"]
Enter new Middleware Home 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:[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"]
    ** 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.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]> **默认**
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
JDK Selection (Any * indicates Oracle Supplied VM):
---------------------------------------------------
JDK(s) chosen will be installed.  Defaults will be used in script string-substitution if installed.

   1|Add Local Jdk
   2|/usr/local/jdk1.8.0_333[x]
   *Estimated size of installation:  690.2 MB
Enter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]> **默认**
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Choose Product Installation Directories:
----------------------------------------
Middleware Home Directory: [/home/weblogic/Oracle/Middleware]
Product Installation Directories:
   1|WebLogic Server: [/home/weblogic/Oracle/Middleware/wlserver_10.3]
   2|Oracle Coherence: [/home/weblogic/Oracle/Middleware/coherence_3.7]
Enter index number to select OR [Exit][Previous][Next]> **默认**
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
The following Products and JDKs will be installed:
--------------------------------------------------
    WebLogic Platform 10.3.6.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
    *Estimated size of installation: 690.3 MB
Enter [Exit][Previous][Next]> **默认**
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Installing files..
0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]
Performing String Substitutions... 
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Configuring OCM...
0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]
Creating Domains...
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Installation Complete
Congratulations! Installation is complete.
Press [Enter] to continue or type [Exit]>**默认**
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->
Clean up process in progress ...
[weblogic@hjc webapp]$ 

3.2.2创建域

登录weblogic用户,在路径/home/weblogic/Oracle/Middleware/wlserver_10.3/common/bin,下面执行config.sh,脚本进行创建。
如果报错:./config.sh: line 103: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/bin/java: No such file or directory,则更改commEnv.sh的第149行,在JAVA_HOME后面添加jre目录。

[weblogic@hjc bin]$ cd /home/weblogic/Oracle/Middleware/wlserver_10.3/common/bin
[weblogic@hjc 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]> **默认**
<------------------- 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 exising 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]> **默认**
<------------------- Fusion Middleware Configuration Wizard ------------------>
Application Template Selection:
-------------------------------
    Available Templates
    |_____Basic WebLogic Server Domain - 10.3.6.0 [wlserver_10.3]x
    |_____Basic WebLogic SIP Server Domain - 10.3.6.0 [wlserver_10.3] [2] 
    |_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.6.0 [wlserver_10.3] [3] 
    |_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.6.0 [wlserver_10.3] [4] 
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> **默认**
<------------------- Fusion Middleware Configuration Wizard ------------------>
Edit Domain Information:
------------------------
    |  Name  |    Value    |
   _|________|_____________|
   1| *Name: | base_domain |
Enter value for "Name" OR [Exit][Previous][Next]> **默认**
<------------------- Fusion Middleware Configuration Wizard ------------------>

Select the target domain directory for this domain:
---------------------------------------------------
    "Target Location" = [Enter new value or use default 
"/home/weblogic/Oracle/Middleware/user_projects/domains"]
Enter new Target Location OR [Exit][Previous][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]> weblogic123
<------------------- 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]> weblogic123
<------------------- 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]> **默认**
<------------------- 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
<------------------- Fusion Middleware Configuration Wizard ------------------>
Java SDK Selection:
-------------------
 ->1|Sun SDK 1.8.0_333 @ /usr/local/jdk1.8.0_333
   2|Other Java SDK
   Enter index number to select OR [Exit][Previous][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]> **默认**
<------------------- Fusion Middleware Configuration Wizard ------------------>
Creating Domain...
0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]
**** Domain Created Successfully! ****

到这里weblogic就安装完了

4.启动weblogic服务测试

 cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain
 ./startWebLogic.sh  # 启动weblogic
[weblogic@hjc base_domain]$ cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain
[weblogic@hjc base_domain]$ ls
autodeploy  bin  config  console-ext  fileRealm.properties  init-info  lib  security  startWebLogic.sh
[weblogic@hjc base_domain]$ ./startWebLogic.sh 

启动成功(这里最好设置为绵免密登录,在下方)
weblogic测试环境安装部署--傻瓜式安装教程
成功启动一次后,就会出现/home/weblogic/domain/jx_domain/servers/AdminServer目录,然后新建一个security目录,并新建文件boot.properties,写username和password行:
password=weblogic123
username=weblogic

cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/servers
cd AdminServer/
mkdir security
cd security/
vim boot.properties
# 在boot.properties中写入
password=weblogic123
username=weblogic

weblogic测试环境安装部署--傻瓜式安装教程

重新启动weblogic服务

cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/
./startWeblogic.sh

weblogic测试环境安装部署--傻瓜式安装教程

优化weblogic反应速度

完成这一步后,发现登录weblogic后弹出的页面反应时间会很长。所以我们还需要进行一些配置
切换回root用户通过find / -name java.security找到java.security的配置目录。然后找到
/usr/local/java/jdk1.8.0_333/jre/lib/security/java.security文件路径vim更改设置为:
把securerandom.source=file:/dev/random改为下面这个配置即可securerandom.source=file:/dev/./urandom 最后保存:wq

[root@hjc ~]# find / -name java.security
/usr/local/jdk1.8.0_333/jre/lib/security/java.security
[root@hjc ~]# vim /usr/local/jdk1.8.0_333/jre/lib/security/java.security
## 修改的内容下图所示

weblogic测试环境安装部署--傻瓜式安装教程
这样配置后进入weblogic客户端就是秒进,速度快很多很多。

优化weblogic启动的内存

cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/bin
vim setDomainEnv.sh
## 修改内容如下图所示

weblogic测试环境安装部署--傻瓜式安装教程
weblogic测试环境安装部署--傻瓜式安装教程
之后,重新重启./startWeblogic.sh即可
weblogic测试环境安装部署--傻瓜式安装教程
至此!weblogic的安装部署完毕!文章来源地址https://www.toymoban.com/news/detail-448314.html

到了这里,关于weblogic测试环境安装部署--傻瓜式安装教程的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Sublime Text安装教程-零基础傻瓜式安装细节

    一、安装教程 1、打开Sublime Text官网下载安装包。官网下载链接:http://www.sublimetext.com/3 2、Windows32位操作系统选择“Windows”,64位操作系统选择“Windows64bit”,直接点击即可,如图所示。 3、把安装包下载到电脑上,注意要记住下载路径。 4、双击安装包,点击next,注意勾选“

    2023年04月13日
    浏览(55)
  • 最新虚拟机中Ubuntu18.04安装教程(傻瓜教程)

    可以直接点下方的链接下载 Ubuntu18.04安装链接 笔者这边使用的是VMware Workstation15.5pro,大家也可以从官网所下载 首先先打开Vmware界面,点击其中的“创建新的虚拟机”选项  打开新建虚拟机向导,选择自定义的选项,然后点击下一步  之后的一系列过程请看图中说明 因为笔者

    2024年02月04日
    浏览(58)
  • 小白新手一文完成Git+Github/GITEE傻瓜式入门详解部署教程(内含TortoiseGit配置)

    本文创作时版本为 Git-2.41.0,使用目标为笔记存储和代码库,部分公司向使用的设置可能不一样 本文在创作时通过狂神说视频的学习和帮助 版本控制 (Revision control)是一种在开发的过程中用于管理我们对文件、目录或工程等内容的修改历史,方便查看更改历史记录,备份以

    2024年02月04日
    浏览(91)
  • centos安装MySQL 解压版完整教程(按步骤傻瓜式安装

    一、卸载系统自带的 Mariadb  二、卸载 etc 目录下的 my.cnf 文件 三、检查MySQL是否存在 有则先删除 #有则同样使用 rpm -e --nodeps 命令卸载 rpm -e --nodeps  #删除mysql相关文件 rm -rf /usr/local/mysql/ #查看mysql服务: ps -ef|grep mysqld #停止mysql服务 sudo systemctl stop mysql #或单个杀死进程:kil

    2024年02月11日
    浏览(43)
  • debian安装ssh(傻瓜教程)+证书免密登录

    一、先安装 apt-get install -y ssh 我这里已经安装好了就不截图了 看下激活状态 service sshd status sshd代表是一个可持续的长连接服务 如果不是active就用systemctl start sshd激活,没有报错就可以 只允许特定ip连接(仅允许client 客户端进行ssh 访问,其余所有主机的请求都应该拒绝;)

    2024年02月05日
    浏览(26)
  • Ubuntu 20.04 安装docker(傻瓜试一键教程)

    更新 apt 包索引 安装依赖包 添加 Docker 的官方 GPG 密钥: 提示OK后 官方安装  安装最新版本的 Docker Engine-Community 到此安装完成, 可以输入 sudo docker --version 或者 sudo docker run hello-world 测试是否安装成功 如果您想免sudo进入docker的话, 直接输入以下命令,亲测: 以下命令意思就

    2024年02月11日
    浏览(52)
  • Windows11 环境下 Nginx 安装部署教程

    Nginx (engine x) 是一个高性能的HTTP和反向代理服务器,也是一个IMAP/POP3/SMTP服务器。 Nginx 是一种轻量级的Web服务器,可以作为独立的服务器部署网站(类似Tomcat),应用非常广泛,特别是现在前后端分离的情况下,它高性能和低消耗内存的结构受到很多大公司青睐,如淘宝网站

    2024年02月10日
    浏览(45)
  • Windows环境下安装及部署Nginx教程(含多个站点部署)

    目录 一、下载安装Nginx 二、部署Nginx 三、多站点部署的情况 1、nginx域名解析,虚拟主机:  四、带https的站点如何部署,与http的有何不同点? 1、官网下载地址:https://nginx.org/en/download.html 2、下载教程:选择最新的Stable version(稳定版本)下载到本地  3、下载完成后,解压

    2024年02月16日
    浏览(38)
  • 【禅道测试环境搭建及安装】Linux上的禅道安装教程,从环境搭建开始

    目录 一、操作环境 二、安装VMware 三、安装FinalShell 四、在VMware里安装CentOS 1.前置:CentOS的下载 2.CentOS的安装 3.查看网络 五、用宿主机连接远程的虚拟机 六、禅道包的下载与CentOS配置的修改 七、上传项目包并安装禅道 Windows 10 家庭版,64 位操作系统 这个软件傻瓜式安装即可

    2024年01月18日
    浏览(36)
  • linux下使用xmanager图形化安装oralce 19c(傻瓜教程)

    最新给客户安装Oracle 19c数据库,网上找的教程都有各种问题,遂自己写一个傻瓜加成供大家参考,如有疑问请评论区指正,感谢! 目录 一、安装环境准备 1、下载资源 2、配置本地yum源并安装所需包 3、创建oracle用户及用户组 4、配置Linux系统内核参数 5、关闭selinux和防火墙

    2024年02月05日
    浏览(38)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包