How to insert data to mongodb on centos 7

insert & read data to mongodb > use lanzhou switched to db lanzhou > db.wuwei.save( { a: 1 } ) WriteResult({ "nInserted" : 1 }) > db.wuwei.find() { "_id" : ObjectId("5f0faebe2d6...

How to use the permission model of mongodb

connect to mongodb server without authentication parameter [lwk@qwfys:~]$ mongo --host 192.168.3.88 MongoDB shell version v4.2.8 connecting to: mongodb://192.168.3.88:27017/?com...

2020/07/16 09:10
623
Error: SQLite error on "/var/lib/dnf/history.sqlite": Executing an SQL statement failed

Problems [lwk@qwfys ~]$ dnf list|grep mongodb Error: SQLite error on "/var/lib/dnf/history.sqlite": Executing an SQL statement failed: attempt to write a readonly database [lwk@...

2020/07/15 09:26
1.5K
如何在Centos7中安装mongodb 4.2

[root@xtwj88 ~]# cat /etc/yum.repos.d/mongodb-org-4.2.repo [mongodb-org-4.2] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/x86_...

如何将Linux mint软件源切换为清华大学开源软件源

orial lwk@qwfys:/etc/apt/sources.list.d$ cat official-package-repositories.list Do not edit this file manually, use Software Sources instead. deb http://packages.linuxmint.com u...

2020/07/05 20:24
179
优麒麟桌面环境配置

install $ sudo add-apt-repository ppa:ubuntukylin-members/ukui3.0 $ sudo apt upgrade or $ sudo apt-get install curl $ curl -sL 'https://keyserver.ubuntu.com/pks/lookup?&op=get&s...

2020/07/05 01:01
239
write iso to usb

The image was successfully written. Image: /home/lwk/Downloads/linuxmint-20-cinnamon-64bit.iso USB stick: /dev/sda Starting copy from /home/lwk/Downloads/linuxmint-20-cinnamon-6...

2020/07/01 15:38
93
nacos cluster installation

nacos cluster action create mysql database CREATE SCHEMA nacos_cluster0 DEFAULT CHARACTER SET utf8mb4 ; CREATE SCHEMA nacos_cluster1 DEFAULT CHARACTER SET utf8mb4 ; CREATE SCHEM...

2020/06/29 11:00
100
如何同步 Centos7 服务器上的时间

如何同步Centos7服务器上的时间呢? 第一步,安装时间同步服务客服端 yum install -y ntpdate 第二步,设置时间同步服务器 ntpdate cn.pool.ntp.org...

2020/06/28 14:18
38
202006011105.gist

如何提取kubernetes集群中特定账号的token值 [root@xtwj89 ~]#kubectl -n kube-system describe $(kubectl -n kube-system get secret -n kube-system -o name | grep namespace) | grep to...

2020/06/01 11:05
92
202006011056.gist

命令行方式创建kubernetes账号 kubectl create serviceaccount dashboard-admin-sa kubectl create clusterrolebinding dashboard-admin-sa --clusterrole=cluster-admin --serviceaccount=d...

2020/06/01 10:56
63
202006011052.gist

命令行检测kubernetes-dashboard有没有安装好 curl -k http://127.0.0.1:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/# -H "Authorization: e...

2020/06/01 10:53
78
202006011049.gist

查看哪些端口号被占用 netstat -anp | grep 2181 tcp 0 0 0.0.0.0:2181 0.0.0.0:* LISTEN 9306/java tcp 0 0 172.19.16.12:2181 180.167.57.46:156......

2020/06/01 10:49
61
202006011048.gist

用单行循环命令一次性查询多个主机上的都有哪些java进程在运行 for index in {80..87};do ssh root@inner$index.xtwj.com "echo xtwj$index && jps -l";done......

2020/06/01 10:48
50
如何对docker image重命名

如何对docker image重命名 docker tag local-image:tagname new-repo:tagname docker push new-repo:tagname...

2020/06/01 10:46
125
202006011044.gist

maven命令 mvn clean install -Dmaven.test.skip=true mvn clean install deploy -Dmaven.test.skip=true...

2020/06/01 10:44
44
202006011042.gist

redis 命令行用法 lwk@qwfys:~$ redis-cli -h 192.168.3.75 -a 123456 192.168.3.75:6379> set ACCEPT_GOODS_CRITICAL_TIME 1296000 OK 192.168.3.75:6379> quit lwk@qwfys:~$ redis> SET ke...

2020/06/01 10:42
48

没有更多内容

加载失败,请刷新页面