CentOS -- Create new users and enable key login
Catalog
New user
Authorization for new users
Method 1: Add a new user to the wheel user group
Method 2: Add new users to sudoers list
New user enabled SSH key login
Other
Prohibit root users from using SSH to log in
Using unconventional SSH ports
Prohibit ping
...
Added by Maiku on Wed, 18 Sep 2019 14:45:52 +0300
Linux System Deployment YUM Remote Warehouse and NFS Sharing Service
YUM overview
YUM
Software Update Mechanism Based on RPM Package Construction
Automatically resolving dependencies
All packages are provided by a centralized YUM software repository
The Way of Providing Software Warehouse
FTP service: ftp://...
HTTP service: http://...
Local directory: file://...
Sources of RPM Packages
Collection of RPM Packet ...
Added by darkvengance on Tue, 17 Sep 2019 17:25:20 +0300
Docker Swarm from Deployment to Basic Operations
About Docker Swarm
Docker Swarm consists of two parts:
Docker Cluster: Organize one or more Docker nodes so that users can manage them in a cluster;
Application orchestration: There is a set of API s for deploying and managing containers;
Official information: https://docs.docker.com/swarm/
network diagram
The following is a typical Docker Sw ...
Added by fr8 on Fri, 13 Sep 2019 06:40:31 +0300
CentOS 7 Service Control and Optimized Startup Process
CentOS 7 System Service Control
In CentOS system, the control scripts of various system services are placed in the directory of / usr / lib / system by default. The system CTL command tool can control the specified system services.
System CTL command
Common formats
System CTL [control type] [service name]
control type
start: Run the spec ...
Added by php_tom on Tue, 27 Aug 2019 13:03:32 +0300
Linux boot repair
System boot is the beginning of the operation of an operating system. If there is a problem in boot, the system will not work properly. Is there any way to repair it? The answer is yes.
CentOS 7 boot process
1. Boot-up self-check BIOS
2.MBR boot
3.GRUB menu
4. Loading kernel and memory file system initramfs
5. Loading hardware driver and init ...
Added by dgs on Tue, 27 Aug 2019 11:45:09 +0300
Common RAID and Soft RAID Creation in Linux
RAID can greatly improve disk performance and reliability. How can such a good technology not be mastered? This article introduces some common RAID and its soft RAID creation methods on Linux.
mdadm
Creating Soft RAID
Mdadm-C-v/dev/Created device name-l level-n number added disk [-x number added hot backup disk]
- C: Create a new array -- ...
Added by sissy on Sun, 25 Aug 2019 14:48:23 +0300
k8s Practice: Pod Resource Management
Environmental description:
host name
Operating System Version
ip
docker version
kubelet version
To configure
Remarks
master
Centos 7.6.1810
172.27.9.131
Docker 18.09.6
V1.14.2
2C2G
Remarks
node01
Centos 7.6.1810
172.27.9.135
Docker 18.09.6
V1.14.2
2C2G
Remarks
node02
Centos 7.6.1810
172.27.9.136
Docker 18.09.6
V1.14.2
2C2G
Remarks
...
Added by red-x on Thu, 22 Aug 2019 12:13:07 +0300
Dockerfile you must know
This article has been added to the Index of.NET Core on K8S Learning Practice Series Articles , you can click to see more articles related to container technology.
1. About Dockerfile
The most common way to create mirrors in a Docker is to use a Dockerfile.Dockerfile is a description file of a Docker image, which we can understand as A, B, C, D ...
Added by nc_brox on Tue, 13 Aug 2019 05:32:25 +0300
Dual-master Keepalive and lvs realize automatic monitoring of host status and real-time switching
Environmental Science:
202.106.0.17: as Client
202.106.0.27: as router
192.168.205.37: as lvs1
192.168.205.47: as lvs2
192.168.205.57: as websrv1
192.168.205.67: as websrv2
192.168.205.77: as websrv3
192.168.205.87: as websrv4 Note: Firealld is disabled by default for all operating systems, IPtable is empty, selinux is closed
Edition:
O ...
Added by tharagleb on Wed, 07 Aug 2019 13:19:36 +0300
MariaDB semi-synchronous test
Environmental Science:
192.168.205.17: as master server
192.168.205.27: as slave server
192.168.205.37: as slave server
Edition:
OS: centos 7 1810 with mini install
mariadb-5.5.60
Purpose:
By default, the replication function of MySQL is asynchronous. Asynchronous replication can provide the best performance. The main library sends the ...
Added by Ameslee on Wed, 07 Aug 2019 07:56:52 +0300