分布式笔记

打包好jar,上传后进入目录,上传至upload
cd /upload
ls
nohup java -jar eureka-registry-server-9000.jar &

查看日志
文件—->连接,新开一个页面
tail -f 日志名称
例如:
进入路径
tail -f nohup.out

检查最后1000条
tail -1000 日志名称

一个jar包发布后,要更改信息,重新发布,
ps -ef|grep java

kill -9 进程id

这里写图片描述

搜索引擎elasticsearch
集群健康:
http://localhost:9200/_cat/health?v

集群的节点列表
http://localhost:9200/_cat/indices?v

http://localhost:9200/user?pretty

{
“user” : {
“aliases” : { },
“mappings” : {
“userinfo” : {
“properties” : {
“age” : {
“type” : “long”
},
“id” : {
“type” : “long”
},
“realName” : {
“type” : “string”
},
“username” : {
“type” : “string”
}
}
}
},
“settings” : {
“index” : {
“refresh_interval” : “1s”,
“number_of_shards” : “5”,
“creation_date” : “1514344219663”,
“store” : {
“type” : “fs”
},
“number_of_replicas” : “1”,
“uuid” : “F6orBKpSRVqyR-qo89Faew”,
“version” : {
“created” : “2040699”
}
}
},
“warmers” : { }
}
}

默认是:
http://localhost:9200/user/_analyze?analyzer=standard&pretty=true&text=我是中国人

Ik分词
http://localhost:9200/user/_analyze?analyzer=ik&pretty=true&text=我是中国人

http://localhost:9200/_plugin/head/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值