错误:Wildfly已死但pid文件存在

时间:2017-04-07 11:10:42

标签: linux wildfly

当我尝试重新启动wildfly网络服务器时,它不断发出这些错误

 Stopping wildfly: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid |     jobspec ... or kill -l [sigspec]
 /etc/init.d/wildfly: line 142: [: -eq: unary operator expected
 /etc/init.d/wildfly: line 142: [: -eq: unary operator expected
 /etc/init.d/wildfly: line 142: [: -eq: unary operator expected
 /etc/init.d/wildfly: line 142: [: -eq: unary operator expected

当我尝试通过

检查状态时
sudo service wildfly status

输出结果为:

wildfly dead but pid file exists

似乎我需要删除PID文件,以便我可以重新启动它。

1 个答案:

答案 0 :(得分:0)

我必须删除/run/wildfly/wildfly.pid并重新启动服务。对我来说,这是因为系统崩溃了。