Ow
Application Servers AWS

Oracle WebLogic 14c on Linux User Guide

| Product: Oracle WebLogic 14c on Linux

Overview

This guide covers the cloudimg Oracle WebLogic Server 14c AMI on Amazon EC2. The image installs WebLogic Server release 14.1.2.0.0 and creates your WebLogic domain on the first boot of your own instance, with an administrator password that no other instance shares.

The same WebLogic build is offered on four operating systems. You choose one as the software version when you subscribe, and every step in this guide applies to all of them:

  • Oracle Linux 8
  • Oracle Linux 9
  • AlmaLinux 8
  • AlmaLinux 9

If you run a version released before 16 November 2026 (a version title ending in 26-03-2026 or 02-06-2026), read the section Versions released before 16 November 2026 at the end of this guide first: those images work differently and need a password change.

What is included

  • Oracle WebLogic Server 14.1.2.0.0 installed from Oracle's base release media in /u01/app/oracle/product (no Patch Set Update is applied; you apply Oracle's patches under your own Oracle support).
  • The operating system's own OpenJDK 21 (java-21-openjdk-headless), used through the path /usr/lib/jvm/jre-21-openjdk, so Java security updates install with dnf like any other package. No Oracle JDK is included.
  • A domain made on your instance. On the first boot, the one-time service weblogic-firstboot.service creates base_domain with one AdminServer in production mode, an administrator password generated on that instance (user weblogic), the domain's own encryption salt and its own TLS certificate. The password is written to /root/weblogic-credentials.txt, readable by root only. It never appears on a command line or in a log.
  • Fail closed. WebLogic and nginx do not start until first boot has finished. If first boot fails, the partial domain is removed and nothing listens.
  • The AdminServer on 127.0.0.1:7001 only, behind nginx on HTTPS port 443 with the per-instance certificate; port 80 redirects to HTTPS.
  • Administration from loopback only. The administration paths (/console, /consolehelp, /rconsole and the /management REST API that the WebLogic Remote Console uses) answer only to a client on the instance itself, which is what an SSH tunnel is. From any other address nginx answers 403.
  • Your applications on 443. Applications you deploy to the AdminServer are served through nginx on port 443, which you can open to your own address range.
  • SELinux enforcing, SSH by key only, the WebLogic and nginx services blocked from the instance metadata service, IMDSv2 required, and dnf-automatic applying operating system security updates every day.
  • Helper commands weblogic-selftest (proves the login path) and weblogic-set-host (serves WebLogic on your own DNS name).

Measured on the versions released in November 2026: Oracle Linux 8.10 with the Unbreakable Enterprise Kernel 5.15 and nginx 1.24, and Oracle Linux 9.8 with the Unbreakable Enterprise Kernel 6.12 and nginx 1.26, both with OpenJDK 21.0.12.1.1 (the newest Oracle Linux build at release); AlmaLinux 8.10 with kernel 4.18 and nginx 1.24, and AlmaLinux 9.8 with kernel 5.14 and nginx 1.26, both with OpenJDK 21.0.13. These versions move on as dnf installs updates.

WebLogic Server 14.1.2 has no web Administration Console. You administer the server with the WebLogic Remote Console (a desktop application), WLST or the REST management API. Node Manager is not configured in this single-server domain.

Licensing

This listing does not include an Oracle WebLogic Server licence. Bring your own Oracle WebLogic Server licence: you must hold a valid licence covering the instance and use it under your agreement with Oracle. The hourly charge on the listing is cloudimg's, for installing, configuring and packaging the software on this image.

The Java runtime is the operating system's OpenJDK 21 (GPLv2 with the Classpath Exception). Oracle's WebLogic Server certification names Oracle JDK; if your Oracle support requires it, you can install Oracle JDK under your own Oracle entitlement (see Optional: installing Oracle JDK under your own entitlement below). AlmaLinux is not on Oracle's certified platform list for WebLogic Server; check Oracle's certification matrix for the operating system you choose.

The licence notices are in /usr/share/doc/cloudimg/licenses/.

Oracle, Java and WebLogic are registered trademarks of Oracle and/or its affiliates. AlmaLinux is a trademark of the AlmaLinux OS Foundation. cloudimg is not affiliated with or endorsed by Oracle.

Step 1: Launch the instance

You need an AWS account subscribed to the listing, an EC2 key pair in the region you launch in, and a VPC subnet you can reach over SSH.

  1. Open the listing in AWS Marketplace, click Continue to Subscribe, then Continue to Configuration.
  2. Choose the Software Version (the operating system) and your region, then Continue to Launch.
  3. Choose m5.large (2 vCPU, 8 GiB) or larger, your VPC and subnet, your key pair and a security group.

