Murats-Air:~ murat$ mongod
2020-05-26T14:28:14.858-0400 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2020-05-26T14:28:14.862-0400 W ASIO [main] No TransportLayer configured during NetworkInterface startup
2020-05-26T14:28:14.863-0400 I CONTROL [initandlisten] MongoDB starting : pid=706 port=27017 dbpath=/data/db 64-bit host=Murats-Air.home
2020-05-26T14:28:14.863-0400 I CONTROL [initandlisten] db version v4.2.7
2020-05-26T14:28:14.863-0400 I CONTROL [initandlisten] git version: 51d9fe12b5d19720e72dcd7db0f2f17dd9a19212
2020-05-26T14:28:14.863-0400 I CONTROL [initandlisten] allocator: system
2020-05-26T14:28:14.863-0400 I CONTROL [initandlisten] modules: none
2020-05-26T14:28:14.863-0400 I CONTROL [initandlisten] build environment:
2020-05-26T14:28:14.863-0400 I CONTROL [initandlisten] distarch: x86_64
2020-05-26T14:28:14.863-0400 I CONTROL [initandlisten] target_arch: x86_64
2020-05-26T14:28:14.863-0400 I CONTROL [initandlisten] options: {}
2020-05-26T14:28:14.864-0400 I STORAGE [initandlisten] exception in initAndListen: NonExistentPath: 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., terminating
2020-05-26T14:28:14.865-0400 I NETWORK [initandlisten] shutdown: going to close listening sockets...
2020-05-26T14:28:14.865-0400 I - [initandlisten] Stopping further Flow Control ticket acquisitions.
2020-05-26T14:28:14.865-0400 I CONTROL [initandlisten] now exiting
2020-05-26T14:28:14.865-0400 I CONTROL [initandlisten] shutting down with code:100
Не могу решить проблему. Я пытался убить все процессы mongod, на mongod не было запущенных процессов.
Я попытался создать каталог / data / db, но у меня возникла ошибка, что «это только для чтения». Кто-нибудь может сказать, в чем проблема.