In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how to install Weblogic 12c silently under Linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Prepare before installation:
Operating system: Linux 6.5 witch WebLogic version 12.2.1.2 Shi WebLogic home directory / app/weblogic/
Installation steps: step 1: create users and user groups that install weblogic
Groupadd-g 600 weblogic
Useradd-g 600-u 600 weblogic
Step 2: install jdk
Weblogic11g supports versions above jdk1.6, weblogic12.1.X supports versions above jdk1.7, weblogic12.2.X supports versions above jdk1.8, and the jdk version I installed is jdk-8u131-linux-x64.
1. Check if jdk is installed
Log in to the system with the root user and open a terminal input
# rpm-qa | grep gcj
The display contains the following information
# java-1.4.2-gcj-compat-1.4.2.0-40jpp.112
# java-1.4.2-gcj-compat-devel-l.4.2.0-40jpp.112 (this package is not pre-installed)
Note: if you execute # rpm-qa | grep gcj has no information output, you can execute # rpm-qa | grep java check
Unloading
# rpm-e java-1.4.2-gcj-compat-devel-l.4.2.0-40jpp.112
# rpm-e java-1.4.2-gcj-compat-l.4.2.0-40jpp.112
If you have a dependency and do not uninstall it, just uninstall it with rpm-e-- nodeps.
Download jdk-8u131-linux-x64.rpm (can be found on the official website of ORACLE)
two。 Add executable permissions to the file
[root@esprit java] # chmod + x jdk-8u131-linux-x64.rpm
3. Install jdk
[root@esprit java] # rpm-ivh jdk-8u131-linux-x64.rpm
Jdk is installed by default in the / usr/java directory
4. Configure environment variables
[root@esprit java] # vi / etc/profile
After opening the file, add the following to the export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC:
Export JAVA_HOME=/usr/java/jdk1.8.0_131
Export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
Export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH
Press the esc key
Enter: wq save exit.
Then make the configuration effective soure / etc/profile
5. Test java
[root@esprit java] # java-version enter this command to see if you output the jdk version information you just installed.
You can also write a simple HelloWorld to test it.
[root@esprit java] # vi hello.java
Enter in the file:
Public class hello {
Public static void main (String args []) {
System.out.println ("Hello World in Linux!")
}
}
Wq save exit
[root@esprit java] # javac HelloWorld.java
No mistakes. Then.
[root@esprit java] # java HelloWorld
Output under shell: Hello World in Linux!
So it's done.
Step 3: start installing weblogic 12c1. Slient Mode silently. Create an oraInst.loc file with the following contents
Format: inventory_loc=inst_group=
Example:
Inventory_loc=/home/weblogic/oraInventory / / create a product list to install Oracle's software for the first time
Inst_group=weblogic / / the name of the user group in which weblogic 12c is installed, which is modified according to the actual situation
Used to save some temporary files during the installation, and the group name of the default installation
If you have previously installed Oracle products, then this step can be omitted, there is no need to specify the oraInventory1 directory
You can install it using the following command:
Java-jar fmw_12.2.1.2.0_wls.jar-silent-responseFile / home/exampleuser/response/wls.rsp
two。 Create a wls.rsp response file
You can install this file in the graphical interface and click Save to produce the file. The contents of the files used by this machine are as follows:
[ENGINE]
# DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0 / / this item does not need to be modified
[GENERIC]
# the installation path of weblogic, which can be modified according to the actual situation
ORACLE_HOME=/app/weblogic
# Set this variable value to the Installation Type selected. E.g. WebLogic Server, Coherence, Complete with Examples.
INSTALL_TYPE=WebLogic Server
I have only chosen the most basic Weblogic Server components, and choosing others will be slightly different.
3. Once the configuration file is created, you are ready to install
[weblogic@localhost liaowh] $java-jar fmw_12.2.1.2.0_wls.jar silent-responseFile / home/exampleuser/response/wls.rsp-invPtrLoc / home/exampleuser/oraInst.loc
The file is being extracted.
Java HotSpot (TM) Server VM warning: You have loaded library / tmp/orcl305077197089615615.tmp/Disk1/install/linux/libjni.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack-c', or link it with'- z noexecstack'.
Start Oracle Universal Installer
Wait a minute. Show up.
Expected result: 1.8
Actual result: 1.8.0mm 131
Check complete. The overall results of this inspection are as follows: pass
CheckJDKVersion check: successful.
Validating data.
Copying files.
-20% Mutual 40% Mutual 60% Mutual 80% Mutual 100%
The installation for WebLogic Server 12.2.1.2.0 has been completed successfully.
[weblogic@localhost liaowh] $
Step 4: create domain method 1:
First execute setWLSEnv.sh to configure the environment variables
[weblogic@localhost bin] $. / app/weblogic/wlserver/server/bin/setWLSEnv.sh
Then manually create the directory where the domain is stored, in / data/weblogic/user_projects/domains/hnDomain/
Go to the domain directory and execute the command
[weblogic@localhost hnDomain] $$JAVA_HOME/bin/java $JAVA_OPTIONS-Xmx1024m-XX:MaxPermSize=256m weblogic.Server
To generate various files under the domain, including configuration information for management servers, and so on. After that, go to the bin directory, start it, and finally visit
Http://ip:7001/console is in the console.
Ps if using the above method to build a domain is not successful, please try the following method
Method 2: use wlst to create domain
See blog http://blog.csdn.net/chs007chs/article/details/52459980
Thank you for reading! This is the end of this article on "how to silently install Weblogic 12c under Linux". 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.