采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
刚才启动我CentOS的时候发现,Elastic Search忽然用不了,昨天还好好的…现在用户登录就报
Elastic Search HTTPConnectionPool(host='127.0.0.1', port=9200): Read timed out
这个不是因为Elastic Search服务没启动。去重新生成索引就就好了
[root@shiyanlou zanhu]# pipenv shellLoading .env environment variables…Launching subshell in virtual environment… . /root/.local/share/virtualenvs/zanhu-qCBWC76o/bin/activate[root@shiyanlou zanhu]# . /root/.local/share/virtualenvs/zanhu-qCBWC76o/bin/activate(zanhu) [root@shiyanlou zanhu]# python manage.py rebuild_index(zanhu) [root@shiyanlou zanhu]#
[root@shiyanlou zanhu]# pipenv shell
Loading .env environment variables…
Launching subshell in virtual environment…
. /root/.local/share/virtualenvs/zanhu-qCBWC76o/bin/activate
[root@shiyanlou zanhu]# . /root/.local/share/virtualenvs/zanhu-qCBWC76o/bin/activate
(zanhu) [root@shiyanlou zanhu]# python manage.py rebuild_index
(zanhu) [root@shiyanlou zanhu]#
什么原因我也暂时没找到,大家可以参考一下 https://stackoverflow.com/questions/25908484/how-to-fix-read-timed-out-in-elasticsearch
登录后可查看更多问答,登录/注册
融合Django高级用法/算法/设计模式/TestCase测试/云计算打造项目
2.6k 15
7.7k 1
2.3k 6
1.7k 4
1.9k 2