mongodb
stopped working on my computer from time to time, when I type " mongod
" in cmd
the following log
appears:
2018-02-14T12:23:31.189-0700 I CONTROL [initandlisten] MongoDB starting : pid=31268 port=27017 dbpath=C:\data\db\ 64-bit host=DESKTOP-G5TNAOA 2018-02-14T12:23:31.189-0700 I CONTROL [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2 2018-02-14T12:23:31.189-0700 I CONTROL [initandlisten] db version v3.6.2 2018-02-14T12:23:31.189-0700 I CONTROL [initandlisten] git version: 489d177dbd0f0420a8ca04d39fd78d0a2c539420 2018-02-14T12:23:31.190-0700 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1u-fips 22 Sep 2016 2018-02-14T12:23:31.190-0700 I CONTROL [initandlisten] allocator: tcmalloc 2018-02-14T12:23:31.190-0700 I CONTROL [initandlisten] modules: none 2018-02-14T12:23:31.190-0700 I CONTROL [initandlisten] build environment: 2018-02-14T12:23:31.190-0700 I CONTROL [initandlisten] distmod: 2008plus-ssl 2018-02-14T12:23:31.190-0700 I CONTROL [initandlisten] distarch: x86_64 2018-02-14T12:23:31.190-0700 I CONTROL [initandlisten] target_arch: x86_64 2018-02-14T12:23:31.190-0700 I CONTROL [initandlisten] options: {} 2018-02-14T12:23:31.194-0700 I - [initandlisten] Detected data files in C:\data\db\ created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'. 2018-02-14T12:23:31.194-0700 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=3493M,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),statistics_log=(wait=0),verbose=(recovery_progress), 2018-02-14T12:23:31.597-0700 I STORAGE [initandlisten] WiredTiger message [1518636211:596942][31268:140723106701648], txn-recover: Main recovery loop: starting at 2/6016 2018-02-14T12:23:31.862-0700 I STORAGE [initandlisten] WiredTiger message [1518636211:862615][31268:140723106701648], txn-recover: Recovering log 2 through 3 2018-02-14T12:23:32.051-0700 I STORAGE [initandlisten] WiredTiger message [1518636212:50744][31268:140723106701648], txn-recover: Recovering log 3 through 3 2018-02-14T12:23:32.564-0700 I CONTROL [initandlisten] 2018-02-14T12:23:32.564-0700 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database. 2018-02-14T12:23:32.564-0700 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted. 2018-02-14T12:23:32.564-0700 I CONTROL [initandlisten] 2018-02-14T12:23:32.564-0700 I CONTROL [initandlisten] ** WARNING: This server is bound to localhost. 2018-02-14T12:23:32.565-0700 I CONTROL [initandlisten] ** Remote systems will be unable to connect to this server. 2018-02-14T12:23:32.565-0700 I CONTROL [initandlisten] ** Start the server with --bind_ip <address> to specify which IP 2018-02-14T12:23:32.565-0700 I CONTROL [initandlisten] ** addresses it should serve responses from, or with --bind_ip_all to 2018-02-14T12:23:32.565-0700 I CONTROL [initandlisten] ** bind to all interfaces. If this behavior is desired, start the 2018-02-14T12:23:32.565-0700 I CONTROL [initandlisten] ** server with --bind_ip 127.0.0.1 to disable this warning. 2018-02-14T12:23:32.565-0700 I CONTROL [initandlisten] 2018-02-14T12:23:32.565-0700 I CONTROL [initandlisten] 2018-02-14T12:23:32.565-0700 I CONTROL [initandlisten] ** WARNING: The file system cache of this machine is configured to be greater than 40% of the total memory. This can lead to increased memory pressure and poor performance. 2018-02-14T12:23:32.565-0700 I CONTROL [initandlisten] See http://dochub.mongodb.org/core/wt-windows-system-file-cache 2018-02-14T12:23:32.565-0700 I CONTROL [initandlisten] 2018-02-14T17:23:32.988-0200 W FTDC [initandlisten] Failed to initialize Performance Counters for FTDC: WindowsPdhError: PdhExpandCounterPathW failed with 'O objeto especificado não foi encontrado no computador.' for counter '\Memory\Available Bytes' 2018-02-14T17:23:32.988-0200 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory 'C:/data/db/diagnostic.data' 2018-02-14T17:23:32.990-0200 I NETWORK [initandlisten] waiting for connections on port 27017
When you type "mongo," this appears:
MongoDB shell version v3.6.2 connecting to: mongodb: //127.0.0.1: 27017 MongoDB server version: 3.6.2 Server has startup warnings: 2018-02-14T14: 27: 25.725-0700 I CONTROL [initandlisten] 2018-02-14T14: 27: 25.725-0700 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database. 2018-02-14T14: 27: 25.726-0700 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted. 2018-02-14T14: 27: 25.727-0700 I CONTROL [initandlisten] 2018-02-14T14: 27: 25.728-0700 I CONTROL [initandlisten] ** WARNING: This server is bound to localhost. 2018-02-14T14: 27: 25.728-0700 I CONTROL [initandlisten] ** Remote systems will be unable to connect to this server. 2018-02-14T14: 27: 25.729-0700 I CONTROL [initandlisten] ** Start the server with --bind_ip to specify which IP 2018-02-14T14: 27: 25.730-0700 I CONTROL [initandlisten] ** addresses it should serve responses from, or with --bind_ip_all to 2018-02-14T14: 27: 25.731-0700 I CONTROL [initandlisten] ** bind to all interfaces. If this behavior is desired, start the 2018-02-14T14: 27: 25.732-0700 I CONTROL [initandlisten] ** server with --bind_ip 127.0.0.1 to disable this warning. 2018-02-14T14: 27: 25.733-0700 I CONTROL [initandlisten] 2018-02-14T14: 27: 25.734-0700 I CONTROL [initandlisten] 2018-02-14T14: 27: 25.735-0700 I CONTROL [initandlisten] ** WARNING: The file system cache of this machine is configured to be greater than 40% of the total memory. This can lead to increased memory pressure and poor performance. 2018-02-14T14: 27: 25.739-0700 I CONTROL [initandlisten] See link 2018-02-14T14: 27: 25.740-0700 I CONTROL [initandlisten] >
How do I resolve this?
Note: I've already added mongodb
to system variables