For data security, in the MongoDB configuration file, the default port of 27017 is typically changed to a custom port number, and then the allowed IP is set to 127.0.0.1 (that is, the host itself). However, this can cause trouble when the development process looks at the data, and it must go to the server side or call the API interface deployed on the server to be able to visually query the data well. In order to be able to use visual tools on the cli
In fact, the official has a detailed installation of the tutorial, if strictly according to the official steps will not appear here the error.Initctl: Unknown Task: Mongod This error is the fourth step in the installation process is less "sudo", that is, this stepsudo apt-get install-y mongodb-orgDuring the installation process, because it is already a root user, it omits sudo, causing initctl: Unknown task: Mongod error,
Because you want to customize the installation location to configure MongoDB, you choose to use the manually installed MongoDB1. Install MongoDB installation package from official website2. Unzip the installation package and cut the unpacked package to the appropriate location, named MongoDB3. Enter MONGODB:CD MongoDB to create the directory data, Log\mongodb.log
Tags: blog http strong file data osone of the most foolish steps under Ubuntu ( below are the actions under the root user ):1. Run "apt-get install MONGO"Run "apt-get update" If the installation package is not found2. You should automatically run the Mongod program after you install it, and see if the process has started with "pgrep mongo-l ".3. Enter "MONGO"in terminal, then enter the database(over)Here's how to start your own
Ubuntu under Installation and remote connectionInstall, view services, whether the service starts automatically on boot, view ports, local connections, remote connections.InstallationApt Install MongoDBView ServicesLl/etc/init.d-rwxr-xr-x 1 root root 7768 June mongodb*Service MongoDB StatusMongodb.service-an object/document-oriented DatabaseLoaded:loaded (/lib/sy
You need to first install Python and MongoDB, where MongoDB's installation references the previous blog post.
In the official parlance, it is recommended to use the PIP to install the MongoDB python driver Pymongo
First need to install PIP, may need to install Python-dev
sudo apt-get install Python-dev pip
Install the MongoDB python driver
Pip Install Pymon
The XAMPP referred to here are: XAMPP
The specific configuration environment:Kubuntu 14.04LTS 64bit Lampp 1.8.3-4
First, get the latest source of MongoDB PHP driver from GitHub: Https://github.com/mongodb/mongo-php-driver
Before you follow the prompts, install the following dependencies:
sudo apt-get Install install M4
sudo apt-get install autoconf
sudo apt-get install Libssl-dev
Then, follow the pro
Tags: mongodbNot in the official MongoDB documentation, but is actually feasible and requires the following steps1. Install keyApt-key adv--keyserver hkp://keyserver.ubuntu.com:80--recv 7F0CEB102. Add a sourceecho "Deb Http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main" | sudo tee/etc/apt/sources.list.d/mongodb-org-3.0.list3. Update the sourceApt-get
Installing MongoDBsudo apt-get install MongoDBsudo apt-get install MongoDBClose/Startsudo service MongoDB stopsudo service MongoDB startTo set the database connection password: Creating a folder with directory: data/db Close the existing service.sudo service MongoDB stop Restart Service$ mongod–auth Create a connected user$ MONGO> Use adminSwitched to DB admi
Download MongoDB's latest Linux release and put it in any directory (for example, in the/usr directory)
Unzip to perform
Tar zxvf mongodb-linux-x86_64-2.x.x.tgzCd/usr/mongodb-linux-x86_64-2.x.x/bin
Create a link
Ln-s/usr/mongodb-linux-x86_64-2.x.x MongoDBHowever, before running, you need to create a directory of data and logs that
Not in the official MongoDB documentation, but is actually feasible and requires the following steps
1. Install key
Apt-key adv--keyserver hkp://keyserver.ubuntu.com:80--recv 7F0CEB10
2. Add a source
echo "Deb Http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main" | sudo tee/etc/apt/sources.list.d/mongodb-org-3.0.list
3. Update the source
Apt-get
Label:Installing MongoDBsudo apt-get install MongoDBsudo apt-get install MongoDBClose/Startsudo service MongoDB stopsudo service MongoDB startTo set the database connection password: Creating a folder with directory: data/db Close the existing service.sudo service MongoDB stop Restart Service$ mongod–auth Create a connected user$ MONGO> Use adminSwitched to D
next release. Nonetheless, Russell that most of the applications that are subject to this limitation are more directly related to the problem of the program itself than to the one that is affected by MongoDB. Summary: Use the latest stable version for maximum performance. About Packages When installing on Ubuntu and Debian systems, many people have problems with "obsolete versions". The solution is simple:
": 27017" in a browser to view the relevant information.
Add a MongoDB service to a windows Service
To avoid the tedious startup of services using commands such as cd and mongod every time MongoDB is used, we can add it to the windows Service. The specific commands are as follows:
D: \ mongodb \ bin> mongod -- dbpath = D: \ data \ db -- logpath = D: \
To avoid the tedious startup of services using commands such as cd and mongod every time MongoDB is used, we can add it to the windows Service. The specific commands are as follows:
D: \ mongodb \ bin> mongod -- dbpath = D: \ data \ db -- logpath = D: \ mongodb \ logs \ mongod. log -- install -- serviceName MongoDBD: \ mongo
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.