sudo systemctl restart mongodb # it will restarts running mongodb server
sudo systemctl restart mongod # @Zenonymous
sudo systemctl restart mongod