Don’t know much about mongodb
The test environment uses the test database
After a period of time, the permissions and data tables of the test database will be automatically cleared
Don’t know where to see the operation log?
Operating environment
os: centos 7.x
mongodb: 2.6
淡淡烟草味2017-05-02 09:26:11
1. Set the profile, and then view the database operation log, for example:
设置:
db.setProfilingLevel(2)
db.getProfilingLevel()
查看:
db.system.profile.find()
2. For important systems, it is recommended to use MongoDB Enterprise Edition. The Enterprise Edition provides complete security audit functions.
For reference.
Love MongoDB, Have fun!
黄舟2017-05-02 09:26:11
You can view the logs. I guess it was hacked by some criminals, just like me
Then I checked the collection of this database and found this
So the online database is very safe It's important!