AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / unix / Perguntas / 537463
Accepted
Parul Chourasia
Parul Chourasia
Asked: 2019-08-27 03:02:47 +0800 CST2019-08-27 03:02:47 +0800 CST 2019-08-27 03:02:47 +0800 CST

Não é possível conectar-se ao MongoDB ao fornecer o comando mongod no Cli

  • 772

Estou tentando instalar o mongoDb no centos VM e segui alguns sites como https://linuxize.com/post/how-to-install-mongodb-on-centos-7/ , https://www.digitalocean.com/ community/tutorials/how-to-install-mongodb-on-centos-7 ,mas incapaz de conectar/entrar no MongoDB ao dar o comando mongod no Cli. Alguém tem alguma ideia sobre isso? Desde já, obrigado.

Saída de mongod:

-460f-4bb5-a5d7-0bbe48f3246a") }
2019-08-26T15:21:13.417+0530 I  INDEX    [initandlisten] index build: done building index _id_ on ns admin.system.version
2019-08-26T15:21:13.417+0530 I  SHARDING [initandlisten] Marking collection admin.system.version as collection version: <unsharded>
2019-08-26T15:21:13.417+0530 I  COMMAND  [initandlisten] setting featureCompatibilityVersion to 4.2
2019-08-26T15:21:13.421+0530 I  SHARDING [initandlisten] Marking collection local.system.replset as collection version: <unsharded>
2019-08-26T15:21:13.421+0530 I  STORAGE  [initandlisten] Flow Control is enabled on this deployment.
2019-08-26T15:21:13.422+0530 I  SHARDING [initandlisten] Marking collection admin.system.roles as collection version: <unsharded>
2019-08-26T15:21:13.422+0530 I  STORAGE  [initandlisten] createCollection: local.startup_log with generated UUID: 660f8f2a-c6d0-4a0c-a4bb-0f975d1f207e and options: { c485760 }

2019-08-26T15:21:13.426+0530 I  INDEX    [initandlisten] index build: done building index _id_ on ns local.startup_log
2019-08-26T15:21:13.427+0530 I  SHARDING [initandlisten] Marking collection local.startup_log as collection version: <unsharded>
2019-08-26T15:21:13.427+0530 I  FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
2019-08-26T15:21:13.428+0530 I  SHARDING [LogicalSessionCacheRefresh] Marking collection config.system.sessions as collection version: <unsharded>
2019-08-26T15:21:13.428+0530 I  NETWORK  [initandlisten] Listening on /tmp/mongodb-27017.sock
2019-08-26T15:21:13.428+0530 I  NETWORK  [initandlisten] Listening on 127.0.0.1
2019-08-26T15:21:13.428+0530 I  NETWORK  [initandlisten] waiting for connections on port 27017
2019-08-26T15:21:13.428+0530 I  CONTROL  [LogicalSessionCacheReap] Sessions collection is not set up; waiting until next sessions reap interval: config.system.sessions
2019-08-26T15:21:13.429+0530 I  STORAGE  [LogicalSessionCacheRefresh] createCollection: config.system.sessions with provided UUID: 45ed25cc-1dbb-4f38-8333-cf36ae8bd473 UUID("45ed25cc-1dbb-4f38-8333-cf36ae8bd473") }
2019-08-26T15:21:13.433+0530 I  INDEX    [LogicalSessionCacheRefresh] index build: done building index _id_ on ns config.system.sessions
2019-08-26T15:21:13.438+0530 I  INDEX    [LogicalSessionCacheRefresh] index build: starting on config.system.sessions properties: { v: 2, key: { lastUse: 1 }, name: "lnfig.system.sessions", expireAfterSeconds: 1800 } using method: Hybrid
2019-08-26T15:21:13.439+0530 I  INDEX    [LogicalSessionCacheRefresh] build may temporarily use up to 500 megabytes of RAM
2019-08-26T15:21:13.439+0530 I  INDEX    [LogicalSessionCacheRefresh] index build: collection scan done. scanned 0 total records in 0 seconds
2019-08-26T15:21:13.439+0530 I  INDEX    [LogicalSessionCacheRefresh] index build: inserted 0 keys from external sorter into index in 0 seconds
2019-08-26T15:21:13.440+0530 I  INDEX    [LogicalSessionCacheRefresh] index build: done building index lsidTTLIndex on ns config.system.sessions
2019-08-26T15:26:13.428+0530 I  SHARDING [LogicalSessionCacheReap] Marking collection config.transactions as collection version: <unsharded>

insira a descrição da imagem aqui

linux software-installation
  • 3 3 respostas
  • 5890 Views

