Linux上WebLogic网络配置实操指南
一 系统网络先行
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: no
addresses: [192.168.1.100/24]
gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
sudo netplan applyauto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4
sudo systemctl restart networkingBOOTPROTO=static
IPADDR=192.168.1.100
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=8.8.8.8
DNS2=8.8.4.4
ONBOOT=yes
sudo systemctl restart networkip addr show eth0、ip route、ping www.google.com、cat /etc/resolv.confsudo firewall-cmd --permanent --add-port=7001/tcp && sudo firewall-cmd --reloadsudo ufw allow 7001/tcp二 WebLogic监听与协议配置
$WL_HOME/common/bin/wlst.sh
connect('weblogic','weblogic123','t3://192.168.1.100:7001')
cd('Servers/AdminServer')
set('ListenAddress','192.168.1.100')
set('ListenPort',7001)
updateDomain()
closeDomain()
exit()
三 域名与客户端访问
192.168.1.100 admin.example.com
http://admin.example.com:7001/consolehttps://admin.example.com:7002/console四 验证与排错清单
ss -lntp | grep -E '7001|7002'netstat -anp | grep 7001curl -I http://127.0.0.1:7001/consolecurl -I http://<服务器IP>:7001/console