Home >System Tutorial >LINUX >In-depth analysis of the installation and configuration of WebLogic on Linux

In-depth analysis of the installation and configuration of WebLogic on Linux

王林
王林forward
2024-02-15 14:00:281365browse

As a powerful Java EE application server, WebLogic has become the first choice for many enterprise-level applications. On the Linux operating system, the installation and configuration of WebLogic is an integral part. This article will provide an in-depth analysis of how to complete the installation and configuration of WebLogic in a Linux environment, helping readers quickly and easily build an efficient and stable WebLogic application server.

In-depth analysis of the installation and configuration of WebLogic on Linux

1. Environment

  • Linux version: CentOS7 64bit (omitted)
  • fmw_12.2.1.3.0_wls.jar
  • jdk-8u201-linux-x64.tar.gz (Uninstall the jdk that comes with the linux system and install our own jdk)

Note: For uninstallation and installation of jdk, please see: https://www.cnblogs.com/elfin/p/11318805.html

2. Installation steps

1. Download WebLogic

下载地址:https://www.oracle.com/technetwork/middleware/weblogic/downloads/index.html

2. Create installation user and authorization

# Root用户执行
groupadd weblogic # 添加用户组
useradd -g weblogic weblogic # 添加用户:useradd -g 用户组 用户名
passwd weblogic
# 授权
# chown -R 组:用户 目录
chown -R weblogic:weblogic /home/weblogic/
chmod 777 -R /home/weblogic # 生产环境适量而设
su - weblogic

3. Create a new directory (installation directory)

mkdir -p /home/weblogic

Note: If you are prompted with insufficient permissions, you can add sudo
before the command. Enter the installation package path and copy the installation package to the new installation directory

Note: Keep the JDK compilation environment and running environment consistent during installation, otherwise an exception will be prompted!

cd /路径
sudo scp -r fmw_12.2.1.3.0_wls.jar/var/log/ root@192.168.178.109:/home/weblogic

Give the installation file executable permissions

chmod a+x fmw_12.2.1.3.0_wls.jar

Execute installation command

java -jar fmw_12.2.1.3.0_wls.jar -mode=console

Note: If the installation file is in .bin format, the installation command is: ./wls2130_generic.bin -mode=console;
You don’t need to add “-mode=console” to the console text mode, because it will automatically
when you cannot start the graphical installation interface during installation.
to enter text console mode Jump out of the graphical installation interface and install in order

  • 1. Welcome interface (skip update)
  • 2. Select the installation path: (the installation directory can be modified by yourself)
  • 3. Select the installation type, generally choose the first WebLogic Server
  • 4. Condition check page
  • 5. On the security update page, you can fill in your email address at will, and then a connection failure pops up. Check I do not want to receive the relevant configuration, click Continue, and continue to the next step
  • 5. On the security update page, you can fill in your email address at will, and then a connection failure pops up. Check I do not want to receive the relevant configuration, click Continue, and continue to the next step
  • 7. The installation progress page displays the installation progress. You can continue to the next step of creating domain configuration
  • 8. Installation completed
  • 9. Create a new domain
  • 10. Configuration Wizard
  • 11. Set up an administrator account (weblogic@2019)
  • 12. Domain mode and JDK, weblogic automatically recognizes the JDK configured in the system (select production)
  • 13. Advanced configuration page, default is enough (select all three)
  • 14. Manage server page, default is
  • 15. Node management (password: weblogic@789)
  • 16. Managed server (host name and port)
  • 17. Cluster configuration, etc.
  • 18. Configuration summary page, showing domain configuration information
  • 19. The configuration progress page displays configuration information

3. Start

Startup script address installation path

cd /home/fairy/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/bin/
  启动:startWebLogic.sh(./startWebLogic.sh)(././startWebLogic.sh)

  停止:stopWebLogic.sh

  端口配置文件:Middleware/Oracle_Home/user_projects/domains/base_domain/config

  域配置界面脚本:Middleware/Oracle_Home/oracle_common/common/

  bin目录下# ./config.sh 

4. Test connection

ssh测试:telnet ip+端口号(telnet 10.9.36.105:7001)

         web测试:

         访问地址:http://IP+Port(7001)/console(http://192.168.178.109:7001/console)

as follows:

Enter username and password to start the server node

5. Deployment

Copy the package to the installation directory

cd  /home/fairy/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/bin/

./startManagedWebLogic.sh 主机名 网页url

(./startManagedWebLogic.sh mysql02 http://192.168.178.109:7001)

With a comprehensive introduction to the installation and configuration process of WebLogic, we can easily build a complete WebLogic environment so that it can run various Java EE applications efficiently and stably. At the same time, we also need to realize that the installation and configuration of WebLogic involves a lot of complex technologies and knowledge, which requires us to continuously learn and improve our skills. I believe that by reading this article, everyone can have a deeper understanding of the installation and configuration of WebLogic on Linux, so that they can be more comfortable at work.

The above is the detailed content of In-depth analysis of the installation and configuration of WebLogic on Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:lxlinux.net. If there is any infringement, please contact admin@php.cn delete