Centos installs supervisor to guard the Redis process
Based on business problems, redis was added to the project for caching and queuing. But now we just install and deploy on a single server, without purchasing other services like Ali Cloud, and without building master and slave.
This leads to problems. If the redis process is accidentally blocked, then the business can not be carried out. This ...
Posted by glitch003 on Fri, 09 Aug 2019 01:33:27 -0700
Getting shell script output in Linux C-c program (such as getting system command output)
Catalog
1. Use of temporary documents
1.1 Reorientation using shell
1.2 freopen standard output to file
2. Use anonymous pipes
3. Use popen
4. Summary
1. Use of temporary documents
1.1 Reorientation using shell
The first idea is to redirect the command output to a temporary file, read the t ...
Posted by cairesdesigns on Thu, 08 Aug 2019 00:38:19 -0700
IV. Basic Component - Controller
- Restore content to start
brief introduction
Previous demonstrations have shown that placing all request processing logic in the closure function of the routing file is obviously unreasonable. We need to use the controller class to organize and manage relatively complex business logic processing. Controllers are used to encapsulate related H ...
Posted by witham on Sun, 28 Jul 2019 02:56:12 -0700
9102, Play Mail System Again: Installation
The original is published on a personal site: GitDiG.com , link to the original text: 9102, Play Mail System Again: Installation
This article was originally intended to be written in the middle of a series of articles about the mail system in 9102, but it was the first to do so.This series will include the following three articles:
[] 9102, P ...
Posted by Ali_baba on Thu, 25 Jul 2019 18:12:52 -0700
Advanced query operations for python database-mongoDB (55)
MongoDB Index
Why use index?
Assuming there is a book, you want to see what Chapter 6, Section 6, says, and what you will do, the average person must go to the catalogue, find the corresponding pages of this section, and then turn to this page. This is the catalog index, which helps readers quickly find the chapters they want. In databases, w ...
Posted by rajb on Tue, 16 Jul 2019 11:56:21 -0700
Linux account password expiration security policy settings
In Linux system management, it is sometimes necessary to set account password complexity (length), password expiration policy and so on, which is mainly controlled by some parameters in the / etc/login.defs parameter file. It is mainly used for user account restriction. The parameters are as follows:/etc/login.defs:# Password aging&nb ...
Posted by Cell0518 on Sun, 14 Jul 2019 14:09:05 -0700
Api of Node.js File System
Api of Node.js File System
//Public citation
var fs = require('fs'),
path = require('path');
1. readFile function for reading files
//readFile(filename,[options],callback);
/**
* filename, Required parameter, file name
* [options],Optional parameters, can specify flag (file operation options, such as r + read and write; w + read and ...
Posted by embtech on Mon, 01 Jul 2019 16:12:57 -0700
IPC message queue
I. What is a message queue Message queue:
Message queuing provides a way to send a data block from one process to another. Each data block is considered to have a type. The data block received by the recipient process can have different type values. We can avoid the synchronization and blocking problems of named pipes by sending messages. So ...
Posted by coelex on Tue, 25 Jun 2019 15:14:13 -0700
Android Compiler SDL 2 and demo Display (2.0.5)
What is SDL (from Baidu Encyclopedia):
SDL (Simple Direct Media Layer) is an open source cross-platform multimedia development library written in C language. SDL provides several functions to control the input and output of images, sounds, and so that developers can develop across multiple platforms (Linux, Windows, Mac) with the same or simil ...
Posted by mitwess on Thu, 20 Jun 2019 13:13:17 -0700
CentOS6 Disc Merge
Introduction: Systems before CentOS6 and CentOS6 will store the system on two discs, DVD1 and DVD2. DVD1 can be used to install the operating system. System installation package files are stored in DVD1 and DVD2 respectively.
When installing software using local yum sources, if you only use the package files on one disc, the installation ...
Posted by DJ Judas on Wed, 19 Jun 2019 09:55:58 -0700