3 respostas

  • Voted
  1. Best Answer
    bebu
    2019-09-06T05:13:32+08:002019-09-06T05:13:32+08:00

    Não tenho certeza sobre o que você está realmente tentando fazer. A execução mongodiniciará um servidor mongo em seu shell atual. Se você deseja se conectar a um servidor MongoDB, você deve usarmongo

    • 0
  2. Gamma032
    2020-04-17T22:16:14+08:002020-04-17T22:16:14+08:00

    Não está claro, mas se você chegou Marking collection...a partir do mongodcomando, o MongoDB foi iniciado.

    Para começar a trabalhar, abra uma nova janela de terminal, navegue até a pasta bin e execute mongo. Parte da minha confusão era que parecia estar pendurado (no bash), mas não estava. Digite helpe deve funcionar.

    • 0
  3. user373704
    2019-09-22T08:04:37+08:002019-09-22T08:04:37+08:00

    Eu tenho o mesmo problema. Estou tentando instalar o mongo db. Eu chamo o comando ./mongod e a instalação não pode ser concluída. Ele trava no mesmo comando:

    2019-09-21T21:45:17.039+0600 I SHARDING [LogicalSessionCacheReap] Marcando a coleção config.transactions como versão da coleção:

    Mac OS Mojave 10.14 Todo o meu rastreamento:

    MacBook-Pro-dns:mongo user$ ./mongod
    2019-09-21T21:45:16.178+0600 I  CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
    2019-09-21T21:45:16.187+0600 I  CONTROL  [initandlisten] MongoDB starting : pid=8310 port=27017 dbpath=/data/db 64-bit host=MacBook-Pro-dns.local
    2019-09-21T21:45:16.187+0600 I  CONTROL  [initandlisten] db version v4.2.0
    2019-09-21T21:45:16.187+0600 I  CONTROL  [initandlisten] git version: a4b751dcf51dd249c5865812b390cfd1c0129c30
    2019-09-21T21:45:16.187+0600 I  CONTROL  [initandlisten] allocator: system
    2019-09-21T21:45:16.187+0600 I  CONTROL  [initandlisten] modules: none
    2019-09-21T21:45:16.187+0600 I  CONTROL  [initandlisten] build environment:
    2019-09-21T21:45:16.187+0600 I  CONTROL  [initandlisten]     distarch: x86_64
    2019-09-21T21:45:16.187+0600 I  CONTROL  [initandlisten]     target_arch: x86_64
    2019-09-21T21:45:16.187+0600 I  CONTROL  [initandlisten] options: {}
    2019-09-21T21:45:16.189+0600 W  STORAGE  [initandlisten] Detected unclean shutdown - /data/db/mongod.lock is not empty.
    2019-09-21T21:45:16.189+0600 I  STORAGE  [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
    2019-09-21T21:45:16.189+0600 W  STORAGE  [initandlisten] Recovering data from the last clean checkpoint.
    2019-09-21T21:45:16.189+0600 I  STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=7680M,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),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress],
    2019-09-21T21:45:16.699+0600 I  STORAGE  [initandlisten] WiredTiger message [1569080716:699859][8310:0x10e6245c0], txn-recover: Recovering log 1 through 2
    2019-09-21T21:45:16.762+0600 I  STORAGE  [initandlisten] WiredTiger message [1569080716:762524][8310:0x10e6245c0], txn-recover: Recovering log 2 through 2
    2019-09-21T21:45:16.825+0600 I  STORAGE  [initandlisten] WiredTiger message [1569080716:825486][8310:0x10e6245c0], txn-recover: Main recovery loop: starting at 1/22912 to 2/256
    2019-09-21T21:45:16.826+0600 I  STORAGE  [initandlisten] WiredTiger message [1569080716:826288][8310:0x10e6245c0], txn-recover: Recovering log 1 through 2
    2019-09-21T21:45:16.884+0600 I  STORAGE  [initandlisten] WiredTiger message [1569080716:884735][8310:0x10e6245c0], txn-recover: Recovering log 2 through 2
    2019-09-21T21:45:16.932+0600 I  STORAGE  [initandlisten] WiredTiger message [1569080716:932134][8310:0x10e6245c0], txn-recover: Set global recovery timestamp: (0,0)
    2019-09-21T21:45:17.002+0600 I  RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
    2019-09-21T21:45:17.019+0600 I  STORAGE  [initandlisten] Timestamp monitor starting
    2019-09-21T21:45:17.020+0600 I  CONTROL  [initandlisten] 
    2019-09-21T21:45:17.020+0600 I  CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
    2019-09-21T21:45:17.020+0600 I  CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
    2019-09-21T21:45:17.020+0600 I  CONTROL  [initandlisten] 
    2019-09-21T21:45:17.020+0600 I  CONTROL  [initandlisten] ** WARNING: This server is bound to localhost.
    2019-09-21T21:45:17.020+0600 I  CONTROL  [initandlisten] **          Remote systems will be unable to connect to this server. 
    2019-09-21T21:45:17.020+0600 I  CONTROL  [initandlisten] **          Start the server with --bind_ip <address> to specify which IP 
    2019-09-21T21:45:17.020+0600 I  CONTROL  [initandlisten] **          addresses it should serve responses from, or with --bind_ip_all to
    2019-09-21T21:45:17.020+0600 I  CONTROL  [initandlisten] **          bind to all interfaces. If this behavior is desired, start the
    2019-09-21T21:45:17.020+0600 I  CONTROL  [initandlisten] **          server with --bind_ip 127.0.0.1 to disable this warning.
    2019-09-21T21:45:17.020+0600 I  CONTROL  [initandlisten] 
    2019-09-21T21:45:17.020+0600 I  CONTROL  [initandlisten] 
    2019-09-21T21:45:17.020+0600 I  CONTROL  [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
    2019-09-21T21:45:17.031+0600 I  SHARDING [initandlisten] Marking collection local.system.replset as collection version: <unsharded>
    2019-09-21T21:45:17.034+0600 I  STORAGE  [initandlisten] Flow Control is enabled on this deployment.
    2019-09-21T21:45:17.034+0600 I  SHARDING [initandlisten] Marking collection admin.system.roles as collection version: <unsharded>
    2019-09-21T21:45:17.034+0600 I  SHARDING [initandlisten] Marking collection admin.system.version as collection version: <unsharded>
    2019-09-21T21:45:17.035+0600 I  SHARDING [initandlisten] Marking collection local.startup_log as collection version: <unsharded>
    2019-09-21T21:45:17.036+0600 I  FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
    2019-09-21T21:45:17.039+0600 I  SHARDING [LogicalSessionCacheRefresh] Marking collection config.system.sessions as collection version: <unsharded>
    2019-09-21T21:45:17.039+0600 I  NETWORK  [initandlisten] Listening on /tmp/mongodb-27017.sock
    2019-09-21T21:45:17.039+0600 I  NETWORK  [initandlisten] Listening on 127.0.0.1
    2019-09-21T21:45:17.039+0600 I  NETWORK  [initandlisten] waiting for connections on port 27017
    2019-09-21T21:45:17.039+0600 I  SHARDING [LogicalSessionCacheReap] Marking collection config.transactions as collection version: <unsharded>```
    
    • -1

relate perguntas

  • Existe uma maneira de fazer ls mostrar arquivos ocultos apenas para determinados diretórios?

  • Inicie/pare o serviço systemd usando o atalho de teclado [fechado]

  • Necessidade de algumas chamadas de sistema

  • astyle não altera a formatação do arquivo de origem

  • Passe o sistema de arquivos raiz por rótulo para o kernel do Linux

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Possível firmware ausente /lib/firmware/i915/* para o módulo i915

    • 3 respostas
  • Marko Smith

    Falha ao buscar o repositório de backports jessie

    • 4 respostas
  • Marko Smith

    Como exportar uma chave privada GPG e uma chave pública para um arquivo

    • 4 respostas
  • Marko Smith

    Como podemos executar um comando armazenado em uma variável?

    • 5 respostas
  • Marko Smith

    Como configurar o systemd-resolved e o systemd-networkd para usar o servidor DNS local para resolver domínios locais e o servidor DNS remoto para domínios remotos?

    • 3 respostas
  • Marko Smith

    apt-get update error no Kali Linux após a atualização do dist [duplicado]

    • 2 respostas
  • Marko Smith

    Como ver as últimas linhas x do log de serviço systemctl

    • 5 respostas
  • Marko Smith

    Nano - pule para o final do arquivo

    • 8 respostas
  • Marko Smith

    erro grub: você precisa carregar o kernel primeiro

    • 4 respostas
  • Marko Smith

    Como baixar o pacote não instalá-lo com o comando apt-get?

    • 7 respostas
  • Martin Hope
    user12345 Falha ao buscar o repositório de backports jessie 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl Por que a maioria dos exemplos do systemd contém WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky Como exportar uma chave privada GPG e uma chave pública para um arquivo 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll status systemctl mostra: "Estado: degradado" 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim Como podemos executar um comando armazenado em uma variável? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S Por que /dev/null é um arquivo? Por que sua função não é implementada como um programa simples? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 Como ver as últimas linhas x do log de serviço systemctl 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - pule para o final do arquivo 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla Por que verdadeiro e falso são tão grandes? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis Substitua a string em um arquivo de texto enorme (70 GB), uma linha 2017-12-30 06:58:33 +0800 CST

Hot tag

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve