MongoDB: Instalando o MongoDB no Linux: Difference between revisions
Line 40: | Line 40: | ||
Ctrl-c para parar. | Ctrl-c para parar. | ||
= Executando o servidor MongoDB = | = Executando o servidor MongoDB = |
Revision as of 12:23, 29 March 2016
Instalando o MongoDB
Vamos instalar o MongoDB
1. Abra um terminal
2. Instale o MongoDB
Fedora. $ sudo dnf -y install mongodb.x86_64 mongodb-server.x86_64 nodejs-mongodb.noarch
Red Hat® Enterprise Linux® / RHEL, CentOS $ sudo yum -y install mongodb.x86_64 mongodb-server.x86_64 nodejs-mongodb.noarch
3. Configurar
Executando o servidor MongoDB
Iniciando:
systemctl start mongod
Verificando a execução:
systemctl status mongod
Verificando o servidor
# mongostat
Resultado:
connected to: 127.0.0.1 insert query update delete getmore command flushes mapped vsize res faults locked db idx miss % qr|qw ar|aw netIn netOut conn time *0 *0 *0 *0 0 1|0 0 80m 436m 39m 0 local:0.0% 0 0|0 0|0 62b 3k 1 20:03:55 *0 *0 *0 *0 0 1|0 0 80m 436m 39m 0 local:0.0% 0 0|0 0|0 62b 3k 1 20:03:56 *0 *0 *0 *0 0 1|0 0 80m 436m 39m 0 local:0.0% 0 0|0 0|0 62b 3k 1 20:03:57 *0 *0 *0 *0 0 1|0 0 80m 436m 39m 0 local:0.0% 0 0|0 0|0 62b 3k 1 20:03:58 ...
Ctrl-c para parar.
Executando o servidor MongoDB
Parando:
systemctl stop mongod
Ver também
- NodeJs: Instalando o NodeJs no Linux
- MongoDB: Instalando o MongoDB no Linux
- Nginx: Instalando o Nginx no Linux