简体   繁体   English

Wildfly 服务无法启动

[英]Wildfly Service won't start

I'm trying to install WildFly 17.0.0 on CentOS7.我正在尝试在 CentOS7 上安装 WildFly 17.0.0。 I'm following this page instructions: https://linuxize.com/post/how-to-install-wildfly-on-centos-7/ But, when I get to the point where I should see the service running, it sends the following message:我正在按照此页面说明进行操作: https://linuxize.com/post/how-to-install-wildfly-on-centos-7/但是,当我到达应该看到服务正在运行的地步时,它会发送以下消息:

[root@ opt]# systemctl status wildfly
● wildfly.service - The WildFly Application Server
   Loaded: loaded (/etc/systemd/system/wildfly.service; enabled; vendor preset: disabled)
   Active: inactive (dead)

Oct 14 11:08:49  systemd[1]: Started The WildFly Application Server.

My Java is installed also:我的 Java 也安装了:

[root@ opt]# java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

And I followed all the step several times and is still not working.我遵循了所有步骤几次,但仍然无法正常工作。

I found some blogs saying there is a "descrption" field on the bat file, where you should remove the quotes.我发现一些博客说 bat 文件中有一个“描述”字段,您应该在其中删除引号。 But when I go into the file, the quotes comes already removed and there is comments on the file saying the quotes were already removed.但是当我 go 进入文件时,引号已经被删除,并且文件上有评论说引号已经被删除。

Any idea of what could be happening?知道会发生什么吗?

Thanks in advance for the support.提前感谢您的支持。

Regards问候

I Found the problem.我发现了问题。 There is a file called wildfly.conf where you must add some configuration the page I was following didn't mention.有一个名为 wildfly.conf 的文件,您必须在其中添加一些我关注的页面没有提到的配置。 So you must add the following lines for the wildfly to run:因此,您必须添加以下行以使 wildfly 运行:

    ## Location of JDK 
    JAVA_HOME="/usr/java/jdk1.8.0_66"

    ## Location of WildFly 
    JBOSS_HOME="/opt/wildfly"

    ## The username who should own the process. 
    JBOSS_USER=wildfly

Now it is running.现在它正在运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM