나는 달리고 있다 Linux centos-002 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
. 공식 가이드에 따라 최신 MongoDB를 설치했습니다(설치 섹션 이후의 단계를 따르지는 않았지만). 내 mongod 서비스가 시작되지 않고 로그에서 다음을 찾습니다.
2020-02-18T08:55:32.762+0000 I CONTROL [main] ***** SERVER RESTARTED *****
2020-02-18T08:55:32.768+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2020-02-18T08:55:32.778+0000 I CONTROL [initandlisten] MongoDB starting : pid=65692 port=27017 dbpath=/var/lib/mongo 64-bit host=centos
2020-02-18T08:55:32.778+0000 I CONTROL [initandlisten] db version v4.2.3
2020-02-18T08:55:32.778+0000 I CONTROL [initandlisten] git version: 6874650b362138df74be53d366bbefc321ea32d4
2020-02-18T08:55:32.778+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
2020-02-18T08:55:32.778+0000 I CONTROL [initandlisten] allocator: tcmalloc
2020-02-18T08:55:32.778+0000 I CONTROL [initandlisten] modules: none
2020-02-18T08:55:32.778+0000 I CONTROL [initandlisten] build environment:
2020-02-18T08:55:32.778+0000 I CONTROL [initandlisten] distmod: rhel70
2020-02-18T08:55:32.778+0000 I CONTROL [initandlisten] distarch: x86_64
2020-02-18T08:55:32.778+0000 I CONTROL [initandlisten] target_arch: x86_64
2020-02-18T08:55:32.778+0000 I CONTROL [initandlisten] options: { config: "/etc/mongod.conf", net: { bindIp: "127.0.0.1", port: 27017 }, processManagement: { fork: true, pidFilePath: "/var/run/mongodb/mongod.pid", timeZoneInfo: "/usr/$
2020-02-18T08:55:32.778+0000 E NETWORK [initandlisten] Failed to unlink socket file /tmp/mongodb-27017.sock Operation not permitted
2020-02-18T08:55:32.778+0000 F - [initandlisten] Fatal Assertion 40486 at src/mongo/transport/transport_layer_asio.cpp 683
2020-02-18T08:55:32.778+0000 F - [initandlisten]
***aborting after fassert() failure
답변1
/tmp/mongodb-27017.sock의 소유자를 다음으로 설정합니다.mongod:mongod