{"action":"created","issue":{"url":"https://api.github.com/repos/CNSRE/ABTestingGateway/issues/70","repository_url":"https://api.github.com/repos/CNSRE/ABTestingGateway","labels_url":"https://api.github.com/repos/CNSRE/ABTestingGateway/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/CNSRE/ABTestingGateway/issues/70/comments","events_url":"https://api.github.com/repos/CNSRE/ABTestingGateway/issues/70/events","html_url":"https://github.com/CNSRE/ABTestingGateway/issues/70","id":224673728,"number":70,"title":"redis连接被拒绝","user":{"login":"lihuibo128","id":7878227,"avatar_url":"https://avatars1.githubusercontent.com/u/7878227?v=3","gravatar_id":"","url":"https://api.github.com/users/lihuibo128","html_url":"https://github.com/lihuibo128","followers_url":"https://api.github.com/users/lihuibo128/followers","following_url":"https://api.github.com/users/lihuibo128/following{/other_user}","gists_url":"https://api.github.com/users/lihuibo128/gists{/gist_id}","starred_url":"https://api.github.com/users/lihuibo128/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lihuibo128/subscriptions","organizations_url":"https://api.github.com/users/lihuibo128/orgs","repos_url":"https://api.github.com/users/lihuibo128/repos","events_url":"https://api.github.com/users/lihuibo128/events{/privacy}","received_events_url":"https://api.github.com/users/lihuibo128/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-27T05:28:35Z","updated_at":"2017-04-27T13:57:55Z","closed_at":null,"body":"在本机指定 set $redis_host '127.0.0.1;  能够连接redis并在redis中看见创建的相应的ab:policies:*\r\n但是将127.0.0.1修改为另一台redis机器，则在访问的时候会报错：\r\n[error] 1718#0: *768 connect() to unix:/var/run/redis.sock failed (111: Connection refused), client: 10.1.48.196, server: api.weibo.cn, request: \"GET / HTTP/1.1\", host: \"10.1.48.195:8030\"\r\n请问一下有碰到过这样的问题吗？ （确定另一台redis可以在当前机器上连接）\r\n"},"comment":{"url":"https://api.github.com/repos/CNSRE/ABTestingGateway/issues/comments/297720961","html_url":"https://github.com/CNSRE/ABTestingGateway/issues/70#issuecomment-297720961","issue_url":"https://api.github.com/repos/CNSRE/ABTestingGateway/issues/70","id":297720961,"user":{"login":"BG2BKK","id":863361,"avatar_url":"https://avatars1.githubusercontent.com/u/863361?v=3","gravatar_id":"","url":"https://api.github.com/users/BG2BKK","html_url":"https://github.com/BG2BKK","followers_url":"https://api.github.com/users/BG2BKK/followers","following_url":"https://api.github.com/users/BG2BKK/following{/other_user}","gists_url":"https://api.github.com/users/BG2BKK/gists{/gist_id}","starred_url":"https://api.github.com/users/BG2BKK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BG2BKK/subscriptions","organizations_url":"https://api.github.com/users/BG2BKK/orgs","repos_url":"https://api.github.com/users/BG2BKK/repos","events_url":"https://api.github.com/users/BG2BKK/events{/privacy}","received_events_url":"https://api.github.com/users/BG2BKK/received_events","type":"User","site_admin":false},"created_at":"2017-04-27T13:57:55Z","updated_at":"2017-04-27T13:57:55Z","body":"这里的逻辑应该是，优先连接本地unix，一般而言这个性能比本地tcp快，比远程tcp快；如果连接不上unix domain socket，就去连接redis_host:redis_port，所以连接到远程redis了。"}}
{"actor":{"display_login":"BG2BKK"}}