当前位置:网站首页>【Mongodb】READ_ ME_ TO_ RECOVER_ YOUR_ Data, the database is deleted maliciously
【Mongodb】READ_ ME_ TO_ RECOVER_ YOUR_ Data, the database is deleted maliciously
2022-06-24 22:44:00 【Gu Niao】
1. Introduce
My personal Baidu cloud server installed MongoDB, Default configuration used ( Port is the default port , There's no password ), Then I forgot about it , Also because I often use the wireless network card to access the Internet ,ip It is often dynamic , The security group of the ECS releases all ip. It is a database running naked on the cloud , A few days later, I found MongoDB Client connection failure , Reconnected MongoDB, The library built is missing , Left a new library :READ_ME_TO_RECOVER_YOUR_DATA, There's only one watch in it :README, The general content is that they were attacked , You need to pay bitcoin to recover .

2. resolvent
I use the method of configuring user name and password to access the server now mongodb database , There are other ways . I access the terminal through the pagoda panel tool , You can also use other shell Tools .
Connect mongodb

Add users and read / write permissions to the database
use hcs-server db.createUser({ user: "guniao", pwd: "123456", roles: [{ role: "readWrite", db: "hcs-server" }] })verification , Output 1 Indicates that the verification is successful
db.auth("guniao","123456")modify mongodb In the configuration file authorization by enabled, And restart

Use Mongodb Compass The visualizer verifies the user and password again , And re import the data


Modify background connection mongodb Of URL Address

Refer to the connection :
https://blog.csdn.net/qq_34241004/article/details/120704586
https://www.freesion.com/article/3431841152/
边栏推荐
猜你喜欢

YGG recent game partners list

糖豆人登录报错解决方案

Leetcode: push domino (domino simulation)

win10或win11打印机无法打印

2022-06-16 work record --js- judge the number of digits in string type digits + judge the number of digits in numeric type digits + limit the text length (display n words at most, exceeding...)

Future development of education industry of e-commerce Express

Fanuc robot_ Introduction to Karel programming (1)

CDN principle

结合源码剖析Oauth2分布式认证与授权的实现流程

ThreadLocal local thread
随机推荐
interrupt、interrupted 、isInterrupted 区别
OSPF basic content
Docker installs MySQL 8.0. Detailed steps
Panorama of enterprise power in China SSD industry
磁盘的结构
Data center basic network platform
Docker 安装 Redis-5.0.12,详细步骤
AQS source code analysis
find your present (2)
MySQL + JSON = King fried!!
Problem solving - nested lists
开发规范~参数校验异常、异常返回提示切面
img2pdf
软件设计的七大原则
糖豆人登录报错解决方案
堆內存分配的並發問題
[ingénierie logicielle] points clés à la fin de la période
Main steps of system test
[Software Engineering] key points at the end of the period
[QT] QT event handling