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.
1. Environment
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
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!