Debian系统上配置WebLogic网络
一 系统网络先行
auto 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 networking。如使用 NetworkManager,可用 nmcli 或 GUI 配置,并启用服务:sudo systemctl enable --now NetworkManager。如使用 netplan,编辑 /etc/netplan/*.yaml,然后 sudo netplan apply。完成后用 ip addr、ping 验证连通性与 DNS 解析。二 让WebLogic可被远程访问
三 端口与协议配置
四 防火墙与安全策略
sudo ufw allow 7001/tcp;如需限制来源:sudo ufw allow from 192.168.1.0/24 to any port 7001 proto tcp。sudo iptables -A INPUT -p tcp --dport 7001 -s 192.168.1.0/24 -j ACCEPT。五 验证与常见问题
curl -I http://127.0.0.1:7001/consolecurl -I http://<服务器IP>:7001/consoless -lntp | grep 7001 或 netstat -lntp | grep 7001