How to install Weblogic in RockyOS Minimal (NO GUI)
How to install Weblogic 12c
Ref: https://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_2_1/01-02-004-InstallWLSGeneric/installwlsgeneric.html
Silent install (recommended for a server)
This is the standard approach on headless Linux servers. You skip the GUI entirely and feed the installer a response file. Run:
$ java -jar fmw_12.2.1.4.0_wls_lite_generic.jar -silent -responseFile /path/to/response.rsp -invPtrLoc /path/to/oraInst.loc
You need two small files first.
Create oraInst.loc (tells Oracle where to keep its inventory):
====
inventory_loc=/u01/oraInventory
inst_group=admin
====
Create wls.rsp (the response file):
====
[ENGINE]
Response File Version=1.0.0.0.0
[GENERIC]
ORACLE_HOME=/u01/Oracle/Middleware/Oracle_Home
INSTALL_TYPE=WebLogic Server
DECLINE_AUTO_UPDATES=true
DECLINE_SECURITY_UPDATES=true
====Adjust ORACLE_HOME to where you want WebLogic installed (the directory must be empty or not yet exist). Then run:
$ java -jar fmw_12.2.1.4.0_wls_lite_generic.jar -silent -responseFile /home/admin/wls.rsp -invPtrLoc /home/admin/oraInst.loc
When it finishes you'll see "The installation of Oracle Fusion Middleware ... completed successfully.
After the install finishes, there's an important thing to understand: installing WebLogic doesn't give you a running server or a console yet. The installer only puts the binaries on disk. To get the Admin Console web page, you first have to create a domain and start the Admin Server. Here's the full path from where you are now.
Step 1 — Create a domain
The install you just did only laid down the software. Now run the Configuration Wizard to create a domain. Since your server is headless (no display), use the silent mode here too.
The wizard lives in your ORACLE_HOME:
$ cd /u01/Oracle/Middleware/Oracle_Home/oracle_common/common/bin
Create a domain response file, e.g. create_domain.py (WLST script) — this is the headless way:
python
====
readTemplate('/u01/Oracle/Middleware/Oracle_Home/wlserver/common/templates/wls/wls.jar')
cd('/Security/base_domain/User/weblogic')
cmo.setPassword('YourPassword123')
setOption('OverwriteDomain', 'true')
writeDomain('/u01/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain')
closeTemplate()
exit()
====Set a password that's at least 8 characters with a number. Then run it:
$ ./wlst.sh create_domain.py
(If you prefer the GUI wizard over X11 forwarding instead, run ./config.sh — but it has the same display requirement as the installer.)
Step 2 — Start the Admin Server
Go into the new domain and start it:
$ cd /u01/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/bin
./startWebLogic.shWatch the output. It takes a minute or two. Wait until you see:
<Server state changed to RUNNING>
That line is the signal the console is ready. Note that this command runs in the foreground and ties up your terminal. To keep it running after you log out, start it in the background instead:
$ nohup ./startWebLogic.sh > server.log 2>&1 &
and watch progress with tail -f server.log.
Step 3 — Open the Admin Console
The console listens on port 7001 by default. In a browser on your own machine:
http://<server-ip>:7001/console
Replace <server-ip> with the server's actual IP address (since the browser is on your laptop, not the server — localhost won't work unless you're browsing from the server itself). Log in with username weblogic and the password you set in Step 1.
If the page doesn't load
Almost always one of these:
The most common cause is the firewall blocking port 7001. Open it:
$ sudo firewall-cmd --permanent --add-port=7001/tcp
$ sudo firewall-cmd --reloadOther things to check: confirm the server actually reached RUNNING state (Step 2), make sure you're using the right IP (run ip addr on the server to find it), and verify nothing else is using the port with ss -tlnp | grep 7001 on the server.
Once you're in, the Admin Console is where you deploy applications, create data sources, manage servers, and — relevant to your earlier questions — configure SAML 2.0 for the Keycloak integration.
Home
Comments[ 0 ]
Post a Comment