使用 ElasticSearch 实现全文搜索(在管理后台->配置管理进行设置)
本网站使用的搜索引擎
docker pull truthhun/elasticsearch:6.2.4.ik
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
docker pull itshujia/elasticsearch:6.2.4.ik
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
镜像加速
vim /etc/docker/daemon.json
{
"registry-mirrors": [
"https://mirror.gcr.io",
"https://docker.registry.cyou",
"https://docker-cf.registry.cyou",
"https://dockercf.jsdelivr.fyi",
"https://docker.jsdelivr.fyi",
"https://dockertest.jsdelivr.fyi",
"https://mirror.aliyuncs.com",
"https://dockerproxy.com",
"https://mirror.baidubce.com",
"https://docker.m.daocloud.io",
"https://docker.nju.edu.cn",
"https://docker.mirrors.sjtug.sjtu.edu.cn"
]
}
sudo systemctl daemon-reload
sudo systemctl restart docker