1、手动访问mongo
1.1、mongo连接数据库
1.2、mongo插入和查询
db.hmf_test.insert(
{
"aoeId": "1",
"aoeAes": "吴秀梅",
"aoeSm4": "北京xx网络技术有限公司.",
"aoeSm4_a": "测试开发工程师",
"aoeEmail": "hmf@yahoo.com",
"aoePhone": "15652996964",
"aoeIdCard": "110103201206200910",
"aoeOfficerCard": "武水电字第3632734号",
"aoePassport": "BWP018930705",
"aoeGeneralIdCard": "0299233902",
"aoeCreditCard": "6212262502009182455",
"aoeString":"北京市朝阳区立水桥南明天第一城6-901"
})
db.hmf_test.find({})
.projection({})
.sort({_id:-1})
.limit(100)
2、通过kabana访问ES
配置kibana参考:
Elasticsearch7.14.0安装并配置用户名和密码,并使用kibana访问_elasticsearch 7.14.0 安装-****博客
Kibana结合Elasticsearch的使用_kibana集成elasicsearch-****博客
2.1、连接
访问http://10.1.1.196:5601/ ,输入ES的账号密码登录
2.2、ES插入和查询
点击Dev Tools工具,去操作插入和查询
put /autotest/_doc/1(
{
"aoeId": "1", "aoeAes": "xxx", "aoeSm4": "北京xxx网络技术有限公司.", "aoeSm4_a": "测试开发工程师", "aoeEmail": "hmf@yahoo.com", "aoePhone": "15652996964", "aoeIdCard": "110103201206200910", "aoeOfficerCard": "武水电字第3632734号", "aoePassport": "BWP018930705", "aoeGeneralIdCard": "0299233902", "aoeCreditCard": "6212262502009182455", "aoePosition": "北京市朝阳区立水桥南明天第一城6-901"}
#查询
GET /autotest/_search