Thank you for your reply.
The output of mongod --version is this:
db version v6.0.1
Build Info: {
"version": "6.0.1",
"gitVersion": "32f0f9c88dc44a2c8073a5bd47cf779d4bfdee6b",
"modules": [],
"allocator": "system",
"environment": {
"distarch": "aarch64",
"target_arch": "aarch64"
}
}
I used kill-port to kill the process on port 27017 and this is the result:
Could not kill process on port 27017. No process running on port.
And by the way I don’t know which file is locked and the file /tmp/mongodb-27017.sock does not exist on my mac.