1.系统环境:
ubutu12.04 redis 3.0 python 2.7.3 tornado-4.4.2 redis-2.10.5 python-dateutil-2.5.3
2. redislive 配置文件:
{
"RedisServers":
[
{
"server": "127.0.0.1",
"port" : 6379
},
],
"DataStoreType" : "redis",
"RedisStatsServer":
{
"server" : "127.0.0.1",
"port" : 6379
}
}
<p>
<br>
</p>
<p>
3.但是在启动的时候报错: ./redis-monitor.py --duration 1200
</p>
<p>
报错内容为:
</p>
<p>
Traceback (most recent call last):<br>
File "./redis-monitor.py", line 297, in <module>
monitor.run(duration)
File "./redis-monitor.py", line 247, in run
redis_servers = settings.get_redis_servers()
File "/usr/local/src/redislive/src/api/util/settings.py", line 14, in get_redis_servers
config = get_settings()
File "/usr/local/src/redislive/src/api/util/settings.py", line 10, in get_settings
return json.load(config)
File "/usr/lib/python2.7/json/init.py", line 278, in load
**kw)
File "/usr/lib/python2.7/json/init.py", line 326, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
求大神们指导!!!!!!!!!
配置文件出现错误:
"RedisServers":
[
{
"server":"127.0.0.1",
"port":6379
},
最后一个逗号不应该存在。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。