在 CentOS 上通过 WebLogic 配置“域名”,通常有两种理解,下面分别说明,你可以对号入座:
(很多人说的“配域名”其实是指创建 WebLogic Domain)
cd $WL_HOME/common/bin
./config.sh
mydomain)域目录一般在:
$DOMAIN_HOME = /u01/oracle/user_projects/domains/mydomain
启动:
cd $DOMAIN_HOME/bin
./startWebLogic.sh
www.example.com 访问 WebLogic修改 config.xml 或控制台:
0.0.0.080(需 root)⚠️ WebLogic 不建议直接暴露 80 端口
yum install nginx -y
systemctl enable nginx
systemctl start nginx
vi /etc/nginx/conf.d/weblogic.conf
示例:
server {
listen 80;
server_name www.example.com;
location / {
proxy_pass http://127.0.0.1:7001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
www.example.com A 记录指向 CentOS 服务器公网 IP适合集群、SSL、性能要求高场景。
或由 Nginx 统一处理 HTTPS,后端走 HTTP。
✅ 防火墙开放端口
firewall-cmd --add-port=80/tcp --permanent
firewall-cmd --reload
✅ SELinux(可临时关闭测试)
setenforce 0
如果你是指:
可以告诉我你现在是 哪一步卡住,我可以直接给你命令级操作。