Tags » Mongodb

MEAN but not PHP

So as you get along with working and your brain still sleeps while your body
is quite awake , you come up with something what’s called “ 262 more words

Linux

MongoDB安装与配置(Windows)

MongoDB是目前在IT行业非常流行的一种非关系型数据库(NoSql),其灵活的数据存储方式备受当前IT从业人员的青睐。在这里主要讲如何在Windows平台下安装MongoDB。本文转自 http://jingyan.baidu.com/article/d5c4b52bef7268da560dc5f8.html

1、在官网下载安装包或者zip压缩包

登录MongoDB官方,找到下载页面。一般Windows下可以选择两种不同的文件zip包和msi安装包。zip直接解压就可以了,msi可以选择安装内容。请自行下载,不做赘述。

2、解压源文件或双击msi文件安装

将zip文件解压放到盘符的根目录(如 C:\ 或 D:\),为了方便建议文件夹命名尽量简短,并且路径最好全英文且不要有空格符号。例如安装路径为 (D:\mongodb),如下图

3、配置数据文件路径

上面的路径是mongodb的文件路径,接下来要配置MongoDB数据库文件的存放位置。在启动MongoDB服务之前必须要配置数据库文件的存放路径,否则不会自动创建,而且不能启动成功。我们可以手动创建一个路径例如 (D:\mongodb\data\db)。

打开cmd命令行,cd进入 D:\mongodb\bin 目录下。进入后输入如下命令启动Mongodb服务:

mongod --dbpath D:\mongodb\data\db

输入完命令之后可以看到下图,如何遇到错误请根据错误提示解决。

mongodb的默认端口为27017。如果验证是否安装成功,打开浏览器输入 http://localhost:27017/ 可看到显示信息为:
It looks like you are trying to access MongoDB over HTTP on the native driver port. 52 more words

MongoDB

Time to get MEAN!

Inspired by an assignment in which I was tasked to use the Javascript fetch method to make a request, nostalgia hit me as my instructor tried to make fetch happen. 375 more words

Coding

Splitting the Log Files as per day in MongoDB

https://docs.mongodb.com/v3.2/tutorial/rotate-log-files/

Rotate the log file.

Rotate the log file by issuing the logRotate command from the admin database in a mongo shell:

use admin
db.runCommand( { logRotate : 1 } )
31 more words

MongoDB

Interesting Podcast #7

When Joe Goes Mean

Some interesting Angular 2 and general full stack chat…

Podcast

Install MongoDB on Ubuntu 16.04

Run the following commands on the terminal to install MongoDB on Ubuntu 16.04

sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 0C49F3730359A14518585931BC711F9BA15703C6

echo “deb [ arch=amd64,arm64 ] … 63 more words

Ubuntu

Back Up and Restore with MongoDB Tools

On this page

This tutorial describes the process for creating backups and restoring data using the utilities provided with MongoDB. The… 1,272 more words

MongoDB