gpt4 book ai didi

linux - Jboss 7.0 无法在 Red Hat 中启动

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:39:52 26 4
gpt4 key购买 nike

您好,我正在尝试在 Red Hat Enterprise Linux 7 中运行 Jboss EAP 7.0.0,在我需要启动服务之前,安装进展顺利。

 sudo service jboss-eap-rhel start
Redirecting to /bin/systemctl start jboss-eap-rhel.service
Job for jboss-eap-rhel.service failed. See 'systemctl status jboss-eap-rhel.service' and 'journalctl -xn' for details.

到达服务日志后,显示JBoss EAP启动脚本启动失败。

localhost.localdomain systemd 1 : 启动 SYSV 失败:JBoss EAP 启动脚本。

systemctl status jboss-eap-rhel.service
jboss-eap-rhel.service - SYSV: JBoss EAP startup script
Loaded: loaded (/etc/rc.d/init.d/jboss-eap-rhel.sh)
Active: failed (Result: resources) since Wed 2017-05-17 05:35:37 EDT; 6min ago
Process: 16673 ExecStart=/etc/rc.d/init.d/jboss-eap-rhel.sh start (code=exited, status=0/SUCCESS)
Main PID: 6979

May 17 05:35:06 localhost.localdomain systemd[1]: Starting SYSV: JBoss EAP startup script...
May 17 05:35:06 localhost.localdomain jboss-eap-rhel.sh[16673]: Starting jboss-eap: chown: missing operand after ‘/var/run/jboss-eap’
May 17 05:35:06 localhost.localdomain jboss-eap-rhel.sh[16673]: Try 'chown --help' for more information.
May 17 05:35:37 localhost.localdomain jboss-eap-rhel.sh[16673]: jboss-eap started with errors, please see server log for details
May 17 05:35:37 localhost.localdomain jboss-eap-rhel.sh[16673]: [ OK ]
May 17 05:35:37 localhost.localdomain systemd[1]: PID file /var/run/jboss-eap/jboss-eap.pid not readable (yet?) after start.
May 17 05:35:37 localhost.localdomain systemd[1]: Failed to start SYSV: JBoss EAP startup script.
May 17 05:35:37 localhost.localdomain systemd[1]: Unit jboss-eap-rhel.service entered failed state.

我检查了 jboss conf 和 eap-rhel.sh 寻找错误,包括 standalone.xml 和 standalone-full.xml,但一切看起来都正常。

jboss 的文件现在在/usr/share 中(我已经在不同的文件夹中安装和卸载了好几次试图解决它,是的,我在每次安装之前都删除了剩余的文件)。

为了确定,我提到了我在每次安装后完成的步骤:

  1. jboss-eap.conf 已成功编辑。 jboss 的用户和路径已更改为正确的。

  2. jboss-eap.conf 复制到/etc/default

  3. jboss-eap-rhel 复制到/etc/init.d

我也是用

打开的

./standalone.sh -c standalone-full.xml

它抛出这个警告:

03:56:23,735 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 60) WFLYTX00                                                                                                                                                             13: Node identifier property is set to the default value. Please make sure it is                                                                                                                                                              unique.

并且不起作用(因为该服务仍未激活)。

¿如何启动服务?

最佳答案

03:56:23,735 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 60) WFLYTX0013: Node identifier property is set to the default value. Please make sure it unique.

除非您启用了 JTA,否则您不必担心它。您可以在 standalone-full.xml 文件中设置节点标识符的唯一值,例如:

<subsystem xmlns="urn:jboss:domain:transactions:1.4">
<core-environment node-identifier="${jboss.tx.node.id}">
...

关于服务,请验证您遵循的步骤http://www.dmartin.es/2014/07/jboss-eap-6-as-rhel-7-service/

关于linux - Jboss 7.0 无法在 Red Hat 中启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44080672/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com