i check the mongodb.conf to see where the log files from mongodb is saved.
The path is → logpath=/var/log/mongodb/mongodb.log

But in this path is not a file like mongodb.log. There are only a file mongod.lock, and in this file is only the number 6965. i think it is a processID.

And how can i check that mongod is up and accepting connections?
With service mongodb status, i can see the Status Active: active (running).

I have an external server with ubuntu 20.04. and i use Visual Studio Code to connect over the Terminal to the Server. Should i use the same port number, which i use to connect with ubuntu Server, or has nothing to do with it?