The making of logic between page and page
Detailed code can be viewed in the actual combat folder in the Nodejs file (written by yourself)
1. Install everything you need at the root of the project with the command line
CD Program
NPM Install Express
Although previously contacted the content of MySQL, but do the website, feel NoSQL database or go around.Many books have mentioned the use of Node.js and MongoDB, here to record the learning process.
Basic commands for MongoDB:
Use dbname new or
Stores an array of _id for the user who likes the article in the posts (article) collection, for example:posts{ _id:objectid (' 4e7020cb7cac81af7136236b '), users_like_this_post: [ ObjectID (' 4e7020cb7cac81af71362361 '),
Pre-Installation Note: This tutorial is installed with Yum. 64-bit CentOS system onlyInstallation steps:1. Create a warehouse file:Vi/etc/yum.repos.d/mongodb-org-3.4.repoThen copy the following configuration, save exit[mongodb-org-3.4]name=MongoDB
Today, customers are asked to provide a MONGO log cleanup solution, and the customer provides a KILL-SIGUSR1 way to record the learning and testing process as well as several other log cleanup methods.Method 1: Use Db.runcommand ({logrotate:1}) in
MongoDB Open authentication and user management./MONGO # Login to use admin # to switch to Admin library Db.adduser ("Root","123456") # Create user Db.adduser ('Zhansan','Pass',true)# If the user's readonly is true then the user can only read the
1. You can change the partition mode for the existing data storage mode of a single instance.
1.1 start and configure the service instance and route service instance respectively.
1.2 add an existing single instance to the partition mode.
1.3
Today, I will share with you some interesting things in mongodb, including aggregation and cursors.
1. Aggregation
Common aggregate operations are the same as SQL server, including count, distinct, group, and mapReduce.
count
Count is the simplest,
This article describes how to delete the DB2 admin Administrator account correctly. If you are interested in deleting the actual solution of the DB2admin Administrator account, you can click to view the following articles.
When installing DB2, you
The following articles mainly describe the actual operation process for verifying whether the DB2 database backup is successful or not. for users of the DB2 database, the status of successful backup is particularly important, so how to ensure that
Today, we will focus on the correct solution for using distribution statistics in the DB2 optimizer. We all know that the DB2 database optimizer is a cost-based optimizer. It mainly makes decisions based on the statistical information of tables and
This article mainly describes the implicit start of DB2 transactions. We all know that transactions in Oracle and DB2 databases always start implicitly, and these DBMS do not have certain statements used to start transactions. In Microsoft Access,
The following articles mainly introduce the DB2 database account and user identity. The following describes the specific content of the DB2 database account and user identity, I hope it will be helpful for your future study. The following is a
This article will introduce some experiences of like in DB2, with examples for your reference, and hope to help you.
The use of like in DB2 is restricted. It cannot be followed by a variable or field. Currently, many variables are like '% test %'.
This article will introduce you to some important issues in the process of importing external files into and exporting databases in the DB2 database system for your reference.
Before putting a database into production, the database administrator
Database backup is a key part that DBAs need to master. The following describes how to implement table-level backup for DB2 databases for your reference. I hope you will be enlightened.
Sometimes backing up a full database is quite painful for data
The data types described below are DB2 numeric data types. There are six types. If you are interested in DB2 numeric data types, take a look.
DB2 numeric data types include SMALLINT, INTEGER, BIGINT, DECIMAL (p, s), REAL, and DOUBLE. All values have
What kind of operations can be performed on databases with DB2 permissions? The following describes the relationship between DB2 permissions and operations. If you are interested in DB2 permissions, take a look.
Obtain SYSADM
Users with SYSADM
DB2 tablespace and buffer pool principles: 1. the space size settings of the intermediate table and target fact table are based on the space settings of the source table. (Calculate the data volume of the last year) 2. The data volume of the
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service