Security group. The suggested security group allows SSH from anywhere: change the source to your own IP. SSH is the only inbound port you need: the SSH tunnel in Step 4 carries all administration. Never open TCP 7001 (the AdminServer listens on loopback only, so an inbound rule would not reach it anyway) and never open 5556. Open 443 only later, and only to your own address range, if you serve applications (Step 10).

The WebLogic installation, your domain and its logs live on the root volume (/u01 is a directory on it). Give the root volume room for your applications when you launch, for example 30 GiB; the root file system grows to fill the volume on first boot.

Step 2: Connect and wait for first boot

Wait for 2/2 status checks, then connect as ec2-user:

ssh -i your-key.pem ec2-user@<public-ip>

First boot creates the domain and then starts WebLogic and nginx. Allow about three to four minutes after launch. Check the three units:

sudo systemctl is-active weblogic-firstboot.service weblogic.service nginx.service

All three report active when WebLogic is ready. weblogic-firstboot.service is a one-time unit; on later boots it sees its marker and does nothing. If weblogic.service shows activating, wait a few seconds and run the command again. The first-boot log shows the host name the instance was configured for and how long the domain took:

sudo cat /var/log/weblogic-firstboot.log

Confirm the operating system release and the Java runtime WebLogic uses:

grep PRETTY_NAME /etc/os-release
rpm -q java-21-openjdk-headless nginx

Step 3: Read the admin password

The values generated for this instance are in a root-only file:

sudo cat /root/weblogic-credentials.txt

The file holds WEBLOGIC_USER=weblogic, WEBLOGIC_PASSWORD=..., the instance's URLs, DOMAIN_HOME and TLS_CERT_SHA256_FINGERPRINT (the SHA-256 fingerprint of this instance's certificate). To print only the password:

sudo sed -n 's/^WEBLOGIC_PASSWORD=//p' /root/weblogic-credentials.txt

Store the password in your secret manager. The URLs in the file name the instance's public DNS name; those addresses answer administration requests only from the instance itself, so from your workstation use the SSH tunnel in Step 4.

Prove the password works:

sudo /usr/local/sbin/weblogic-selftest

It ends with WLS_ROUNDTRIP_OK after showing the AdminServer RUNNING with this instance's password, and 401 for an anonymous request and for a wrong password.

Step 4: Reach the administration paths through an SSH tunnel

Open a tunnel from port 8443 on your workstation to nginx on the instance:

ssh -i your-key.pem -L 8443:127.0.0.1:443 ec2-user@<public-ip>

Keep that session open. nginx sees the tunnelled requests as coming from 127.0.0.1, so the administration paths answer. Through the tunnel the host name is localhost, which the instance serves (nginx's server name list for the configured host always includes localhost and 127.0.0.1, and so does the certificate). This stays true after you run weblogic-set-host.

In your browser open https://localhost:8443/console/welcome/. The certificate is self-signed and was generated on your instance: before you accept it, compare its SHA-256 fingerprint with TLS_CERT_SHA256_FINGERPRINT from Step 3. WebLogic Server 14.1.2 shows its welcome page, which links to the WebLogic Remote Console download:

The Welcome to WebLogic Server 14.1.2 page, explaining that administration uses the WebLogic Remote Console, with a Download WebLogic Remote Console button

Type the full path /console/welcome/. WebLogic writes the instance's configured host name (not localhost:8443) into the redirects it sends itself: a bare /console redirects your browser to https://<the instance's public DNS name>/console/welcome, which leaves the tunnel and is refused.

From any other address the same paths are refused. You can see this on the instance (the first address hostname -I prints is the private address):

H=$(sudo cat /etc/cloudimg/weblogic-host)
IP=$(hostname -I | awk '{print $1}')
curl -sk -o /dev/null -w "%{http_code}\n" --resolve "$H:443:$IP" "https://$H/console/welcome/"
curl -sk -o /dev/null -w "%{http_code}\n" --resolve "$H:443:127.0.0.1" "https://$H/console/welcome/"

The first prints 403 (private address) and the second 200 (loopback).

Step 5: Administer with the WebLogic Remote Console

  1. Install the WebLogic Remote Console on your workstation from the welcome page link or from Oracle's GitHub releases.
  2. Open the SSH tunnel from Step 4.
  3. Add an Admin Server Connection with URL https://localhost:8443, user weblogic and the password from Step 3.

Because the certificate is self-signed, either import this instance's certificate into the Remote Console's trust store or tick Make Insecure Connection after you have compared the fingerprint. To copy the certificate to your workstation:

ssh -i your-key.pem ec2-user@<public-ip> 'sudo cat /etc/nginx/ssl/weblogic.crt' > weblogic.crt

The Remote Console manages deployments, data sources, JMS, security realms, users and groups, and monitoring. It shows WebLogic's own security check as a banner; on this image two items remain by design: 091033 (no dedicated HTTPS channel, because nginx terminates TLS and the AdminServer listens on loopback only) and 091032 (demo keystores, which serve no traffic because the AdminServer has no SSL listener; they are generated on your instance's first boot). If you enable SSL on a WebLogic channel, configure your own identity and trust keystores first.

