嗨,我正在尝试在 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 中(我已经在不同的文件夹中安装和卸载了几次试图解决它,是的,我在每次安装之前都删除了剩余的文件)。
可以肯定的是,我提到了我在每次安装后完成的步骤:
jboss-eap.conf 已成功编辑。jboss 的用户和路径已更改为正确的。
jboss-eap.conf 复制到 /etc/default
jboss-eap-rhel 复制到 /etc/init.d
我也使用打开它
./standalone.sh -c 独立-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.
并且不起作用(因为该服务仍未激活)。
¿如何启动服务?