es (elasticsearch) installed IK Chinese word breaker

 

IK archive Download: https://github.com/medcl/elasticsearch-analysis-ik/releases/tag/v6.6.2 , you need to download the corresponding version

 

 

 

2. After the download is complete, upload to the server, then unzip it into elasticsearch the plugins folder, and then rename the analysis-ik

Alternatively, you can unpack after elsewhere, then rename the following code, each person may be different, according to their actual

mv elasticsearch-analysis-I-6.6.2 elasticsearch-6.6.0 / plugins / analysis-I

  Here to note level, the level of this IKAnalyzer.cfg.xml files and plugins folder is this

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

  

Then close elasticsearch

 

[root@localhost config]# 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 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -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=data -XX: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
root      49738   3679  0 18:37 pts/0    00:00:00 grep --color=auto elast

  Then kill the process

kill 49202

  

Then switch to the ordinary account (using the root account will fail to start) restarts in elasticsearch file directory bin folder

nohup ./elasticsearch &

  

 

Guess you like

Origin www.cnblogs.com/pxblog/p/12633189.html