clojure-jack-in : error in process filter: open-network-stream: make client process failed: Connecti
clojure-jack-in 启动出错
出错信息如下:
Connecting to Swank on port 65280.. [2 times]
error in process filter: open-network-stream: make client process failed: Connection refused, :name, SLIME Lisp, :buffer, nil, :host, localhost, :service, 65280, :nowait, nil
error in process filter: make client process failed: Connection refused, :name, SLIME Lisp, :buffer, nil, :host, localhost, :service, 65280, :nowait, nil
解决办法如下:
My hostname was set to "localhost" which is why the underlying dns lookup was returning the actual interface, not the loopback. Here's the fix:
localhost:~ amitava$ sudo scutil --set HostName amitava.local amitava:~ amitava$ scutil --get HostName amitava.local amitava:~ amitava$ clj Clojure 1.3.0 user=> (import 'java.net.InetAddress) java.net.InetAddress user=> (InetAddress/getByName "localhost") #<Inet4Address localhost/127.0.0.1> user=>
详细见:
https://github.com/technomancy/swank-clojure/issues/68
版权声明:本文为lyflower原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。