Ok I managed !
I have created an empty directory ‘test’ in /usr/local/var/mongodb and after I run the command
mongod --dbpath /usr/local/var/mongodb/test --logpath /usr/local/var/mongodb/test/mongo.log --fork
and that works and I can connect normally in mongodb with mongosh, thanks !