2016-03-08 66 views
1

我recenetly安裝elasticsearch捆綁和我的文檔中配置它像: fos_elastica.yml無法連接到主機,Elasticsearch向下?

fos_elastica: 
clients: 
    default: { host: localhost, port: 9200 } 
indexes: 
    Leimen: 
     client: default 
     types: 
      Article: 
       mappings: 
        id: 
         type: integer 
        date: ~ 
        title: ~ 
        author: ~ 
        content: ~ 
        email: ~ 
       persistence: 
        driver: orm 
        model: Leimen\SiteBundle\Entity\Article 
        finder: ~ 
        provider: ~ 
        listener: ~ 

當我運行fos:elastica:populate 我得到這個錯誤 [Elastica\Exception\Connection\HttpException] Couldn't connect to host, Elasticsearch down? 任何人都可以幫我嗎?

+0

您確定elasticsearch服務器正在運行? –

+0

我怎麼知道?當我用elastic_port運行時沒有錯誤! – leimen57

+0

你在哪個系統上工作? Linux的/ MAC /窗口? –

回答