首页 > 所有文章 > 行业 >文章详情

xshell如何获取ip(手机wifi一直在获取ip地址)

时间:2024-02-12 16:57:00 浏览量:305

系统:centos7

jdk:jdk13

elasticsearch:7.3.0

创建操作用户:es

在xshell中查看ip地址

在虚拟机中,查看ip地址

添加如下:

export PATH

export JAVA_HOME=/home/es/elk/jdk_13

export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

export PATH=$PATH:$JAVA_HOME/bin

添加环境变量


[es@localhost ~]$ java -version

java version "13" 2019-09-17

Java(TM) SE Runtime Environment (build 13 33)

Java HotSpot(TM) 64-Bit Server VM (build 13 33, mixed mode, sharing)

[es@localhost ~]$

[es@localhost ~]$ systemctl status firewalld

● firewalld.service - firewalld - dynamic firewall daemon

Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)

Active: inactive (dead)

Docs: man:firewalld(1)

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.3.0-linux-x86_64.tar.gz

tar -zxvf elasticsearch-7.3.0-linux-x86_64.tar.gz

cd elasticsearch-7.3.0

[es@localhost config]$ vim elasticsearch.yml

path.data: /home/es/elk73/data/esdata

path.logs: /home/es/elk73/data/eslogs

cluster.name: my-application

node.name: node-1

network.host: 0.0.0.0

http.port: 9200

cluster.initial_master_nodes: ["node-1"]

http.cors.enabled: true

http.cors.allow-origin: /.*/


修改配置文件elasticsearch.yml

mkdir /home/es/elk73/data/esdata -p

mkdir /home/es/elk73/data/eslogs -p

nohup bin/elasticsearch &

tail -f nohup.out

访问: http://192.168.120.157:9200/


启动成功



分词器放置的目录


config目录下的内容


自定义分词存放位置

[es@localhost config]$ pwd

/home/es/elk73/elasticsearch-7.3.0/plugins/ik/config

[es@localhost config]$ vim IKAnalyzer.cfg.xml

IK Analyzer 扩展配置

custmo/mydic.dic


配置中文分词器