followed by a parameter, 0 means the display is not displayed in the query Results 1 representsFor example: View only name and gender:Db.stu.find ({},{name:1, gender:1})//_id is displayed by default, if it is not displayed _id need special designation//projection set to 1 except _id other parameters are displayed by defaultdo not show _id:db.stu.find ({},{_id:0,name:1})3.8 Sorts sort ():db. Collection. Find (). sort ({field 1:1, field 2:-1})//Specify field sort, 1 for ascending, 1 for descendin
Install and configure Mongodb in linux and mongodblinux
MongoDB is a product between relational databases and non-relational databases. It has the most abundant functions and features like relational databases. The supported data structure is very loose and is similar to the json bson format, so it can store more complex data types. The biggest feature of Mongo i
Install NodeJS, mongoDB, and nodejsmongodb in LinuxPrevious
This article describes how to install NodeJS and mongoDB in Linux
NodeJS
1. Download The NodeJS installation package in the Linux environment from the official website.
2. Upload the installation package to the server through xftp
3. uncompress The. Tar. xz su
Tags: LAN for installation art database settings restart IMG MongodMongoDB Start Stop method The official website installs the introduction to still have the way that starts to stop 1 start sudo service Mongod start 2 stop sudo service Mongod stop 3 restart sudo service mongod restart 4 Viewing status sudo service Mongod status or view the process Ps-ef | grep Mongod or view the port number status NETSTAT-LANP | grep 27017 5 connections Mongo 6 Viewing the database configuration Less/etc/m
Label:1: DownloadHttp://www.mongodb.org/downloadsUnzip the package after uploading it on the 85 machine.first, unzip the installer in Linuxoperation by command:Decompression TAR-ZXVF mongodb-linux-x86_64-2.6.7.gzmongodb-linux-x86_64-2.6.7 renamed to MongoDB We put a new data directory in the
System environment: CentOS x86_64
Tokutek for the MongoDB of the modified version, to a large extent, to solve the mongodb deficiencies, such as disk occupancy space.
Open ports:-A input-m state--state new-m tcp-p TCP--dport 80-j ACCEPT-A input-m state--state new-m tcp-p TCP--dport 27017-j ACCEPT-A input-m state--state new-m tcp-p TCP--dport 28017-j ACCEPT
Install TOKUMX1. Download TokutekEnter the offic
1/Under Ubuntu, first install VNCsudo apt-get Install Vnc4server2. Then turn on the VNC desktop service and create a VNC desktop in two waysMode ① Create a VNC desktop, the session number is automatically generated by vncserver$ vncserverMode ② Create a VNC desktop with a specified session number$vncserver:2 3. Modify the remote login desktop configuration to a graphical interface, there are two ways Mode ① Modify the Xstartup file ( Note: each user has their own xstartup file), the file path
Tags: share local storage HTTPS start Ted root directory using INF1. DownloadGo to the official website https://www.mongodb.com find the corresponding version of MongoDBSuch a: https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel62-4.0.0.tgz2. Go to the Linux server to download it1) Download: Curl-o https://fastd
FilesTo below Send in the 192.168.1.106-2016-04-28.log after the click OK Upload, while the SECURECRT appears in the prompt,Generally appear 100% upload success, then use the ls command to see if the upload is successful,The upload was found to be successful. ("note" Upload txt file does not know why it will fail )The above upload command rz-y and download command sz-y are checked in the package prior to installation, if not checked at that time, then you can use the yum install lrzsz–y comman
Tags: MongoDb Linux Centos system operation and maintenanceUpload mongodb-linux-x86_64-2.4.9.tgz to App server directory:/USR/LOCAL/SRC (use the software package plus the bottom of the list for free)Unzip MongoDB#cd/USR/LOCAL/SRC#tar-ZXVF
Confirm the installation of MongoDB versionTo Https://www.mongodb.com/download-center?jmp=nav#communityHere my system is CentOS 6.5, which belongs to Red Hat 6 versioncd/usr/local/srcwget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64- Rhel62-3.4.4.tgztar zxvf mongodb
1. installation environment:
Oracle Linux 5.9
2. Download and install:
For how to install the yum command in Linux, see:
Check whether the yum source has mongodb:
[Root @ bakdbserver ~] # Yum info mongo-10gen
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
You can use up2date -- register to register.
ULN support will be disabled.
Error
Label:mongodb3.0.x Installation Tutorial Online A lot, here is mainly about the installation of 3.2.5 Linux ISO in \\10.10.10.1\ShareDoc\User\yipengzhi\ISO\Centos7.0 this installation does not introduce MongoDB 3.2.5 installation package in Linux version: \\10.10.10.1\sharedoc\user\7.0\mongodb-3.2.5-
Label:1. Initialize Docker:-V Set Docker and host shared directory, format Hostpath:dockercontainerpath-P Port Mapping--name, container nameCentOS, mirroringDocker run-d-P 27017:27017-v/home/mongodb/:/data/mongodb/--name centos-mongodb CentOSStart Docker start Centos-mongodb2. Enter the containerDocker exec-it Centos-mongodb
Linux MongoDBinstallationPreface:Official Reference manual: https://docs.mongodb.org/manual/?_ga=1.41355425.2024551820.1440643898You can also download the corresponding PDF version, or find the Chinese version online (mongodb_ authoritative Guide _ Chinese version), find the Linux platform installation introduction1. Installation Environment centos-5.10-x86_642. Mon
/crontab Vi/etc/crontab #在最后一行添加 0 0 * * */home/crontab/cut_mongodb_log.sh #表示每天凌晨执行备份 : wq! #保存退出 3. Restart the Crond to make the settings effective /etc/rc.d/init.d/crond Restart #yum install-y Vixie-cron installation Scheduled tasks may not be preinstalled on some systems Chkconfig Crond on #设为开机启动 Service Crond Start #启动 Log records similar to MONGODB.LOG.2015-02-28T06-33-20 are generated daily in the/home/data/mongodb/mongodb_log directory And k
When you start a MongoDB service under Linux, the following problems often occur:My solution is:1. First, enter the MongoDB directory under the/data/db/directory, there will be file Mongod.lock, delete this file.2. Use command: Netstat-anp|more to see if there is a MongoDB process, use the command kill-9 + process numb
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.