当我尝试将我的独立实例升级到新版本时,我经常遇到这个问题,手动创建一个 pid 文件很容易解决。但是此时安装新版本 0.14.0,我已经完成了我所知道的一切,即使是全新安装,这个“步骤”也不起作用。也许新的更新应该可以通过 yum update 命令获得。
[root@~]# /etc/init.d/contextBroker start
Starting...
contextBroker is stopped
Starting contextBroker... cat: /var/log/contextBroker/contextBroker.pid: No such file or directory
pidfile not found [FAILED]
当我在 FG(contextBroker -fg) 中运行它时,它工作正常,这就是我用来做它的方式。
这是我的curl localhost:1026/version
输出:
<orion>
<version>0.14.0</version>
<uptime>0 d, 0 h, 1 m, 59 s</uptime>
<git_hash>5e3d210e4b15fa9ebbfa07c93dd41f8b41697d0e</git_hash>
<compile_time>nodate</compile_time>
<compiled_by>fermin</compiled_by>
<compiled_in>centollo</compiled_in>
</orion>
令人上瘾的是,这是我的 MD5 校验和输出:
[root@~]# md5sum /usr/bin/contextBroker
d3f24c4670a9d25a22c8877c3cdcc2b4 /usr/bin/contextBroker
我该如何解决?