質問
Windows環境にてElasticsearchを起動し、
curl -XGET http://localhost:9200/
でアクセスすると下記が復帰します。
<HTML><HEAD> <TITLE>Redirect</TITLE> </HEAD> <BODY> <FONT face="Helvetica"> <big><strong></strong></big><BR> </FONT> <blockquote> <TABLE border=0 cellPadding=1 width="80%"> <TR><TD> <FONT face="Helvetica"> <big>Redirect (authentication_redirect_to_virtual_host)</big> <BR> <BR> </FONT> </TD></TR> <TR><TD> <FONT face="Helvetica"> You are being redirected to the authentication virtual host. </FONT> </TD></TR> <TR><TD> <FONT face="Helvetica"> </FONT> </TD></TR> <TR><TD> <FONT face="Helvetica" SIZE=2> <BR> </FONT> </TD></TR> </TABLE> </blockquote> </FONT> </BODY></HTML>
レスポンスの期待値は下記です。
{ "status" : 200, "name" : "Captain America", "version" : { "number" : "1.2.1", "build_hash" : "c82387 ...[中略]... 272", "build_timestamp" : "2014-06-22T12:49:13Z", "build_snapshot" : false, "lucene_version" : "4.8" }, "tagline" : "You Know, for Search" }
なぜ正常に応答しないのでしょうか?
教えていただけると助かります。
よろしくお願いいたします。
環境
cURL
https://curl.haxx.se/download.htmlからダウンロード後、
環境変数にパスを指定。
C:\Windows\system32>curl -V curl 7.50.2 (i386-pc-win32) libcurl/7.50.2 WinSSL zlib/1.2.8 Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz
Elasticsearch
https://www.elastic.co/jp/downloads/elasticsearchからダウンロード後、zipを解凍。
その後、elasticsearch.batを実行
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/09/16 04:49