打包好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=我是中国人