首页 > 代码库 > 阿里云监控客户端无法启动

阿里云监控客户端无法启动

如图报如下错误

[root@004 ~]# /etc/init.d/cloudmonitor startStarting 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 StoppedERROR  | 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: InvalERROR  | 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: InvalERROR  | wrapper  | 2017/08/02 15:04:40 | 910 pid file, /usr/local/cloudmonitor/wrapper/bin/./cloudmonitor.pid, already exists.

解决方法:

原因是pid已存在,无法创建新的pid。删除旧的pid,重启此服务就好了

 

阿里云监控客户端无法启动