mongodb忘記密碼怎么解鎖 mongodb創(chuàng)建的數(shù)據(jù)庫默認用戶名密碼多少?
方法如下:使用tt創(chuàng)建數(shù)據(jù)庫,從而創(chuàng)建數(shù)據(jù)庫。如果你什么都不做就離開,這個數(shù)據(jù)庫會被系統(tǒng)刪除。因此,您還應(yīng)該執(zhí)行以下命令:,({,湯姆豬})({,tompig1,,1})。2022-02-10: k8
方法如下:使用tt創(chuàng)建數(shù)據(jù)庫,從而創(chuàng)建數(shù)據(jù)庫。如果你什么都不做就離開,這個數(shù)據(jù)庫會被系統(tǒng)刪除。因此,您還應(yīng)該執(zhí)行以下命令:,({,湯姆豬})({,tompig1,,1})。
2022-02-10: k8s裝了mongo,yaml怎么寫?
vi mongodb.yaml
應(yīng)用程序/v1
部署
·阿斯蒙戈
·蒙戈b
·蒙戈b
replicas:1號
·蒙戈b
·蒙戈b
Nod:k8s-node1 #固定在k8s-node 1節(jié)點上。
·蒙戈db
imag:mongo:4 . 2 . 9
Limits:#資源有限
cpu:2000米
m:8Gi
米
m:8Gi
-nam:mongo _ initdb _ root _ 根
-nam:mongo _ initdb _ root _ password #設(shè)置密碼。
/數(shù)據(jù)/數(shù)據(jù)庫
蒙古卷
蒙戈db-卷
HostPath:/data/導(dǎo)演或創(chuàng)作
-
apiV:v1
服務(wù)
·阿斯蒙戈
·蒙戈b
集群
·蒙戈b
-port:27018
targ:27018