there is an Ubuntu server outside the company 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 keyserv
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
({' 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
MongoDB is an open-source database, here do not need me to say, below the Ubuntu installation of MongoDB may encounter problems and solutions.Story background:today m$ Promotion, 1¥windows Azure 4000¥-30 Day's package, have to say is simply cabbage price! So bought a play, the Cloud ran an Ubuntu virtual machine, later
[Online, etc.] in ubuntu XAMPPphp. ini, enabling mongodb extension PHP files always fails to be parsed !!! This post was last edited by gdf87521 from 2013-01-0923: 36: 10 and copied from the official mongodb nbsp; configuration file. after the configuration is complete, restart lampp nbsp; and access nbsp; localhost always pops up a download dialog [online, et
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
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
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
Tags: Opens CTO conf logs TPS Linux release download page install whileUbuntu 18.04 (on virtual machine VirtualBox), MongoDB 4.0,Listen to your roommate and say, there's a World Cup final at 23! But, lonely to write blog Ah! To record this hectic afternoon and evening successfully installed a software onto Linux. --2250There are two ways to install Mongodb:.deb packages on Linux (official recommendation, it
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
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
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.
1. An error occurred after running "sudo apt-get install mongo-org" on the Terminal:ReadingPackage lists... DoneBuildingDependency TreeReadingState Information ... Done E: unable to Locate package MongoDB -org //this is the errorIt is still the error message after running "apt-get update".2. The result is set after the following steps are installed successfully:#Step 1: ImportTheMongodb PublicKey sudo apt-Key adv--Keyserver HKP:keyserver.ubu
MongoDB is a distributed file storage-based database. Similar to redis, MongoDB is written in C ++ Based on nosql technology. Designed to provide scalable and high-performance data storage solutions for Web applications,
The following describes how to install and run MongoDB on Ubuntu.
1. Install the dependent package
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.