Step 6: Script with WLST

The WebLogic Scripting Tool runs on the instance as the oracle user and connects to the AdminServer over T3 on the loopback address. For an interactive session:

sudo -u oracle /u01/app/oracle/product/oracle_common/common/bin/wlst.sh
connect('weblogic', '<password>', 't3://127.0.0.1:7001')
serverRuntime()
print('AdminServer state: ' + cmo.getState())
disconnect()
exit()

To change configuration, use edit(), startEdit(), your changes, save() and activate().

To run a script without typing the password, pipe the password to the script on its standard input, so it is never on a command line, in an environment variable or in a file. This read-only check prints the domain and the server state, then removes the script:

S=$(mktemp --suffix=.py /tmp/wlst-check.XXXXXX)
cat > "$S" <<'PY'
import sys
pw = sys.stdin.readline().strip()
connect('weblogic', pw, 't3://127.0.0.1:7001')
pw = None
print('Connected to domain: ' + cmo.getName())
serverRuntime()
print('AdminServer state: ' + cmo.getState())
disconnect()
PY
chmod 0644 "$S"
sudo sed -n 's/^WEBLOGIC_PASSWORD=//p' /root/weblogic-credentials.txt | \
  sudo setpriv --reuid=oracle --regid=oinstall --init-groups env HOME=/home/oracle \
  /u01/app/oracle/product/oracle_common/common/bin/wlst.sh "$S" 2>&1 | grep -E 'Connected to domain|AdminServer state'
rm -f "$S"
Connected to domain: base_domain
AdminServer state: RUNNING

Step 7: Use the REST management API

With the tunnel from Step 4 open, the REST API answers on your workstation at https://localhost:8443/management/weblogic/latest. Using the certificate you copied in Step 5 (curl asks for the password):

curl -s --cacert weblogic.crt -u weblogic \
  'https://localhost:8443/management/weblogic/latest/serverRuntime?links=none&fields=name,state,weblogicVersion'
{
    "weblogicVersion": "WebLogic Server 14.1.2.0.0  Tue Nov 26 02:40:45 GMT 2024 2171472",
    "state": "RUNNING",
    "name": "AdminServer"
}

A request without credentials gets 401. Requests that change anything (POST, DELETE) also need the X-Requested-By header, WebLogic's protection against cross-site requests. For example, refresh WebLogic's security report:

curl -s -o /dev/null -w "%{http_code}\n" --cacert weblogic.crt -u weblogic \
  -H "X-Requested-By: cloudimg" -H "Content-Type: application/json" -d '{}' -X POST \
  https://localhost:8443/management/weblogic/latest/domainRuntime/domainSecurityRuntime/refreshCache

On the instance itself, the same API answers through nginx when you resolve the host to 127.0.0.1 (as in Step 4). This reads the password from the credentials file and hands it to curl in a configuration stream, so it never appears on a command line, then shows the domain and an anonymous request:

H=$(sudo cat /etc/cloudimg/weblogic-host)
PW=$(sudo sed -n 's/^WEBLOGIC_PASSWORD=//p' /root/weblogic-credentials.txt)
curl -s --cacert <(sudo cat /etc/nginx/ssl/weblogic.crt) --resolve "$H:443:127.0.0.1" -K <(printf 'user = "weblogic:%s"\n' "$PW") \
  "https://$H/management/weblogic/latest/domainConfig?links=none&fields=name,domainVersion,productionModeEnabled"
unset PW
curl -s -o /dev/null -w "anonymous: %{http_code}\n" --cacert <(sudo cat /etc/nginx/ssl/weblogic.crt) --resolve "$H:443:127.0.0.1" \
  "https://$H/management/weblogic/latest/serverRuntime"
{
    "productionModeEnabled": true,
    "domainVersion": "14.1.2.0.0",
    "name": "base_domain"
}
anonymous: 401

