【问题标题】:Ports closed after EJBCA (JEE application) deploymentEJBCA(JEE 应用程序)部署后关闭的端口
【发布时间】:2021-07-05 15:21:09
【问题描述】:

我刚刚使用本教程在 debian9 azure VM 上完成了 ejbca 6 的部署:

https://wiki.e-odyssey.net/ejbca/french-tuto

安装成功,但是:端口 443,80 已关闭

root@ejbcaDebian9:/home/ejbca# nmap

Starting Nmap 7.40 ( https://nmap.org ) at 2021-07-01 16:43 UTC
Nmap scan report for my_ip
Host is up (0.0013s latency).
Not shown: 995 filtered ports
PORT     STATE  SERVICE
22/tcp   open   ssh
80/tcp   closed http
443/tcp  closed https
8080/tcp open   http-proxy
8443/tcp open   https-alt

尝试使用 ufw 打开它们并在 azure 上添加网络入站规则 但它没有工作,所以我重新启动了虚拟机

但是重启后: 没有端口开放了

pki@ejbcaDebian9:~$ netstat -lapunta (无法读取“-p”的信息:geteuid()=1001,但您应该是 root。) 活动 Internet 连接(服务器和已建立) Proto Recv-Q Send-Q 本地地址 外部地址 状态 PID/程序名称 tcp 0 0 0.0.0.0:22 0.0.0.0:* 听 - tcp 0 0 127.0.0.1:3306 0.0.0.0:* 听 - tcp 0 36 172.18.0.4:22 51.144.166.96:37858 已建立 - tcp6 0 0 :::22 :::* 听 - udp 0 0 0.0.0.0:68 0.0.0.0:* -

pki@ejbcaDebian9~$ ps -aux | grep jboss
pki        716  0.0  0.0  11112   928 pts/0    S+   17:04   0:00 grep jboss
pki@ejbcaDebian9~$ ps -aux | grep wildfly
pki        723  0.0  0.0  11112   996 pts/0    S+   17:05   0:00 grep wildfly

在wildfly日志中我们有这个:

2021-07-01 16:22:43,402 INFO  [org.jboss.weld.Version] (MSC service thread 1-1) WELD-000900: 2.3.5 (Final)

2021-07-01 16:22:44,737 INFO  [org.cesecore.config.ConfigurationHolder] (MSC service thread 1-3) Allow external re-configuration: false

2021-07-01 16:22:44,737 DEBUG [org.cesecore.config.ConfigurationHolder] (MSC service thread 1-3) Add resource to configuration: /conf/cesecore.properties

2021-07-01 16:22:44,758 DEBUG [org.cesecore.config.ConfigurationHolder] (MSC service thread 1-3) Added url to configuration source: vfs:/content/ejbca.ear/lib/ejbca-properties.jar/conf/cesecore.properties

root@ejbcaDebian9 /opt/wildfly/standalone/log# tail -f server.log
2021-07-01 16:44:22,523 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0008: Undertow HTTPS listener httpspub suspending

2021-07-01 16:44:22,523 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0007: Undertow HTTPS listener httpspub stopped, was bound to 0.0.0.0:8442

2021-07-01 16:44:22,523 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0008: Undertow HTTP listener http suspending

2021-07-01 16:44:22,524 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0007: Undertow HTTP listener http stopped, was bound to 0.0.0.0:8080
2021-07-01 16:44:22,537 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0208: Stopped subdeployment (runtime-name: ra-gui.war) in 311ms
2021-07-01 16:44:22,538 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0004: Undertow 1.4.0.Final stopping

2021-07-01 16:44:22,545 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0208: Stopped subdeployment (runtime-name: doc.war) in 319ms

2021-07-01 16:44:22,551 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0208: Stopped subdeployment (runtime-name: adminweb.war) in 340ms

2021-07-01 16:44:22,564 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0028: Stopped deployment ejbca.ear (runtime-name: ejbca.ear) in 352ms

2021-07-01 16:44:22,567 INFO  [org.jboss.as] (MSC service thread 1-4) WFLYSRV0050: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) stopped in 280ms

systemctl status wildfly 不起作用。似乎这种类型的 ejbca 设置无法让我重新启动 ejbca 或 wildfly 服务。

我想知道这不是持久性问题吗?

【问题讨论】:

    标签: azure networking wildfly firewall ejbca


    【解决方案1】:

    您的日志告诉我 WildFly 已关闭。如果您进一步查看日志文件,您应该会看到关闭的某些原因(除非您按 ctrl-c)。 不过,您所遵循的指南相当陈旧,使用的是早已过时的 EJBCA 版本。我建议使用最新版本的 EJBCA 而不是 https://www.ejbca.org/

    【讨论】:

    • 感谢您的回答。是的,我重新启动了虚拟机,我只是不明白为什么在安装完成后我会关闭端口。我尝试了不同的 linux 发行版、ejbca、wildfly 版本。 ejbca 是否与 azure VM 兼容?我已经在 azure 网络/防火墙上打开了 ejbca 端口,并且还通过虚拟机本身上的 ufw 打开了端口。
    • "systemctl restart wildfly" 在这里不起作用。它是否与 ejbca 6 相关联?
    • 是的,EJBCA 与 Azure 兼容。你可以在 Azure 市场中找到 EJBCA。开始免费的 Azure EJBCA Enterprise 试用版也许是个好主意,然后您可以查看那里的配置。您可以从 ejbca.org 找到指向 Azure 的链接。 ejbca.org/download
    • 好的,我会的。同时,我能够在我的个人 virtualbox VM 上快速安装 ejbca 7。它运行良好(除了我的 p12 密码未被识别),但它适用于公共部分。然后我刚刚重新启动了我的虚拟机,现在没有任何效果。我如何在快速安装中重新加载 Wildfly 服务,因为我没有看到 Wildfly 正在运行。在正常安装中,我能够轻松地重新加载服务
    • 我相信它没有在快速安装中作为服务安装。首先,您切换到 wildfly 目录并使用 bin/standalone.sh 运行。
    猜你喜欢
    • 2018-08-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-29
    • 2020-07-13
    • 2021-08-03
    • 1970-01-01
    • 2016-03-24
    相关资源
    最近更新 更多