查找起因
感觉是被黑了
看了一眼数据库给我整笑了
内容是
All your data is a backed up. You must pay 0.05 BTC to 1Kz6v4B5CawcnL8jrUvHsvzQv5Yq4fbsSv 48 hours for recover it. After 48 hours expiration we will leaked and exposed all your data. In case of refusal to pay, we will contact the General Data Protection Regulation, GDPR and notify them that you store user data in an open form and is not safe. Under the rules of the law, you face a heavy fine or arrest and your base dump will be dropped from our server! You can buy bitcoin here, does not take much time to buy https://localbitcoins.com or https://buy.moonpay.io/ After paying write to me in the mail with your DB IP: rambler+14ebs@onionmail.org and/or mariadb@mailnesia.com and you will receive a link to download your database dump.
翻译成人话就是转我 0.05BTC(约 16103 人民币)就给你复原,48 小时不给我转,我就黑你服务器
我必定是不能转的,外面都是测试数据,没有明码
解决办法
要设置个明码,而后端口号不能用 27017,太容易被扫到了
设置明码
use admin
db.createUser({user:"yonghuming",pwd:"mima",roles:["root"]})
明码尽量简单一点,而后查看明码
show users
找到 MongoDB 装置目录,关上 mongod.cfg 文件,找到以下这句:
#security:
批改为:
security:
authorization: enabled
减少权限验证就好了