Preview Tasks + Class Notes for Lesson 0418

10.19 iptables rule backup and recovery service iptables save saves rules to/etc/sysconfig/iptables Iptables-save > target file Save rules to another file [root@arslinux-01 ~]# iptables-save > /tmp/ipt.txt [root@arslinux-01 ~]# cat !$ cat /tmp/ipt.txt # Generated by iptables-save v1.4.21 on Wed Apr 17 19:56:24 2019 *filter :INPUT ACCEP ...

Posted by phpPunk on Sat, 11 May 2019 14:16:22 +0200

CentOS 7.4 builds a three-node replica cluster of MongoDB4.0 based on user authentication

mongoDB officials no longer recommend using master-slave mode. Instead, the replica set mode is adopted. click For example, So what is a replica set? World of Warcraft always talks about duplication, but in fact these two concepts have almost the same meaning. Duplicate in the game refers to players concentrating on a scene during rush hours ...

Posted by run2web on Sat, 11 May 2019 13:13:03 +0200

Driver development from scratch, linux driver (51, the communication method of IIC bus under Linux [5])

We need to implement communication methods for specific I2C adapters, mainly to implement functions () and master_xfer () of i2c_algorithm. The functionality () function is very simple and is used to return the communication protocol supported by algorithm. Define a method in linux /* To determine what functionality is prese ...

Posted by jqa on Sat, 11 May 2019 12:03:05 +0200

Detailed description of the shell with python to automatically install zabbix monitor

Script environment 1.linux centos 7 system2. The CD-ROM image file has been mounted3. The system can connect to the external network.4. Font links: https://pan.baidu.com/s/1m9WJys5aGuUi-WgBG-zrxw Extraction code: qq6r Experimental steps 1. Upload font files and zabbix scripts to the Linux system / root directory Method 1: Mount Method 2: U ...

Posted by sicKo on Sat, 11 May 2019 10:00:42 +0200

Initialization of RHEL 7/CentOS 7/Fedora 28 Networking

Experiments show that: To get started with Linux, you will generally encounter the following problems: Where do I get the LInux image? How to install Linux system through mirror file? Install a physical machine or a virtual machine? How to configure the network after installing the system? How is the network configuration of virtual machines d ...

Posted by therainmaker53 on Sat, 11 May 2019 00:23:25 +0200

ifname of network interface and ifndex query of interface index under linux

Relevant function interface information: #include <net/if.h> unsigned if_nametoindex(const char *ifname); char *if_indextoname(unsigned ifindex, char *ifname); struct if_nameindex *if_nameindex(void); void if_freenameindex(struct if_nameindex *ptr); if_nametoindex(): Specifies the network interface name string as a param ...

Posted by amithn12 on Fri, 10 May 2019 23:58:15 +0200

Use profiles to specify environment profiles in Spring+Dubbo services

Spring provides profile features to isolate our configuration files so that the corresponding configuration items can be activated in different environments; it is easy to achieve uniform deployment of different configuration items in different environments; Recently, in spring+dubbo's service project, we want to load differen ...

Posted by John Canyon on Fri, 10 May 2019 23:02:27 +0200

Ali Cloud OSS and Tencent Cloud COS Migrate

Use the migration tools provided in Ali and Tencent's help documents to test the migration objects for storing data. 1. Tencent to AliDocument Links: https://help.aliyun.com/document_detail/56990.html?spm=5176.7851628.6.1079.UqBdXKThe OssImport tool migrates data stored locally and in other clouds to OSS with the following features: The rich ...

Posted by DWaller10 on Fri, 10 May 2019 21:58:41 +0200

Linux ctrl-c explain (ctrl-c detail)

Catalog 1 Background posture 2 foreplay 3 dinner 4 systemctl stop docker 5 demo 1 Background posture drive Driver, full name device driver, is a special program added to the operating system, which contains information about hardware devices. This information enables the computer to communicate with the corresponding equipment. interrupt A w ...

Posted by shenmue232 on Fri, 10 May 2019 16:38:56 +0200

centos installation operation and partial understanding of docker

After installing the docker locally the other day and getting familiar with the commands, I still couldn't help but go through a wave of golang mirror deployments on centos. Here are my steps and some ideas.Prepare: A networked centos server with docker installed 1. Not to mention, write a Dockerfile (just want to experience the dockerfile proc ...

Posted by ThaboTheWuff on Fri, 10 May 2019 15:47:38 +0200