Tags:-bash client connection get local connection ror set CLI Delete user 127.0.0.1one of the most foolish steps under Ubuntu ( below are the actions under the root user ): MongoDB installation is very simple, no need to download the source files, can be installed directly with the Apt-get command.Open terminal and enter the following command: sudo apt-get install mongo
Description
MongoDB is a very famous NOSQL database, the following is the installation of MongoDB under Ubuntu 14.04, as well as the configuration for PHP (driver installation, etc.), this method is applicable to Homestead.
Install MongoDB
1. Add Source
sudo apt-key adv--keyserver hkp://keyserver.ubuntu.com:
1, modify the start MongoDB requires user authenticationAdd parameter--auth.Now we remove the MongoDB service and add the service againMongod--dbpath "D:\work\MongoDB\data"--logpath "D:\work\MongoDB\log\mongodb.log"--install--servicename "
because it was set up and started with the Windows service startup. It started, but it still doesn't work.To restart the service, the results are as follows:Symptom Description: There is a problem with the service.Re-access server address: http://127.0.0.1:28017/, if not accessible, the service does not actually start.Depending on the error log, you can determine why this problem occurs:The general reason is that MongoDB stops illegally.To resolve th
"+"--mount point: "/"--Size: 22000mb--new partition type: Primary partition-New partition location: Idle start location-for: EXT4 log file system.
Second partition: Do not set mount point; Size: 2048MB; logical partition; idle start position; for: Swap space
Third Partition: mount point: "/boot"; size: 200MB; idle in fact location; EST4 log File system
Fourth partition: mount point: "/
MongoDB (from "humongous") is an open-source document-oriented NoSQL database developed using C ++. The storage format is BSON, and the mode is free, featuring high performance, easy deployment, and easy to use, it is very convenient to store data. At present, a large number of developers have been used in the production environment.
Official website of MongoDB: http://www.mongodb.org/
How to install
follows:After the installation is complete, enter the following command in the terminal to view the MongoDB version: mongo -version
1
The output version information indicates that the installation was successful, as follows:Start and close the MongoDB command as follows: service mongodb start
service
Label:At the beginning of the article, let's review how to open the MongoDB database with the cmd Command window, with the following command: Open the MongoDB database CD D:\Program files\mongodb\bin
mongod "D:\Program files\mongodb\data" See the above window information, we can see the
with a public IP address. The non-blocked-server is used to indicate its IP address, and the SSH service is installed. Set the port to HTTPS port: 443. because the company firewall allows access to port 443 outside.
After the preceding command is run, a tunnel is established and the Local Machine listens to port 11371.
Then add the key:
Apt-key adv -- keyserver 127.0.0.1 -- recv 7F0CEB10
Note that keyserver.ubuntu.com is replaced with 127.0.0.1.
Now added successfully:
-- Primary-keyring/etc/ap
A few days ago, a development colleague found me saying that the mongodb of his test environment often hung up and asked me to write a monitor or resurrection script. I think it is strange that the test environment is not a load, often hanging off must have unconventional reasons.Ran past looked at the log, found that there is a stop record, I was puzzled, no one to operate his own stop. This is obviously not dead, so went to history to see the next c
Turn from:http://blog.csdn.net/lingchen214/article/details/245376291 Customize the installation to the C:\mongodb directory.2 Create DATA\DB and logs two folders manually under the C:\mongodb directory3 start cmd as an administrator and go to C:\mongodb\bin as the current directory.c:\
1. Download MongoDB
The default is 64-bit, this is a little awkward ...
64-bit system download address: https://www.mongodb.org/dl/linux/x86_64-debian81?_ga=2.15324022.1713724367.1498550277-1089294971.1498550277
32-bit Download list address: Https://www.mongodb.org/dl/linux
32-bit v3.2 version address http://downloads.mongodb.org/linux/mongodb-linux-i686-v3.2-latest.tgz?_ga= 2.114898759.1713724367.14985502
Install MongoDB in Linux and set auto-start.1. Download mongodb linux version (note the difference between 32-bit and 64-bit),: http://www.mongodb.org/downloads2.place the downloaded mongodbinstallation file mongodb-linux-x86_64-2.6.7.gz to/usr/local /.3. Decompress tar-zxvf mongod
First: Introduce the public key in the local systemsudo apt-key adv--keyserver hkp://keyserver.ubuntu.com:80--recv EA312927Two: Then add a MONGO address from the local source.ubuntu12.04Echo "Deb Http://repo.mongodb.org/apt/ubuntu precise/mongodb-org/3.2 multiverse" | sudo tee/etc/apt/ Sources.list.d/mongodb-org-3.2.list Ubun
1. Download mongodb:http://download.csdn.net/detail/swazer_z/9314681 can also go to the official website to download the latest installation package: Https://www.mongodb.org/downloads
2. Extract files to a directory, and then rename: [Root@localhost src]# tar-xzvf mongodb-linux-x86_64-3.0.7.tgz [root@localhost src]# MV Mongodb-li nux-x86_64-3.0.7/usr/local/mongodb
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.