How to deploy node+mongodb project on Aliyun server and optimize its performance

1. Process Develop front-end and back-end programs.Buying Servers and Domain NamesInstall the required environment on the server (this project is node and mongodb)Open Port on Server and Setting RulesProvide HTTP services or set up proxies with nginx, apache, or tomcatUpload project code or use code cloud or gihub to pull your code to the serve ...

Posted by luv2sd on Tue, 27 Aug 2019 12:34:06 +0200

10 Minutes Implementation of Short Link Service (Node + Express + MongoDB)

Short links are more or less used by us. The so-called short links are to generate a shorter link according to the long original link url. Visiting short links can jump to the corresponding original link. This is good in: 1. url is more beautiful; 2. It is easy to save and disseminate; 3. Some websites have word limit in content publishing, sho ...

Posted by mansuang on Wed, 21 Aug 2019 11:16:42 +0200

Async Generator Functions in JavaScript

Original< Async Generator Functions in JavaScript> Fan Xiaofan The TC39 asynchronous iterator proposal for introducing for/await/of into javascript also introduces the concept of asynchronous generator function. Now, javascript has six different function types. Ordinary function() {} Arrow function () => {} Asynchron ...

Posted by gardan06 on Mon, 19 Aug 2019 10:17:48 +0200

mongodb version upgrade

mongodb version upgrade Background At present, the company's version of mongodb is the old version of 3.0.6. The company hopes to upgrade the version of mongodb to more than 3.6, so it's a pain. No database upgrade has been done before. The first reaction in my mind is not to redeploy a set of mongodb ...

Posted by johncollins on Tue, 30 Jul 2019 10:08:20 +0200

Python crawler introductory course [14]: Shijiazhuang interactive data crawling - Web page analysis

Today, we grab a website, this website, the content is related to netizens'messages and replies, particularly simple, but the website is gov. The website ishttp://www.sjz.gov.cn/col/1490066682000/index.html First of all, in order to learn, no malicious crawl information, believe it or not, I do not ha ...

Posted by coder4Ever on Fri, 26 Jul 2019 10:18:59 +0200

[Python] Shijiazhuang Interactive Data Crawling-Web Page Analysis

Today, we grab a website, this website, the content is related to netizens'messages and replies, particularly simple, but the website is gov. The website ishttp://www.sjz.gov.cn/col/1490066682000/index.html First of all, in order to learn, no malicious crawl information, believe it or not, I do not ha ...

Posted by TimC on Wed, 24 Jul 2019 10:37:21 +0200

Node+mongo+vue Development and Management Platform Deployed to Aliyun Server

Introduction: Using vue+element-ui to develop the front-end, node.js+express+mongodb to develop the back-end, deployed to the Ali cloud server (mirror information Node.js). 1. Apply for Aliyun Server You can apply for the cheapest one to practice. CentOS is selected for system image and Node.js is selected for application image (version 4.8.4, ...

Posted by wama_tech on Tue, 23 Jul 2019 13:38:54 +0200

[MongoDB] 02, MongoDB index and replication

Index      Indexing can usually greatly improve the efficiency of queries. Without indexing, MongoDB must scan every file in the collection and select those records that meet the query criteria when reading data. The efficiency of this kind of query is very low, especially when dealing with a large amount of data, the query can t ...

Posted by dolce on Tue, 16 Jul 2019 02:52:22 +0200

Notes on Array arrays in Collection in MongoDB

Notes on Array arrays in Collection in MongoDB I encountered an Array array query problem in Collection of mongoDB in the last two days. I was very clear after I couldn't understand it. I want to share it with you today. The problem I encountered at that time was that I now have two documents, structured as follows: { "_id" : ObjectId("58e8 ...

Posted by xsgatour on Thu, 11 Jul 2019 18:14:41 +0200

How do I implement distributed ID s using MongoDB+Springboot?

How do I implement distributed ID s in SpringCloud distributed systems using MongoDB? 1. Background How to implement distributed IDS and search for relevant data will generally give you these solutions: Use database self-incrementing Id Use reids incr command Use UUID snowflake algorithm for Twitter Generating unique ID s using zookeeper Objec ...

Posted by pdmiller on Wed, 10 Jul 2019 19:17:39 +0200