nohup ./kibana &
关闭防火墙命令
systemctl stop firewalld.service
=================================
Last login: Sun Jul 19 10:25:38 2020 from 192.168.0.100
[root@localhost ~]# cd /home/elksofts/kibana-6.8.0-linux-x86_64/bin
[root@localhost bin]# ps -ef|grep node
root 1831 1765 0 10:27 pts/2 00:00:00 grep --color=auto node
[root@localhost bin]# netstat -tunlp|grep 5601
[root@localhost bin]# nohup ./kibana >dev/null &
----------------------------------------
nohup ./kibana >dev/null &
这个命令好像不行,待研究
----------------------------------------
[1] 1837
[root@localhost bin]# -bash: dev/null: 没有那个文件或目录
[1]+ 退出 1 nohup ./kibana > dev/null
[root@localhost bin]#
[root@localhost bin]# netstat -tunlp|grep 5601
[root@localhost bin]# ps -ef|grep node
root 1841 1765 0 10:30 pts/2 00:00:00 grep --color=auto node
[root@localhost bin]# nohup ./kibana &
----------------------------------------
nohup ./kibana &
最终使用这个命令,后台成功启动
----------------------------------------
[1] 1842
[root@localhost bin]# nohup: 忽略输入并把输出追加到"nohup.out"
[root@localhost bin]# ls
kibana kibana-keystore kibana-plugin nohup.out
[root@localhost bin]# ps -ef|grep node
root 1842 1765 77 10:31 pts/2 00:00:17 ./../node/bin/node --no-warnings --max-http-header-size=65536 ./../src/cli
root 1904 1765 0 10:31 pts/2 00:00:00 grep --color=auto node
[root@localhost bin]# netstat -tunlp|grep 5601
tcp 0 0 192.168.0.101:5601 0.0.0.0:* LISTEN 1842/./../node/bin/
[root@localhost bin]#
# kibana中查询数据
```bash
GET pms_user_index_zz/_search
GET pms_user_index_zz/_search
{
"query": {
"match": {
"f_pu_id": 22
}
}
}
```
https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html
https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-upsert
```
GET talent_index_0629/_search
{
"query": {
"match": {
"f_talent_workyears": 4
}
}
}
```
# 修改-如下修改
***注意:如果只修改了一个字段,那么原有的其他字段都会消失。只保留当前的这次修改。相当于覆盖***
```
POST talent_index_0629/_doc/4289
{
"f_talent_workyears":3
}
--执行结果
{
"_index" : "talent_index_0629",
"_type" : "_doc",
"_id" : "4289",
"_version" : 2,
"result" : "updated",
"_shards" : {
"total" : 2,
"successful" : 1,
"failed" : 0
},
"_seq_no" : 43720,
"_primary_term" : 1
}
GET talent_index_0629/doc/4289
{
"_index" : "talent_index_0629",
"_type" : "doc",
"_id" : "4289",
"_version" : 6,
"_seq_no" : 43724,
"_primary_term" : 1,
"found" : true,
"_source" : {
"f_talent_workyears" : 3
}
}
```
# 修改某个字段值
```
POST talent_index_0629/doc/4290/_update
{
"doc":{
"f_talent_workyears": 44
}
}
--执行结果
{
"_index" : "talent_index_0629",
"_type" : "doc",
"_id" : "4290",
"_version" : 2,
"result" : "updated",
"_shards" : {
"total" : 2,
"successful" : 1,
"failed" : 0
},
"_seq_no" : 43725,
"_primary_term" : 1
}
GET talent_index_0629/_search
{
"query": {
"match": {
"f_talent_workyears": 44
}
}
}
GET talent_index_0629/_search
{
"query": {
"match": {
"f_talent_id": 4290
}
}
}
```
# 修改单个字段异常
```
POST talent_index_0630/doc/344/_update
{
"doc":{
"f_talent_workyears": 6
}
}
{
"_index" : "talent_index_0630",
"_type" : "doc",
"_id" : "344",
"_version" : 8,
"result" : "noop",
"_shards" : {
"total" : 0,
"successful" : 0,
"failed" : 0
}
}
```
## 修改某个字段
```
POST talent_index_0630/doc/195735/_update
{
"doc":{
"f_talent_workyears": 5
}
}
{
"_index" : "talent_index_0630",
"_type" : "doc",
"_id" : "195735",
"_version" : 2,
"result" : "updated",
"_shards" : {
"total" : 2,
"successful" : 1,
"failed" : 0
},
"_seq_no" : 39300,
"_primary_term" : 1
}
```