Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
969 views
in Technique[技术] by (71.8m points)

mongo 运行的时候卡住

运行sudo mongod 的时候卡在这里,等了很久没有结果。


2020-05-08T16:13:31.446+0800 I  CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2020-05-08T16:13:31.450+0800 W  ASIO     [main] No TransportLayer configured during NetworkInterface startup
2020-05-08T16:13:31.452+0800 I  CONTROL  [initandlisten] MongoDB starting : pid=20508 port=27017 dbpath=/data/db 64-bit host=localhost
2020-05-08T16:13:31.452+0800 I  CONTROL  [initandlisten] db version v4.2.6
2020-05-08T16:13:31.452+0800 I  CONTROL  [initandlisten] git version: 20364840b8f1af16917e4c23c1b5f5efd8b352f8
2020-05-08T16:13:31.452+0800 I  CONTROL  [initandlisten] allocator: system
2020-05-08T16:13:31.452+0800 I  CONTROL  [initandlisten] modules: none
2020-05-08T16:13:31.453+0800 I  CONTROL  [initandlisten] build environment:
2020-05-08T16:13:31.453+0800 I  CONTROL  [initandlisten]     distarch: x86_64
2020-05-08T16:13:31.453+0800 I  CONTROL  [initandlisten]     target_arch: x86_64
2020-05-08T16:13:31.453+0800 I  CONTROL  [initandlisten] options: {}
2020-05-08T16:13:31.454+0800 E  STORAGE  [initandlisten] Failed to set up listener: SocketException: Address already in use
2020-05-08T16:13:31.454+0800 I  CONTROL  [initandlisten] now exiting
2020-05-08T16:13:31.454+0800 I  CONTROL  [initandlisten] shutting down with code:48
(base) zhangzhiyudeMacBook-Pro:db zhangzhiyu$ sudo kill -9 20431
(base) zhangzhiyudeMacBook-Pro:db zhangzhiyu$ sudo mongod
2020-05-08T16:13:44.827+0800 I  CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2020-05-08T16:13:44.838+0800 W  ASIO     [main] No TransportLayer configured during NetworkInterface startup
2020-05-08T16:13:44.840+0800 I  CONTROL  [initandlisten] MongoDB starting : pid=20512 port=27017 dbpath=/data/db 64-bit host=localhost
2020-05-08T16:13:44.840+0800 I  CONTROL  [initandlisten] db version v4.2.6
2020-05-08T16:13:44.840+0800 I  CONTROL  [initandlisten] git version: 20364840b8f1af16917e4c23c1b5f5efd8b352f8
2020-05-08T16:13:44.840+0800 I  CONTROL  [initandlisten] allocator: system
2020-05-08T16:13:44.840+0800 I  CONTROL  [initandlisten] modules: none
2020-05-08T16:13:44.840+0800 I  CONTROL  [initandlisten] build environment:
2020-05-08T16:13:44.840+0800 I  CONTROL  [initandlisten]     distarch: x86_64
2020-05-08T16:13:44.840+0800 I  CONTROL  [initandlisten]     target_arch: x86_64
2020-05-08T16:13:44.840+0800 I  CONTROL  [initandlisten] options: {}
2020-05-08T16:13:44.841+0800 W  STORAGE  [initandlisten] Detected unclean shutdown - /data/db/mongod.lock is not empty.
2020-05-08T16:13:44.842+0800 I  STORAGE  [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2020-05-08T16:13:44.842+0800 W  STORAGE  [initandlisten] Recovering data from the last clean checkpoint.
2020-05-08T16:13:44.842+0800 I  STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=3584M,cache_overflow=(file_max=0M),session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress],
2020-05-08T16:13:45.375+0800 I  STORAGE  [initandlisten] WiredTiger message [1588925625:375493][20512:0x1122885c0], txn-recover: Recovering log 2 through 3
2020-05-08T16:13:45.431+0800 I  STORAGE  [initandlisten] WiredTiger message [1588925625:431315][20512:0x1122885c0], txn-recover: Recovering log 3 through 3
2020-05-08T16:13:45.588+0800 I  STORAGE  [initandlisten] WiredTiger message [1588925625:588448][20512:0x1122885c0], txn-recover: Main recovery loop: starting at 2/6144 to 3/256
2020-05-08T16:13:45.701+0800 I  STORAGE  [initandlisten] WiredTiger message [1588925625:701382][20512:0x1122885c0], txn-recover: Recovering log 2 through 3
2020-05-08T16:13:45.810+0800 I  STORAGE  [initandlisten] WiredTiger message [1588925625:810861][20512:0x1122885c0], txn-recover: Recovering log 3 through 3
2020-05-08T16:13:45.906+0800 I  STORAGE  [initandlisten] WiredTiger message [1588925625:906005][20512:0x1122885c0], txn-recover: Set global recovery timestamp: (0, 0)
2020-05-08T16:13:46.063+0800 I  RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
2020-05-08T16:13:46.074+0800 I  STORAGE  [initandlisten] Timestamp monitor starting
2020-05-08T16:13:46.074+0800 I  CONTROL  [initandlisten] 
2020-05-08T16:13:46.074+0800 I  CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2020-05-08T16:13:46.074+0800 I  CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2020-05-08T16:13:46.075+0800 I  CONTROL  [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2020-05-08T16:13:46.075+0800 I  CONTROL  [initandlisten] 
2020-05-08T16:13:46.075+0800 I  CONTROL  [initandlisten] ** WARNING: This server is bound to localhost.
2020-05-08T16:13:46.075+0800 I  CONTROL  [initandlisten] **          Remote systems will be unable to connect to this server. 
2020-05-08T16:13:46.075+0800 I  CONTROL  [initandlisten] **          Start the server with --bind_ip <address> to specify which IP 
2020-05-08T16:13:46.075+0800 I  CONTROL  [initandlisten] **          addresses it should serve responses from, or with --bind_ip_all to
2020-05-08T16:13:46.075+0800 I  CONTROL  [initandlisten] **          bind to all interfaces. If this behavior is desired, start the
2020-05-08T16:13:46.075+0800 I  CONTROL  [initandlisten] **          server with --bind_ip 127.0.0.1 to disable this warning.
2020-05-08T16:13:46.075+0800 I  CONTROL  [initandlisten] 
2020-05-08T16:13:46.075+0800 I  CONTROL  [initandlisten] 
2020-05-08T16:13:46.075+0800 I  CONTROL  [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
2020-05-08T16:13:46.078+0800 I  SHARDING [initandlisten] Marking collection local.system.replset as collection version: <unsharded>
2020-05-08T16:13:46.081+0800 I  STORAGE  [initandlisten] Flow Control is enabled on this deployment.
2020-05-08T16:13:46.082+0800 I  SHARDING [initandlisten] Marking collection admin.system.roles as collection version: <unsharded>
2020-05-08T16:13:46.082+0800 I  SHARDING [initandlisten] Marking collection admin.system.version as collection version: <unsharded>
2020-05-08T16:13:46.086+0800 I  SHARDING [initandlisten] Marking collection local.startup_log as collection version: <unsharded>
2020-05-08T16:13:46.086+0800 I  FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
2020-05-08T16:13:46.090+0800 I  SHARDING [LogicalSessionCacheRefresh] Marking collection config.system.sessions as collection version: <unsharded>
2020-05-08T16:13:46.092+0800 I  NETWORK  [listener] Listening on /tmp/mongodb-27017.sock
2020-05-08T16:13:46.092+0800 I  SHARDING [LogicalSessionCacheReap] Marking collection config.transactions as collection version: <unsharded>
2020-05-08T16:13:46.092+0800 I  NETWORK  [listener] Listening on 127.0.0.1
2020-05-08T16:13:46.092+0800 I  NETWORK  [listener] waiting for connections on port 27017
2020-05-08T16:13:47.028+0800 I  FTDC     [ftdc] Unclean full-time diagnostic data capture shutdown detected, found interim file, some metrics may have been lost. OK
2020-05-08T16:13:47.094+0800 I  SHARDING [ftdc] Marking collection local.oplog.rs as collection version: <unsharded>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...