Conditional statements for Shell programming

catalogue introduction 1, Condition test 1. File test and integer test (1) test command (2) File test (3) Integer test 2. String test and logic test (1) String test (2) Logic test 2, if statement 1. if single branch statement (1) Single branch structure (2) Syntax format of single branch if statement (3) Structure diagram of singl ...

Posted by lomokev on Sat, 04 Sep 2021 22:50:45 -0700

iptables, four tables and five chains, use cases and exercises

Catalog One: What is a firewall 1. What is a firewall 2. Firewall Classification   3. The principle of firewall 4. What filter network does the firewall pass through?     5. What is a table 6. What is a chain 7. Scenarios for using chains 8. Relationship between tables and chains 9. iptables syntax format 10. ...

Posted by biz0r on Sat, 04 Sep 2021 19:35:01 -0700

LVM Logical Volume Manager

LVM Logical Volume Manager The purpose is to solve two problems: 1. Use many small hard disks with combined capacity; 2. Usually, it is difficult to adjust partition size after partition is completed. To dynamically adjust (enlarge or shrink) the disk partition, you can use LVM. 3.xfs file format does not support zooming out 4. When RAI ...

Posted by mikejs on Sat, 04 Sep 2021 10:11:13 -0700

linux system function learning_ access function, chmod function, chown function, truncate function, rename function and link related functions

linux system function learning_( 5)access function, chmod function, chown function, truncate function, rename function and link related functions access() function Function: test whether the specified file has certain permissions Prototype: int access(const char *pathname, int mode); Parameters: Pathname - > file name Mode - > permissio ...

Posted by dookie on Fri, 03 Sep 2021 16:30:00 -0700

Disk management RAID

Disk management RAID summary RAID: (Redundant Array of Independent Disk)RAID initially developed a certain level of data protection technology in order to combine small cheap disks to replace large expensive disks, and hope that the access to data will not be lost when the disk fails.RAID is a redundant array composed of multiple cheap disks. ...

Posted by Design on Thu, 02 Sep 2021 23:30:31 -0700

Linux directory and file management

1. Linux directory structure 1.2, Root Directory Location starting point for all partitions, directories, files, etc. Use a separate'/'for the entire tree directory structure 1.2. Tree Catalog Structure Common subdirectories: /root/bin/boot/dev/etc/home/var/usr/sbin/opt/mnt 1.3. Common subdirectories and their functions /(root)The ro ...

Posted by Panthers on Thu, 02 Sep 2021 16:29:54 -0700

Linux - teaches you how to efficiently install a batch network

Introduction In large-scale Linux applications, servers are often not equipped with CD-ROM drives. In this case, how can you quickly install the system for tens or hundreds of bare-metal servers?Let me introduce how to install the system remotely through PXE technology and to perform unattended installation. 1. Deploy PXE Remote Insta ...

Posted by nogray on Thu, 02 Sep 2021 09:56:21 -0700

Android advanced - Binder of Android cross process communication mechanism, successfully joined Tencent

Through system call, user space can access kernel space. How does it access kernel space? The dynamic loadable kernel module mechanism of Linux solves this problem. The module is a program with independent functions. It can be compiled separately, but it can not run independently. In this way, the Android system can complete the communication b ...

Posted by Lillefix on Thu, 02 Sep 2021 00:14:46 -0700

Getting started with middleware mycat (1): Deployment and introduction

During the initial testing process, the project originally used kingshard as the middleware, but during the testing process, we found that the join does not support different sub-tables, so we can only choose to give up and change to mycat to do the testing Download address is [root@gzsd-ks01-101110214 download]# wget http://dl.mycat.i ...

Posted by Aptana on Fri, 10 Jul 2020 09:18:41 -0700

Deploy and install MySQL 5.6.23 on linux

download Download lrzsz first: upload mysql package on window s to linux yum -y install lrzsz Enter / usr/local directory rz: select mysql package Check if your computer has mysql installed ps -ef|grep mysqld root 2493 2423 0 19:48 pts/3 00:00:00 grep mysqld rpm -qa |grep -i mysql Unzip and rename the uploaded mysql ...

Posted by hmgroen on Thu, 02 Jul 2020 09:16:59 -0700