mongod [HostnameCanonicalizationWorker]在Digital Ocean上启动主机名规范化HANG

时间:2018-10-28 16:22:01

标签: node.js mongodb mongoose digital-ocean

我正在尝试在用于节点api的ubuntu数字海洋滴上运行mongodb。当我尝试启动mongod时,我挂在[HostnameCanonicalizationWorker]上。日志如下所示。

2018-10-28T16:16:26.519+0000 I CONTROL  [initandlisten] MongoDB starting : pid=3366 port=27017 dbpath=/data/db 64-bit host=backend
2018-10-28T16:16:26.519+0000 I CONTROL  [initandlisten] db version v3.2.19
2018-10-28T16:16:26.519+0000 I CONTROL  [initandlisten] git version: a9f574de6a566a58b24d126b44a56718d181e989
2018-10-28T16:16:26.519+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016
2018-10-28T16:16:26.519+0000 I CONTROL  [initandlisten] allocator: tcmalloc
2018-10-28T16:16:26.519+0000 I CONTROL  [initandlisten] modules: none
2018-10-28T16:16:26.519+0000 I CONTROL  [initandlisten] build environment:
2018-10-28T16:16:26.519+0000 I CONTROL  [initandlisten]     distmod: ubuntu1604
2018-10-28T16:16:26.519+0000 I CONTROL  [initandlisten]     distarch: x86_64
2018-10-28T16:16:26.519+0000 I CONTROL  [initandlisten]     target_arch: x86_64
2018-10-28T16:16:26.520+0000 I CONTROL  [initandlisten] options: {}
2018-10-28T16:16:26.546+0000 I -        [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2018-10-28T16:16:26.547+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=1G,session_max=20000,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),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),verbose=(recovery_progress),
2018-10-28T16:16:26.639+0000 I STORAGE  [initandlisten] WiredTiger [1540743386:639382][3366:0x7fa56e65bc80], txn-recover: Main recovery loop: starting at 2/6272
2018-10-28T16:16:26.694+0000 I STORAGE  [initandlisten] WiredTiger [1540743386:694754][3366:0x7fa56e65bc80], txn-recover: Recovering log 2 through 3
2018-10-28T16:16:26.695+0000 I STORAGE  [initandlisten] WiredTiger [1540743386:695369][3366:0x7fa56e65bc80], txn-recover: Recovering log 3 through 3
2018-10-28T16:16:26.768+0000 I CONTROL  [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2018-10-28T16:16:26.768+0000 I CONTROL  [initandlisten] 
2018-10-28T16:16:26.769+0000 I CONTROL  [initandlisten] 
2018-10-28T16:16:26.769+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2018-10-28T16:16:26.769+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
2018-10-28T16:16:26.769+0000 I CONTROL  [initandlisten] 
2018-10-28T16:16:26.769+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2018-10-28T16:16:26.769+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
2018-10-28T16:16:26.769+0000 I CONTROL  [initandlisten] 
2018-10-28T16:16:26.770+0000 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
2018-10-28T16:16:26.770+0000 I NETWORK  [initandlisten] waiting for connections on port 27017
2018-10-28T16:16:26.770+0000 I NETWORK  [HostnameCanonicalizationWorker] Starting hostname canonicalization worker

我的配置不正确吗?我对mongodb不太有信心。 感谢您的帮助。

0 个答案:

没有答案