MongoDB 4.2 Kernel Resolution - Change Stream

MongoDB has supported the change stream capability since version 3.6 (many enhancements have been made in versions 4.0 and 4.2) for subscribing to modifications within MongoDB. change stream can be used for incremental data migration, synchronization between MongoDB and for applying MongoDB's incremental subscription to other related systems; f ...

Added by hubbardude on Sun, 05 Jan 2020 05:42:03 +0200

LNMP schema (Nginx access log, Nginx log cutting, static file does not record log and expiration time)

Nginx access log 1. Open the configuration file and search for log? Format vim /usr/local/nginx/conf/nginx.conf 2. Meaning of common variables in access log $remote_addr: client IP (public IP) $HTTP "X" forwarded "for: IP of proxy server $time_local: server local time $host: access host name (domain name) $request_uri: url add ...

Added by pietbez on Sat, 04 Jan 2020 21:41:18 +0200

MongoDB permission management II

The mongodb configuration file is as follows: [root@localhost ~]# cat /usr/local/mongodb/mongod.cnf bind_ip = 0.0.0.0 logpath=/data/mongodb/logs/mongodb.log logappend = true fork = true #auth = true port = 6068 dbpath=/data/mongodb/data pidfilepath=/data/mongodb/mongod.pid root super administrator privileges:Close mongod.cnf profile parameter ...

Added by Vizor on Fri, 03 Jan 2020 03:00:43 +0200

Two common methods of C program to realize automatic startup of software

C ා / WPF / WinForm /. Net program code realization software program starts automatically two commonly used method function examples and examples with detailed notes Method 1: create the shortcut of the software to the automatic startup directory of the computer (without administrator permission) 1. Necessary references using System; using Sys ...

Added by Irresistable on Thu, 02 Jan 2020 01:48:05 +0200

linux formatted text output

There is no standardized format for Linux text output, which is not easy to watch. Today, I have studied the following format: awk; awk  '{printf "%-18s%-8s%-8s%-8s%-55s%-30s%-50s\n",$1,$2,$3,$4,$5,$6,$7}'  cpu.log > cpu_$tsSuf.log   If you want to modify the source file in the shell, you can export it to a temporary file ...

Added by Moharo on Wed, 01 Jan 2020 12:22:53 +0200

Shell script array

bash supports one-dimensional arrays (multi-dimensional arrays are not supported) and does not limit the size of arrays. Similar to C language, the subscript of array elements is numbered from 0. To get the elements in the array, the subscript should be used. The subscript can be an integer or an arithmetic expression, and its ...

Added by t_galan on Tue, 31 Dec 2019 22:51:13 +0200

20180921 su and sudo commands, restrict root user to log in remotely through ssh

su command User switching. su # Switch to root su username # Switch to username user # When su is followed by - the various environments of the current user are initialized su - username # Specifying users to execute certain commands su - -c "touch /tmp/testfile02.txt" test06 # As test06 user at / tmp ...

Added by fluteflute on Fri, 27 Dec 2019 22:47:54 +0200

linux network management command httpstat

Explain httpstat is a python script, which reflects curl statistical analysis in a wonderful and proper way. It is a single script, compatible with Python 3, and does not need to install additional software (dependency) on the user's system. In essence, it is an encapsulation of cURL tool, which means you can use several valid ...

Added by Twentyoneth on Wed, 25 Dec 2019 19:07:08 +0200

Slot slot of vue

1. The slot template is a slot, which is an empty shell, because its display and hiding as well as the final html template display are controlled by the parent component. However, the location of slot display is determined by the child component itself. The template from the parent component will display the slot in the future. ...

Added by San_John on Sat, 21 Dec 2019 17:05:11 +0200

Interaction between MySQL database and python

Of course, what MySQL does not know is that the old iron self Baidu is wonderful, ha ha! In short, MySQL is a kind of relational database management system. Different data contents are put into different data tables. Different tables can be related, corresponding or not. The operation of data is nothing but CURD (add, delete, ...

Added by MarineX69 on Fri, 20 Dec 2019 17:33:01 +0200