See the WebLogic Server 14.1.2 documentation for the full API. The /management/ paths are rate limited by nginx.

Step 8: Change the admin password

The generated password is already unique to your instance. To replace it with one of your own, reset it online with WLST, then write the new password into boot.properties so the AdminServer can still start unattended (WebLogic encrypts the file on its next start), and restart:

sudo -u oracle /u01/app/oracle/product/oracle_common/common/bin/wlst.sh
connect('weblogic', '<current-password>', 't3://127.0.0.1:7001')
cd('/SecurityConfiguration/base_domain/Realms/myrealm/AuthenticationProviders/DefaultAuthenticator')
cmo.resetUserPassword('weblogic', '<new-password>')
disconnect()
exit()
sudo -u oracle sh -c 'umask 077; cat > /u01/app/oracle/product/user_projects/domains/base_domain/servers/AdminServer/security/boot.properties'

Type these two lines, then press Ctrl-D:

username=weblogic
password=<new-password>
sudo systemctl restart weblogic.service

Then update the credentials file, which still holds the old password: edit the WEBLOGIC_PASSWORD= line with sudo vi /root/weblogic-credentials.txt, or delete that line once the new password is in your secret manager (weblogic-selftest reads the password from this file, so it cannot run without it). Typing the password at the WLST and cat prompts keeps it out of your shell history and off the process list. WebLogic locks an account for 30 minutes after five wrong passwords in a row.

Step 9: Use your own DNS name

Point your DNS name at the instance, then run (replace the name):

sudo weblogic-set-host weblogic.example.com

This generates a new self-signed certificate for the name, adds it to nginx's server names, sets it as WebLogic's front-end host, updates the URLs and the certificate fingerprint in /root/weblogic-credentials.txt, and restarts the AdminServer (about a minute). localhost and 127.0.0.1 stay in the server name list and the certificate, so the SSH tunnel keeps working, and the administration paths stay loopback only.

To use a certificate from your own certificate authority, run the command first, then replace /etc/nginx/ssl/weblogic.crt and /etc/nginx/ssl/weblogic.key (key owned by root:nginx, mode 0640) and run sudo systemctl reload nginx.

