在CentOS上配置WebLogic服务器的端口涉及多个步骤,以下是详细的配置指南:
fuser 命令检查端口占用情况:sudo fuser -n tcp 端口号
sudo kill -9 进程号
http://localhost:7001/console/
config.xml 修改端口config.xml 文件,通常位于 DOMAIN_HOME/config 目录下。server 节点,修改 listen-port 属性:<server name="AdminServer">
<listen-port>新端口号</listen-port>
<listen-address>localhost</listen-address>
</server>
firewalld),需要确保WebLogic使用的端口是开放的。可以使用以下命令添加规则:sudo firewall-cmd --permanent --add-port=端口号/tcp
sudo firewall-cmd --reload
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload
/etc/sysconfig/network-scripts/ifcfg-ens33,设置 BOOTPROTO 为 static,并添加 IPADDR、NETMASK、GATEWAY 等参数。/etc/resolv.conf 文件,添加DNS服务器地址。startManagedWebLogic.cmd 和 stopManagedWebLogic.cmd 文件,将其中涉及的端口配置修改为新的端口号。通过以上步骤,你可以在CentOS上成功配置WebLogic服务器的端口。确保在进行任何更改后,重启WebLogic服务以使更改生效。