问答

mongo 运行的时候卡住

作者:admin 2021-08-20 我要评论

运行 sudo mongod 的时候卡在这里,等了很久没有结果。 2020-05-08T16:13:31.446+0800 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS...

在说正事之前,我要推荐一个福利:你还在原价购买阿里云、腾讯云、华为云服务器吗?那太亏啦!来这里,新购、升级、续费都打折,能够为您省60%的钱呢!2核4G企业级云服务器低至69元/年,点击进去看看吧>>>)

运行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>

版权声明:本文转载自网络,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。本站转载出于传播更多优秀技术知识之目的,如有侵权请联系QQ/微信:153890879删除

相关文章
  • 使用箭头函数return数据不能实现

    使用箭头函数return数据不能实现

  • 个人小程序号能接入小程序3D地图吗?

    个人小程序号能接入小程序3D地图吗?

  • vue 移动端项目中,使用了better-scrol

    vue 移动端项目中,使用了better-scrol

  • css如何做出区域平均划分为四列

    css如何做出区域平均划分为四列

腾讯云代理商
海外云服务器