installing MongoDB on Ubuntu Kylin15.05MongoDB is a typical nosql, but it is said to be used by many people. So I tried to install this database on Ubuntu Kylin.First go to its official website to see it. Link address: https://www.mongodb.org, the interface did a very good look, but also very convenient, soon can be found. Look at the official website, saying tha
Try installing MongoDB on Ubuntu. Fortunately, you can use apt-get on Ubuntu. However, it is not the latest version!
Sudo apt-get update
Sudo apt-get install mongodb
After the installation is complete, the Mongodb configuration file is placed in/etc. in the conf file, dbp
Install MongoDB on Ubuntu
Get the latest versionWget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.2.0.tgz
Extract and execute
Tar zxvf mongodb-linux-x86_64-2.2.0.tgzCD/usr/mongodb-linux-x86_64-2.2.0/bin
Create Link
Ln-S/usr/mon
({' Sex ': 0}). Count ()>db.demodb.count ()Querying for specified columns, removing duplicates>db.demodb.distinct (' sex ')Sub-Object Lookup>db.demodb.distinct ({' addr.province ': ' Beijing '})Conditional operator LookupGT: Greater ThanLT: less thanGTE: greater than or equal toLTE: Less than or equal toNE: Not equal toIn:in contains $in: [1,2,3,4]Type: numeric type [Double 1, String 2, Object 3,array 4, binary data 5,object ID 7, boolean 8,date 9,null 10,reg 11,js Code 13 , 32-bit integer, tim
Label:Personal testing is often developed using the shell to start MongoDB, and when you enter the project team to develop tests, you must allow MongoDB to start with the system.1. Write the start command sudo vim/etc/rc/local1-1 MongoDB's Start command1-2 MongoDB configuration file location2. Write the configuration file1-1 specifying the port number1-2 Specify
Install PHP's MongoDB Extended Operations Command under Ubuntu, Ubuntumongodb
Download the source code for the MongoDB extension of PHP in Https://pecl.php.net/package/mongoCopy the Code code as follows:$ wget-c https://pecl.php.net/get/mongo-1.6.9.tgz$ tar zxvf mongo-1.6.9.tgz$ CD mongo-1.6.9$ phpize$./configure$ make all$ make Test$ sudo make install
http
1. download the mongodb-linux-i686-1.8.2.tgz in the/home/nh/Downloads/directory and unzip it to get the mongodb-linux-i686-1.8.22. create a directory named data1 under/home/nh/Downloads/mongodb-linux-i686-1.8.2 and under/home/nh/Downloads/mongodb-linux-i686-1.8.2/log1
1. Download The
First install MongoDB, in the terminal input:
Copy Code code as follows:
sudo apt-get install MongoDB
then start the database MongoDB:
Copy Code code as follows:
Mongod
This error may occur:
Copy Code code as follows:
Mongod--help for help and startup options
Mongod:symbol lookup error:mongod:undef
Ubuntu under ECLIPSE+ERLANG+MONGODB development environment Build-Linux operating system: Ubuntu_centos_debian-Red and Black Alliance
Recently, the company Webgame project to use the ERLANG+MONGODB, there is no way the project needs to learn Bai.
Learn this thing at least have the environment, today set up the development environment on the way to record, s
The XAMPP referred to here are: XAMPPThe 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-driverBefore you follow the prompts, install the following dependencies:sudo apt-get install install m4sudo apt-get install autoconfsudo apt-get install libssl-devThen, follow the proj
Environment:
Ubuntu 14.04.1
MongoDB v3.4.1
Virtual Machine Connection mode is a NAT connection
First, MongoDB startup problemAfter updating the kernel, when running MongoDB, the Data directory/data/db not found. Error, the time is long not remember installed configuration OrzLooked up some informa
_id field as the primary key
A more intuitive reflection of the correspondence between SQL and MongoDB
Basic syntax > DB #显示当前所在数据库, default is Test > use database_name #切换数据库, if the name does not exist, it is equivalent to creating a new database (which is not saved until the collection is created) > Show dbs/>show databases #查看所有的数据库 > db. collection_name insert ({' xx ': ' oo '}) #创建集合 inserted content formatted
Reprinted from Http://www.cnlamp.org/linux/417.html
Posted 2 years ago ⁄linux⁄ No Comments
Since the version of MongoDB in the official Ubuntu apt source is older, it is installed with the APT source provided by MongoDB. To use the software on a third-party source, in addition to adding the corresponding source on the sources.list, you have to add the correspondi
First find MongoDB's official website http://docs.mongodb.org/master/tutorial/install-mongodb-on-ubuntu/?_ga= 1.104487360.1319058345.1434008003Configuring the Public key sudo apt-key adv--keyserver hkp://keyserver.ubuntu.com:80--recv 7f0ceb10echo "Deb http://repo.mongodb.org/apt/Ubuntu "$ (LSB_RELEASE-SC)"/mongodb-org/
Recently, Erlang + MongoDB has been used in the company's webGame project. there is no way to learn about the project. To learn this, you must have an environment at least. Today, we will record it by setting up the development environment, and we will still develop it under ubuntu. By the way, if you do development, you 'd better choose linux, because there are many...
Recently, Erlang +
Download the software here will not say, it is best to download the official version.Extractsudo tar-zxvf/usr/test/soft/mongodb-linux-x86_64-ubuntu1404-3.2.6.tgz-c/usr/testMovesudo mv/usr/test/mongodb-linux-x86_64-ubuntu1404-3.2.6/usr/test/mongodb3.2New Catalogmkdir-p/usr/test/mongodb3.2/data/db //db DirectoryMkdir/usr/test/mongodb3.2/log //store log directoryAdd/usr/test/mongodb3.2/mongod.conf configuratio
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
There are a lot of useful things in Ubuntu 10.04, and so is the well-known MongoDB system.
Related reading: Installing MongoDB on Ubuntu 10.04
As long as sudo apt-get install mongodb should be installed.
However, you may find that it cannot be started after installation.
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.