如图报如下错误
[[email protected]004 ~]# /etc/init.d/cloudmonitor start Starting cloudmonitor... Waiting for cloudmonitor............................................................................................................... WARNING: cloudmonitor may have failed to start.
查看日志发现
DEBUG | wrapperp | 2017/03/11 16:55:25 | Closing backend socket. STATUS | wrapper | 2017/03/11 16:55:25 | JVM process is gone. DEBUG | wrapper | 2017/03/11 16:55:25 | JVM process exited with a code of 1, setting the wrapper exit code to 1. STATUS | wrapper | 2017/03/11 16:55:25 | JVM exited after being requested to terminate. STATUS | wrapper | 2017/03/11 16:55:25 | <-- Wrapper Stopped ERROR | wrapper | 2017/07/31 14:26:04 | 922 pid file, /usr/local/cloudmonitor/wrapper/bin/./cloudmonitor.pid, already exists. FATAL | wrapper | 2017/07/31 14:26:04 | ERROR: Could not write pid file /usr/local/cloudmonitor/wrapper/bin/./cloudmonitor.pid: Inval ERROR | wrapper | 2017/08/02 08:43:31 | 916 pid file, /usr/local/cloudmonitor/wrapper/bin/./cloudmonitor.pid, already exists. FATAL | wrapper | 2017/08/02 08:43:31 | ERROR: Could not write pid file /usr/local/cloudmonitor/wrapper/bin/./cloudmonitor.pid: Inval ERROR | wrapper | 2017/08/02 15:04:40 | 910 pid file, /usr/local/cloudmonitor/wrapper/bin/./cloudmonitor.pid, already exists.
解决方法:
原因是pid已存在,无法创建新的pid。删除旧的pid,重启此服务就好了
时间: 2024-11-05 13:50:57