• 09-05-2025, 23:37:21
    #1
    ps aux | grep mongod
    root 3080 0.0 0.0 6432 720 pts/0 S+ 19:20 0:00 grep --color=auto mongod
    root@ubuntu:~# systemctl status mongod
    ● mongod.service - MongoDB Database Server
    Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Fri 2025-05-09 19:11:49 UTC; 8min ago
    Docs: https://docs.mongodb.org/manual
    Main PID: 2494 (code=exited, status=14)


    {"t":{"$date":"2025-05-09T19:03:43.653+00:00"},"s":"I", "c":"CONTROL", "id":8423404, "ctx":"initandlisten","msg":"mongod shutdown complete","attr":{"Summary of time elapsed":{"Statistics":{"Enter terminal shutdown":"0 ms","Step down the replication coordinator for shutdown":"2 ms","Time spent in quiesce mode":"0 ms","Shut down FLE Crud subsystem":"0 ms","Shut down MirrorMaestro":"0 ms","Shut down WaitForMajorityService":"0 ms","Shut down the global connection pool":"0 ms","Shut down the flow control ticket holder":"0 ms","Shut down the replica set monitor":"0 ms","Shut down the migration util executor":"0 ms","Shut down the transport layer":"0 ms","Shut down the TTL monitor":"0 ms","Shut down expired pre-images and documents removers":"0 ms","Wait for the oplog cap maintainer thread to stop":"0 ms","Shut down full-time data capture":"0 ms","Shut down online certificate status protocol manager":"0 ms","shutdownTask total elapsed time":"5 ms"}}}}

    Data directory /data/db not found. Create the missing directory or specify another path using (1) the --dbpath command line option, or (2) by adding the 'storage.dbPath' option in the configuration file."

    Hata hakkında yardımcı olabilir misiniz?
  • 09-05-2025, 23:46:05
    #2
    /data/db adresinde klasör var mı var ise yetkisi var mı?
  • 09-05-2025, 23:47:06
    #3
    sudo rm -f /tmp/mongodb-27017.sock
    sudo systemctl start mongod

    bu şekilde çözdüm hocam