2017-05-15 1 views
0

내 로컬 컴퓨터 외부에서 코드를 실행할 때마다 연결 오류가 발생하여 일주일 동안 괴롭혀 왔습니다.clojure carmine redis 연결 오류

연결 오류는 carmine이 내가하는 일과 상관없이 로컬 호스트에 연결하기 때문에 발생합니다. 여기에 REPL 세션에서 전체 출력은 내 NS store.core에서, 어떤 require[taoensso.carmine :as redis] :

(def conn 
    {:pool {} 
    :spec {:url "redis://redistogo:[password]@chubb.redistogo.com:9836/"}}) 
#'store.core/conn 

store.core=> (redis/wcar conn (redis/hget 1 2)) 
java.net.ConnectException: Connection refused (Connection refused) 
clojure.lang.ExceptionInfo: Carmine connection error 

내가 잘못 뭐하는 거지

store.core=> (redis/wcar conn (redis/hget 1 2)) 
"3" 
^ this is now connecting to my local redis, despite `conn` pointing to redistogo. 

[다른 터미널의 지역 레디 스를 가능]? 이 사용법은 carmine.clj#L28과 똑같습니다. 대신 URI :

답변

0

카민의 저자 답변

당신은 가능성과 시도 할 수 URL을?

source

FML