nginx answers only host names it serves (the configured host, the instance's public and private DNS names and addresses, localhost and 127.0.0.1); a request for any other name gets no answer.

Step 10: Deploy an application and serve it on 443

Applications you deploy to the AdminServer are served by nginx on port 443 at https://<your-host>/<context-root>/. Copy the archive to the instance, make it readable by oracle, and deploy it with WLST:

sudo install -o oracle -g oinstall -m 0640 myapp.war /u01/app/oracle/myapp.war
sudo -u oracle /u01/app/oracle/product/oracle_common/common/bin/wlst.sh
connect('weblogic', '<password>', 't3://127.0.0.1:7001')
deploy('myapp', '/u01/app/oracle/myapp.war', targets='AdminServer')
disconnect()
exit()

You can also deploy from the Remote Console through the tunnel. Check the application from the instance (200 once it is deployed):

H=$(sudo cat /etc/cloudimg/weblogic-host)
curl -s -o /dev/null -w "%{http_code}\n" --cacert <(sudo cat /etc/nginx/ssl/weblogic.crt) --resolve "$H:443:127.0.0.1" "https://$H/myapp/"

Before you deploy anything, nginx already serves the root path to WebLogic for the configured host (WebLogic answers 404 there until an application uses it), while WebLogic's internal paths stay closed:

H=$(sudo cat /etc/cloudimg/weblogic-host)
curl -s -o /dev/null -w "root: %{http_code}\n" --cacert <(sudo cat /etc/nginx/ssl/weblogic.crt) --resolve "$H:443:127.0.0.1" "https://$H/"
curl -s -o /dev/null -w "bea_wls_internal: %{http_code}\n" --cacert <(sudo cat /etc/nginx/ssl/weblogic.crt) --resolve "$H:443:127.0.0.1" "https://$H/bea_wls_internal/"
curl -s -o /dev/null -w "port 80: %{http_code} %{redirect_url}\n" --resolve "$H:80:127.0.0.1" "http://$H/"

To let your users reach it, add an inbound rule for TCP 443 from your own address range only (and TCP 80 from the same range if you want the redirect to HTTPS). Use the name the instance serves (Step 9). The administration paths stay refused (403) from those addresses; they answer only through the SSH tunnel. Never add 7001 or 5556 to the security group.

Optional: installing Oracle JDK under your own entitlement

Oracle's WebLogic Server 14.1.2 certification names Oracle JDK 17 and 21. If your Oracle support contract requires a certified JDK, install Oracle JDK yourself under your own Oracle entitlement; cloudimg does not supply it:

  1. Sign in to Oracle with your account and download the Oracle JDK 21 RPM for Linux x64 (jdk-21_linux-x64_bin.rpm) under the terms your Oracle licence gives you, then copy it to the instance.
  2. Install it and find its directory:

bash sudo dnf -y install ./jdk-21_linux-x64_bin.rpm ORACLE_JDK=$(dirname "$(dirname "$(rpm -ql jdk-21 | grep '/bin/java$' | head -1)")"); echo "${ORACLE_JDK}"

  1. Point every place WebLogic reads JAVA_HOME at it (the systemd unit, the Oracle home, the domain scripts, the oracle user's profile and the cloudimg tools), then restart:

bash sudo grep -rlF /usr/lib/jvm/jre-21-openjdk /etc/systemd/system/weblogic.service /u01/app/oracle/product/oui \ /u01/app/oracle/product/user_projects/domains/base_domain/bin /home/oracle/.bash_profile \ /usr/local/lib/cloudimg/weblogic/common.sh | sudo xargs sed -i "s|/usr/lib/jvm/jre-21-openjdk|${ORACLE_JDK}|g" sudo systemctl daemon-reload sudo systemctl restart weblogic.service sudo /usr/local/sbin/weblogic-selftest | tail -2

weblogic-selftest proves the login path as usual, then stops at its last check with a FAIL: AdminServer JVM ... line, because that check expects the operating system's OpenJDK: the line shows the Oracle JDK the AdminServer now runs on. From then on you update Oracle JDK under your Oracle entitlement; to go back, run the same sed with the two paths swapped.

Updates

Operating system and Java. dnf-automatic installs the operating system's security updates every day, including OpenJDK 21 and nginx. You can also update by hand with sudo dnf -y update. WebLogic reads Java through /usr/lib/jvm/jre-21-openjdk, so no WebLogic file changes after a Java update; restart the AdminServer to run on the new JDK:

sudo systemctl restart weblogic.service

Check the versions in use:

rpm -q java-21-openjdk-headless
sudo /usr/local/sbin/weblogic-selftest | grep 'AdminServer JVM'

WebLogic. The image is Oracle's 14.1.2.0.0 base release with no Patch Set Update (PSU). Oracle distributes WebLogic patches to licensed customers through My Oracle Support: apply the current WebLogic PSU and security patches under your Oracle support, following Oracle's OPatch documentation for Fusion Middleware 14.1.2 and the quarterly Critical Patch Update advisories. Stop the AdminServer first (sudo systemctl stop weblogic.service), apply the patch as the oracle user, then start it again.

Services, files and logs

sudo systemctl status weblogic-firstboot.service weblogic.service nginx.service --no-pager --lines=0
sudo journalctl -u weblogic.service -n 20 --no-pager

To restart (or stop / start):

sudo systemctl restart weblogic.service

The AdminServer is back in RUNNING about 30 seconds after a start. Its Java heap is set in the unit (USER_MEM_ARGS=-Xms512m -Xmx2g); raise it with sudo systemctl edit weblogic.service on larger instance types.

Path Purpose
/usr/lib/jvm/jre-21-openjdk OpenJDK 21 (JAVA_HOME)
/u01/app/oracle/product Oracle home (MW_HOME)
/u01/app/oracle/product/wlserver WebLogic Server (WL_HOME)
/u01/app/oracle/product/user_projects/domains/base_domain Your domain (DOMAIN_HOME), created on first boot
.../base_domain/servers/AdminServer/logs/AdminServer.log Server log
.../base_domain/servers/AdminServer/logs/access.log HTTP access log (with the real client address)
/root/weblogic-credentials.txt This instance's credentials (root only)
/etc/nginx/ssl/weblogic.crt, weblogic.key This instance's TLS certificate and key
/etc/nginx/conf.d/weblogic-host.conf nginx site for the configured host (written by first boot and weblogic-set-host)
/etc/cloudimg/weblogic-host The configured host name
/var/log/weblogic-firstboot.log First-boot log
/var/log/nginx/ nginx access and error logs

The oracle user's ~/.bash_profile exports JAVA_HOME, MW_HOME, ORACLE_HOME, WL_HOME and DOMAIN_HOME.

Troubleshooting

WebLogic or nginx does not start. Both start only after first boot has created /var/lib/cloudimg/weblogic-firstboot.done and the domain. Check sudo systemctl status weblogic-firstboot.service weblogic.service nginx.service, then /var/log/weblogic-firstboot.log and sudo journalctl -u weblogic.service -n 50 --no-pager. Common causes: too little memory (use m5.large or larger) or a boot.properties with a wrong password after a password change.

The browser shows 502 Bad Gateway, or the tunnel connection is refused. First boot or the AdminServer is still starting (about three to four minutes after launch); wait a minute and reload.

403 Forbidden on /console or /management. The request did not come through the SSH tunnel. Open the tunnel from Step 4 and use https://localhost:8443/....

The browser leaves localhost:8443. You opened a path that WebLogic redirects; type the full path https://localhost:8443/console/welcome/.

401 on the REST API or in the Remote Console. Use the user weblogic and the password from /root/weblogic-credentials.txt (or the one you set in Step 8). Five wrong passwords lock the account for 30 minutes.

No answer on 443 from your users. Check the security group allows their range on 443 and that they use a host name the instance serves (Step 9).

I cannot connect over SSH. Wait for 2/2 status checks, check the security group allows TCP 22 from your address, and connect as ec2-user with the key pair you chose (chmod 400 on the key file).

Versions released before 16 November 2026

This section is for subscribers who launched a version whose title ends in 26-03-2026 or 02-06-2026 ("Oracle WebLogic 14c on OEL 8", "on OEL 9", "on AlmaLinux 9" and "on AlmaLinux 8"). Those images work differently from the current versions described above:

  • The weblogic admin password was set when the image was built, so it is the same on every instance of that version. It is stored in /home/oracle/CREDENTIALS.txt.
  • The AdminServer listens on TCP 7001 on all interfaces from boot (plain HTTP, no TLS).
  • The runtime is Oracle JDK 21 at /u01/java/jdk-21, and the middleware home is on a separate /u01 EBS volume.
  • Node Manager runs on localhost:5556.

What to do on those instances:

  1. Change the weblogic password now, as below.
  2. Delete /home/oracle/CREDENTIALS.txt.
  3. Keep TCP 7001 closed to the internet. Never open 7001 or 5556 to 0.0.0.0/0; reach the server through an SSH tunnel: ssh -i your-key.pem -L 7001:127.0.0.1:7001 ec2-user@<public-ip>, then http://localhost:7001 on your machine.
  4. Or move to the current version: launch a current version, deploy your applications to it, and retire the old instance.

Changing the password on those versions. Use WLST from an SSH session on the instance. Replace <current> with the password from CREDENTIALS.txt and <new> with your own strong password (at least 8 characters with a number or symbol):

sudo su - oracle
/u01/app/oracle/product/oracle_common/common/bin/wlst.sh
connect('weblogic', '<current>', 't3://localhost:7001')
realm = cmo.getSecurityConfiguration().getDefaultRealm()
atn = realm.lookupAuthenticationProvider('DefaultAuthenticator')
atn.changeUserPassword('weblogic', '<current>', '<new>')
disconnect()
exit()

Then give the server the new password for its next start, remove the old credentials file and restart:

cat > /u01/app/oracle/product/user_projects/domains/base_domain/servers/AdminServer/security/boot.properties <<EOF
username=weblogic
password=<new>
EOF
chmod 600 /u01/app/oracle/product/user_projects/domains/base_domain/servers/AdminServer/security/boot.properties
exit
sudo rm /home/oracle/CREDENTIALS.txt
sudo systemctl restart weblogic.service

WebLogic encrypts boot.properties when it starts. Check the new password (curl asks for it; 200 means it works, 401 that it does not):

curl -s -o /dev/null -w '%{http_code}\n' -u weblogic \
  http://localhost:7001/management/weblogic/latest/serverRuntime

On those versions the services are weblogic.service and nodemanager.service, and the server log is /u01/app/oracle/product/user_projects/domains/base_domain/servers/AdminServer/logs/AdminServer.log.

Support

cloudimg's support team is on hand 24 hours a day by email for this image, with a guaranteed response within 24 hours: launch and first login, reading the admin password, the SSH tunnel and the Remote Console, WLST and the REST API, deploying applications, updates and troubleshooting.

Oracle software support and Oracle licences come from Oracle under your own agreement.