Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Weblogic 12cR2 in CentOS 7

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how CentOS 7 installs Weblogic 12cR2. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

CentOS try not to minimize installation and choose GNOME Desktop. Because Weblogic 12c can only be installed with an image interface, otherwise it can only be installed silently, which is more difficult.

Silent installation: https://www.linuxidc.com/Linux/2015-01/112357.htm

Remote graphical interface mapping installation method: https://www.linuxidc.com/Linux/2015-01/112357p2.htm

You have to install JDK8 first. The version requires more than 1.8.0mm 131. Note: you cannot use your own OpenJDK, uninstall: yum remove java* first.

download

Select Generic (800 MB): http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-for-dev-1703574.html on the download page

Extract it to the / tmp directory to facilitate the installation after switching users. Other users cannot access it in the / root directory:

Unzip fmw_12.2.1.3.0_wls_Disk1_1of1.zip-d / tmp create weblogic user useradd weblogicpasswd weblogic

Log out of the root user and log in using the weblogic user. Users cannot install using root.

Installation

There is a graphical interface (desktop) that can be installed directly:

Java-jar fmw_12.2.1.3.0_wls.jar

Otherwise, to use silent installation mode, two additional two files are required:

Java-jar fmw_12.2.1.3.0_wls.jar-silent-responseFile / home/weblogic/wls.rsp-invPtrLoc / home/weblogic/oraInst.loc

Create a response file:

Vim / home/weblogic/wls.rsp

The contents are as follows:

[ENGINE] # DO NOT CHANGE THIS.Response File Version=1.0.0.0.0 [GENERIC] # Set this to true if you wish to skip software updatesDECLINE_AUTO_UPDATES=true#My Oracle Support User NameMOS_USERNAME=#My Oracle Support PasswordMOS_PASSWORD=#If the Software updates are already downloaded and available on your local system Then specify the path to the directory where these patches are available and set SPECIFY_DOWNLOAD_LOCATION to trueAUTO_UPDATES_LOCATION=#Proxy Server Name to connect to My Oracle SupportSOFTWARE_UPDATES_PROXY_SERVER=#Proxy Server PortSOFTWARE_UPDATES_PROXY_PORT=#Proxy Server UsernameSOFTWARE_UPDATES_PROXY_USER=#Proxy Server PasswordSOFTWARE_UPDATES_PROXY_PASSWORD=#The oracle home location. This can be an existing Oracle Home ora new Oracle HomeORACLE_HOME=/home/weblogic/Oracle/Middleware/Oracle_Home#The federated oracle home locations. This should be an existing Oracle Home. Multiple values can be provided as comma seperated valuesFEDERATED_ORACLE_HOMES=#Set this variable value to the Installation Type selected. E.g. WebLogic Server, Coherence, Complete with Examples.INSTALL_TYPE=WebLogic Server

Create an initialization environment file:

Vim / home/weblogic/oraInst.loc

The contents are as follows:

Inst_group=weblogicinventory_loc=/home/weblogic/oraInventory create domain

Use under the graphical interface:

/ home/weblogic/Oracle/Middleware/Oracle_Home/wlserver/common/bin/config.sh

The command line silence mode is complex, see Resources:

Https://blog.csdn.net/xcjing/article/details/60141143

Https://segmentfault.com/a/1190000006795936

Mkdir-p / home/weblogic/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domaincd / home/weblogic/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domaincp / home/weblogic/Oracle/Middleware/Oracle_Home/wlserver/common/templates/scripts/wlst/basicWLSDomain.py. / base_domain.pyvim base_domain.py

Modify the domain-building script:

... # Please set password here before using this script, e.g. Cmo.setPassword ('value') # set the password here. 8 digits are required and at least one number or special character is required. Cmo.setPassword ('password1') # = # Create a JMS Server.#=# intermediate scripts delete all # = # Write the domain and close the domain template.#=setOption (' OverwriteDomain', 'true') # writeDomain (' / home/weblogic/Oracle/Middleware/Oracle_Home/user_projects/domains/basicWLSDomain') # here change to your own domains path writeDomain ('/ home/weblogic/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain') closeTemplate ()..

Execute the script:

# avoid slow domain building and slow console access for the first time. You can put this code in the / etc/profile file and export CONFIG_JVM_ARGS='-Djava.security.egd=file:/dev/urandom'# executes the script / home/weblogic/Oracle/Middleware/Oracle_Home/oracle_common/common/bin/wlst.sh base_domain.py

Start the domain stop service:

. / bin/startWebLogic.sh./bin/stopWebLogic.sh

If the stop command does not respond, Connecting to t3://weblogic12c2:7001 with userid weblogic is displayed. It is possible that the machine name cannot be parsed. You can modify the stopWebLogic.sh file and change weblogic12c2 to localhost.

Access address: http://localhost:7001/console

In the case of a firewall, it can only be accessed locally, and port 7001 can be opened:

Firewall-cmd-zone=public-add-port=7001/tcp-permanentfirewall-cmd-reload

You can also turn off the firewall directly:

# disable systemctl stop firewalld# and disable boot to start systemctl disable firewalld

Turn it back on using the following command:

# Boot systemctl start firewalld# allows boot to enable systemctl enable firewalld# to view status systemctl status firewalld secret-free startup and background operation

To start weblogic in generation mode, you need to enter a username and password. If you do not want to enter the username and password every time, you can create a new file {Oracle_Home} / user_project/domain/base_domain/servers/AdminServer/security/boot.properties:

Cd {Oracle_Home} / user_project/domain/base_domain/servers/AdminServermkdir securitycd securityvi boot.properties

The contents are as follows (fill in the username password set when installing domain):

Username=weblogicpassword=password1

Run directly. / startWebLogic.sh is run in the foreground, and the service will stop automatically after closing the window. If you want to run in the background and the service continues to run after closing the window, you can use the following command:

Nohup. / startWebLogic.sh &

This command creates a nohup.out file to which the original console output is written.

Thank you for reading! This is the end of the article on "how to install Weblogic 12cR2 in CentOS 7". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report