4

Riak と Web サービスの初心者です

私はriakのファストトラックに従い、サーバー側で入力します

riak start

そしてクライアント側では、私は実行しますcurl -H "Accept: text/plain" http://markson.hk:8093/stats

エラーが発生しました:

curl: (7) couldn't connect to host

アップデート

サーバー側では実際に動作します:

curl -v http://127.0.0.1:8098/ping

response: OK

しかし、私のクライアントマシンでは

curl -v http://116.255.139.151:8098/ping

それは機能せず、戻ります:

bogon:~ yozloy$ curl -v http://116.255.139.151:8098/ping
* About to connect() to 116.255.139.151 port 8098 (#0)
*   Trying 116.255.139.151... Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host

そして、Nginxのウェルカムページが機能します!

4

3 に答える 3

0

これはネットワークの問題だと思います。プロキシまたはリモート VPS サーバーを試すことができます

ping 116.255.139.151
PING 116.255.139.151 (116.255.139.151) 56(84) bytes of data.
64 bytes from 116.255.139.151: icmp_seq=1 ttl=46 time=222 ms
64 bytes from 116.255.139.151: icmp_seq=2 ttl=46 time=223 ms

そして、あなたが使用しているのと同じコマンドをサーバーで実行すると、正しい結果が得られました。

 curl -v http://116.255.139.151:8098/ping
* About to connect() to 116.255.139.151 port 8098 (#0)
*   Trying 116.255.139.151... connected
* Connected to 116.255.139.151 (116.255.139.151) port 8098 (#0)
> GET /ping HTTP/1.1
> User-Agent: curl/7.19.5 (i486-pc-linux-gnu) libcurl/7.19.5 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.15
> Host: 116.255.139.151:8098
> Accept: */*
> 
< HTTP/1.1 200 OK
< Server: MochiWeb/1.1 WebMachine/1.9.0 (participate in the frantic)
< Date: Tue, 22 Nov 2011 07:00:46 GMT
< Content-Type: text/html
< Content-Length: 2
< 
* Connection #0 to host 116.255.139.151 left intact
* Closing connection #0

トラブルシューティングに役立つことを願っています。

于 2011-11-22T07:02:42.680 に答える