The implementation of crond for regular backup of CentOS 7.2 database (taking Kingbase 7 as an example)

When a project goes online, it often needs to back up the database regularly to deal with uncertain environment and unknown problems. It is arranged as follows: What is crond? crond and crontab are inseparable. Crontab is a command, common in Unix and Unix like operating systems, which is used to set periodically executed instructions. The co ...

Posted by jswash on Thu, 07 Nov 2019 19:56:55 -0800

php interprocess communication semaphores and shared memory

Why interprocess communication is needed When a process accesses critical resources, it is possible for multiple processes to access critical resources at the same time in the same time, resulting in unexpected errors due to the uncertainty of who executes first between processes (which depends on the process scheduling algorithm of the kernel, ...

Posted by oh_maestro on Thu, 07 Nov 2019 00:22:33 -0800

vsftpd service configuration in Linux (anonymous, user, virtual user)

vsftpd overview vsftpd is the abbreviation of "very secure FTP daemon". Security is one of its biggest characteristics. vsftpd is the name of a server running on a UNIX like operating system. It can run on systems such as Linux, BSD, Solaris, HP UNIX, etc. it is a completely free, open source FTP server software that supports many f ...

Posted by Shovinus on Tue, 05 Nov 2019 09:04:01 -0800

go language defragmentation time

Time and date are often used in our programming. This paper mainly introduces the basic usage of time package built in Go language. Import package in Go language Single line import import "time" import "fmt" Multi line import import ( "fmt" "time" ) time package The time.Time type represents time. func main(){ now := time.Now() ...

Posted by sandrine2411 on Sun, 03 Nov 2019 16:27:47 -0800

How to manage the network with Linux command line efficiently?

Preface In our daily work, the Linux server operating system that we often use, whether it is to view the information of network devices, manage network interfaces, download files, debug network problems or view network statistics, can be completed by commands under the terminal. ifconfig / ip a The command ifconfig is similar to ip a, which is ...

Posted by jazz_snob on Sun, 03 Nov 2019 01:49:02 -0700

go language time / timestamp operation

basic operation 01: get current time dateTime := time.Now() fmt.Println(dateTime) 02: get month day hour minute second nanosecond year := time.Now().Year() //year fmt.Println(year) month := time.Now().Month() //month fmt.Println(month) day := time.Now().Day() //day fmt.Println(day) hour := time.Now().Hour() //hour fmt.Println(hour) minute ...

Posted by djpeterlewis on Thu, 31 Oct 2019 03:52:56 -0700

Modification of SnowFlake algorithm in Twitter: a 53bit distributed ID generator compatible with JS truncation

Preface    as we all know, in the distributed global unique ID generator scheme, SnowFlake algorithm, which is open-source by Twitter, is compared with the transponder algorithm that needs to be deployed represented by meituan Leaf. Because of its advantages such as high performance, simple code, no dependence on third-party services ...

Posted by blacksnday on Mon, 28 Oct 2019 00:09:21 -0700

[series] - go in API routing middleware signature verification

overview First, synchronize the following project overview: The last article shared that Jaeger link tracking, a routing middleware, had an unexpected response. The "Go China" public account was also forwarded. Many friends joined me to communicate with each other and called me "God". In fact, what God am I? It's just a loc ...

Posted by hustler on Sat, 26 Oct 2019 03:13:21 -0700

Unix Network Programming Volume 1 Intermediate

Unix Network Programming Volume 1 Intermediate Basic TCP socket programming socket connect bind listen accept close() Server: display client IP and port number Concurrent server Local and foreign protocol address functions Sample TCP client and server programs Client Server Workflow Normal startup ...

Posted by TheKiller on Wed, 23 Oct 2019 23:08:31 -0700

A record of the experience of writing shell script -- the disaster caused by special characters

This article first appeared in wechat public account "my little bowl soup". You can pay attention to it by scanning the QR code at the end of the article. Welcome to exchange! In the process of redis containerization, it involves extending the cpu, memory and maxmemory value of redis instance vertically. The pod managed by statefull ...

Posted by ORiGIN on Wed, 23 Oct 2019 12:01:05 -0700