redislive启动过程报错

渺渺星辰 发布于 2016/10/12 16:53
阅读 131
收藏 0

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
}

}



3.但是在启动的时候报错: ./redis-monitor.py --duration 1200

报错内容为:

Traceback (most recent call last):
  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


为什么会提示ValueError错误呢?


求大神们指导!!!!!!!!!

加载中
0
渺渺星辰
渺渺星辰

配置文件出现错误:

"RedisServers":

{
  "server": "127.0.0.1",
  "port" : 6379
},

最后一个逗号不应该存在。

返回顶部
顶部