其实 Elasticsearch 是 optional 的,你先检查下 Homestead.yaml 里有没有指定安装:elasticsearch: 6
Homestead《Laravel 5.6 中文文档》
@leo
请问下虚拟机
启动服务
vagrant@homestead:~/Code/laravel-shop$ sudo /usr/share/elasticsearch/bin/elasticsearch-plugin list
sudo: /usr/share/elasticsearch/bin/elasticsearch-plugin: command not found
查看 elastic进程存在
vagrant@homestead:~$ ps aux | grep elastic
vagrant 3054 0.0 0.0 14728 1056 pts/0 S+ 09:32 0:00 grep --color=auto elastic
运行curl
vagrant@homestead:~$ curl http://127.0.0.1:9200/
curl: (7) Failed to connect to 127.0.0.1 port 9200: Connection refused
homestead配置
重启后还是服务无法启动
推荐文章: