Cannot connect to Couchbase Server on Windows machine at localhost 8091

时间:2017-08-04 12:32:05

标签: sockets couchbase windows-firewall mcafee

Need help to resolve and connect to couchbase server.

I have installed couchbase server community edition. Post installation I tried to access the server on port 8091. But no luck, browser complaining connection refused.

Tech Details

couchbase-server-community_4.5.1-windows_amd64

Fiddler Tracking

Request

GET http://localhost:8091/ HTTP/1.1

Host: localhost:8091

Proxy-Connection: keep-alive

Upgrade-Insecure-Requests: 1

User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8

Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.8

Response

HTTP/1.1 502 Fiddler - Connection Failed

Date: Fri, 04 Aug 2017 12:12:51 GMT

Content-Type: text/html; charset=UTF-8

Connection: close Cache-Control: no-cache, must-revalidate Timestamp: 17:42:51.523

[Fiddler] The connection to 'localhost' failed.
Error: ConnectionRefused (0x274d).
System.Net.Sockets.SocketException No connection could be made because the target machine actively refused it [::1]:8091

Control Panel Services status which reflect Couchbase Server started.

enter image description here

Telnet Status enter image description here

1 个答案:

答案 0 :(得分:0)

问题在于McAfee使用了couchbase服务器的默认端口。

<强>解决方案

  • 自定义沙发基地安装以使用用户定义的端口。
  • 使用自定义端口而不是8091更新了etc \ couchbase \ static_config - &gt; 9000
  • 通过couchdb \ default.d \ capi.ini 8092上面的上述修改的Couch API端口 - &gt; 9001
  • 删除了var \ lib \ couchbase \ config \ config.dat
  • 启动Couchbase服务。

<强>解决

    现在可以访问
  • http://localhost:9000/
  • couchbase日志也证实了同样的情况。
    • [couchdb:info,2017-08-11T14:24:25.815 + 05:30,couchdb_ns_1 @ 127.0.0.1:cb_couch_sup&lt; 0.95.0&gt;:couch_log:info:41] Apache CouchDB已经开始{{3} }