简体   繁体   中英

Elastic Search on Custom Port Number

I have tried by changing default port of elastic search by changing http.port no. But is not worked out. I am using php elastic library.

Due to security reason default port on my website is block.

Can any one suggest how i can proceed to run elastic search on my server.

Thank You.

Did you try connecting via terminal ?

curl -XGET 'http://localhost:8080/_count?pretty' -d '
{
    "query": {
        "match_all": {}
    }
}'

Replace your port instead of 8080. make sure you have installed curl in your system

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM