es (ElasticSearch) instalado IK chinês separador de palavras

 

IK Baixar arquivo: https://github.com/medcl/elasticsearch-analysis-ik/releases/tag/v6.6.2 , você precisa baixar a versão correspondente

 

 

 

2. Após a conclusão do download, upload para o servidor, em seguida, descompactá-lo em ElasticSearch pasta plugins e renomeie a análise-ik

Alternativamente, você pode descompactar depois em outro lugar, em seguida, renomeie o seguinte código, cada pessoa pode ser diferente, de acordo com sua real

mv ElasticSearch-análise-I-6.6.2 ElasticSearch-6.6.0 / plugins / análise-I

  Aqui o nível de nota, o nível desta IKAnalyzer.cfg.xml arquivos e plugins pasta é este

/plugins/analysis-ik/config/IKAnalyzer.cfg.xml

  

Em seguida, feche ElasticSearch

 

[Root @ localhost configuração] # ps -ef | grep elast
ELAS + 49202 1 1 18:10 pts / 1 00:00:23 /usr/web/java/jdk1.8/bin/java -Xms256m -Xmx256m -XX: + UseConcMarkSweepGC -XX: CMSInitiatingOccupancyFraction = 75 -XX: + UseCMSInitiatingOccupancyOnly - Des.networkaddress.cache.ttl = 60 = 10 -Des.networkaddress.cache.negative.ttl -XX: + AlwaysPreTouch -Xss1m -Djava.awt.headless = verdadeiro -Dfile.encoding = UTF-8 -Djna.nosys = verdadeiro XX: -OmitStackTraceInFastThrow -Dio.netty.noUnsafe = true -Dio.netty.noKeySetOptimization = true -Dio.netty.recycler.maxCapacityPerThread = 0 -Dlog4j.shutdownHookEnabled = false -Dlog4j2.disable.jmx = true -Djava.io. tmpdir = / tmp / ElasticSearch-628240789535257481 -XX: + HeapDumpOnOutOfMemoryError -XX: HeapDumpPath = -XX dados: ErrorFile = logs / hs_err_pid% p.log -XX: + PrintGCDetails -XX: + PrintGCDateStamps -XX: + PrintTenuringDistribution -XX: + PrintGCApplicationStoppedTime -Xloggc: logs / gc.log -XX: + UseGCLogFileRotation XX:NumberOfGCLogFiles = 32 -XX: GCLogFileSize = 64m -Des.path.home = / usr / web / ElasticSearch / ElasticSearch-6.6.0 -Des.path.conf = / usr / web / ElasticSearch / ElasticSearch-6.6.0 / config - Des.distribution.flavor = default -Des.distribution.type = tar -cp /usr/web/elasticsearch/elasticsearch-6.6.0/lib/* org.elasticsearch.bootstrap.Elasticsearch -d
Hongzhi + 49216 49202 0 18:10 pts / 1 00:00:00 /usr/web/elasticsearch/elasticsearch-6.6.0/modules/x-pack-ml/platform/linux-x86_64/bin/controller 
raiz 49738 3679 0 18 : 37 pts / 0 00:00:00 grep --color = auto elast

  Em seguida, matar o processo

matar 49202

  

Então mude para a conta normal (usando a conta root não serão iniciados) reinicia na pasta bin diretório de arquivos ElasticSearch

nohup ./elasticsearch &

  

 

Acho que você gosta

Origin www.cnblogs.com/pxblog/p/12633189.html
Recomendado
Clasificación