在 RHEL 7 上将 JBoss EAP 6.x 配置为服务时出现的问题

在 RHEL 7 上将 JBoss EAP 6.x 配置为服务时出现的问题

我将 RHEL6 更新到 RHEL7.7。但我还是得用Jboss EAP6.4.22一段时间。更新 RHEL7 后,我在将 Jboss 作为服务启动时遇到问题。我用谷歌搜索过,但到目前为止还没有找到任何有用的信息。

以下是我的情况和我所做的事情:

Jboss EAP 6安装完毕(RPM文本安装)后,有该文件/etc/init.d/jbossas

我将此作为服务启用chkconfig jbossas on。然后我创建一个名为的文件/usr/lib/systemd/system/eap6-jbossas-standalone.service,如下所示:

[Unit]
Description=JBoss EAP Systemctl script
After=NetworkManager.service

[Service]
Type=forking
ExecStart=/etc/init.d/jbossas start
ExecStop=/etc/init.d/jbossas stop
PIDFile=/var/run/jbossas/jbossas-standalone.pid

我用 启动 jboss systemctl start eap6-jbossas-standalone。 jboss可以启动但光标不返回。我必须使用 ctrl+c 来获取光标。

然后我尝试使用“systemctl stop eap6-jbossas-standalone”来停止jboss,但无法停止jboss。当我检查其状态时,systemctl status eap6-jbossas-standalone -l我收到以下消息:...

# systemctl status eap6-jbossas-standalone -l
● eap6-jbossas-standalone.service - JBoss EAP Systemctl script
   Loaded: loaded (/usr/lib/systemd/system/eap6-jbossas-standalone.service; static; vendor preset: disabled)
   Active: inactive (dead)

Aug 28 10:04:59 s001ap21-test-n.ad001.proactiv.grp systemd[1]: Failed to start JBoss EAP Systemctl script.
Aug 28 10:04:59 s001ap21-test-n.ad001.proactiv.grp systemd[1]: Unit eap6-jbossas-standalone.service entered failed state.
Aug 28 10:04:59 s001ap21-test-n.ad001.proactiv.grp systemd[1]: eap6-jbossas-standalone.service failed.
Aug 28 10:15:24 s001ap21-test-n.ad001.proactiv.grp systemd[1]: Starting JBoss EAP Systemctl script...
Aug 28 10:15:24 s001ap21-test-n.ad001.proactiv.grp runuser[15400]: pam_unix(runuser:session): session opened for user jboss by (uid=0)
Aug 28 10:15:24 s001ap21-test-n.ad001.proactiv.grp runuser[15400]: pam_unix(runuser:session): session closed for user jboss
Aug 28 10:15:24 s001ap21-test-n.ad001.proactiv.grp runuser[15403]: pam_unix(runuser:session): session opened for user jboss by (uid=0)
Aug 28 10:15:24 s001ap21-test-n.ad001.proactiv.grp runuser[15403]: pam_unix(runuser:session): session closed for user jboss
Aug 28 10:15:24 s001ap21-test-n.ad001.proactiv.grp jbossas[15384]: Starting jbossas: runuser: warning: cannot change directory to /opt/rh/eap7/root/usr/share/wildfly: No such file or directory
Aug 28 10:15:52 s001ap21-test-n.ad001.proactiv.grp systemd[1]: Stopped JBoss EAP Systemctl script.

可能是什么原因?

相关内容