使用 ElasticSearch 实现全文搜索(在管理后台->配置管理进行设置)

本网站使用的搜索引擎

  1. docker pull truthhun/elasticsearch:6.2.4.ik
  2. docker run --name elasticsearch -d -e ES_JAVA_OPTS="-Xms1024m -Xmx1024m" -e "discovery.type=single-node" -p 9200:9200 -p 9300:9300 truthhun/elasticsearch:6.2.4.ik
  3. docker pull itshujia/elasticsearch:6.2.4.ik
  4. docker run --name elasticsearch -d -e ES_JAVA_OPTS="-Xms1024m -Xmx1024m" -e "discovery.type=single-node" -p 9200:9200 -p 9300:9300 itshujia/elasticsearch:6.2.4.ik

镜像加速

  1. vim /etc/docker/daemon.json
  2. {
  3. "registry-mirrors": [
  4. "https://mirror.gcr.io",
  5. "https://docker.registry.cyou",
  6. "https://docker-cf.registry.cyou",
  7. "https://dockercf.jsdelivr.fyi",
  8. "https://docker.jsdelivr.fyi",
  9. "https://dockertest.jsdelivr.fyi",
  10. "https://mirror.aliyuncs.com",
  11. "https://dockerproxy.com",
  12. "https://mirror.baidubce.com",
  13. "https://docker.m.daocloud.io",
  14. "https://docker.nju.edu.cn",
  15. "https://docker.mirrors.sjtug.sjtu.edu.cn"
  16. ]
  17. }
  18. sudo systemctl daemon-reload
  19. sudo systemctl restart docker