1. 程式人生 > >elasticsearch 連線錯誤

elasticsearch 連線錯誤

 控制檯列印資訊:

 elasticsearch.exceptions.ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x7f395c3eac50>: Failed to establish a new connection: [Errno 111] Connection refused) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7f395c3eac50>: Failed to establish a new connection: [Errno 111] Connection refused)

這個報錯是由於  elasticsearch 連線錯誤,檢查一下有沒有開啟elasticsearch服務

將elasticsearch啟動,再次執行就不會出錯了