Getting started with Linux - common commands
Common commands
There are many commands in Linux. With the options of various commands, there are really thousands. How do we remember these commands? The answer is only two words: multi-purpose. We don't have many commonly used linux commands. As long as we use and practice frequently, we will master them quickly. For some uncommon commands, ...
Added by raytri on Sat, 04 Sep 2021 06:05:58 +0300
RHCE 12th day tuned
Tuning system
System administrators can adjust various device settings based on a variety of use case workloads to optimize system performance. The tuned daemon uses a tuning profile that reflects the requirements of a specific workload to apply tuning in both static and dynamic ways.
Configuring the static tuning tuned daemon applies the ...
Added by lulon83 on Thu, 02 Sep 2021 20:31:54 +0300
Deploy K8S via kubedm networking
environmental information
roleIPsystemmaster10.4.7.152Ubuntu18.04node10.4.7.162Ubuntu18.04
1. Operating system configuration (both nodes need to execute)
Operation node: master, node
Disable swap
swapoff -a #temporary
sed -ri 's/.*swap.*/#&/' /etc/fstab #take/etc/fstab Document swap Line use#Notes (permanently disabled)
Turn off ...
Added by MathewByrne on Thu, 02 Sep 2021 10:53:58 +0300
Disk management - logical volumes
Disk management - logical volumes
introduce
Introduction to logical volumes
Logical volume manager is a mechanism used by Linux system to manage hard disk partitions The original intention is to solve the defect that the hard disk device is not easy to modify the partition size after creating the partition. Although it is theoretically fea ...
Added by holowugz on Wed, 01 Sep 2021 22:34:04 +0300
Combining VRRP and floating route to configure active and standby routes
1: Experimental environment
1.1 environment:
Huawei ensp software
1.2 equipment
PC, router and switchTwo PC s in initialization state, two routers in initialization state and three switches
2, Experimental requirements
SW1 and SW2 constitute the primary and secondary routes. When one party hangs up, the data will pass through the other party. ...
Added by aufkes on Thu, 28 May 2020 18:40:38 +0300
Rendering host file written by ansible role
The hosts file is usually used when deploying a distributed cluster. We usually write in the ip address and host name. How to implement rendering when writing Ansible?Define the roles first
[root@ansible kubeadm-high-install]# ls
ansible.cfg group_vars hosts roles site-all.yml
The first file takes the default etc/ansible cfg file and remov ...
Added by dutcbhboy83 on Wed, 27 May 2020 18:20:53 +0300
HP ssacli tool use
Under the linux system, the disk is replaced, but for the HP array card, the common MegaCli, storcli and percli can not get the disk information. At this time, the special tool ssacli is needed.rpm package download address: https://downloads.linux.hpe.com/SDR/repo/mcp/centos/7/x86_64/current/
View raid card information (including controller st ...
Added by flumpy on Tue, 26 May 2020 19:04:53 +0300
docker installation and use under CentOS 7
docker start stop
sudo systemctl start docker.service
sudo systemctl stop docker.service
sudo systemctl restart docker.service
sudo systemctl status docker.service
sudo systemctl enable docker
sudo docker ps -a ## <-- List existing images ##
sudo docker stop 17dd4ab4cda2 ##<-- 17dd4ab4cda2 by container id ##
sudo docker rm 17dd4ab4cda ...
Added by Phirus on Thu, 21 May 2020 17:37:51 +0300
elasticsearch 7.7 add user name and password authentication
1. First of all, I do not need to install x-pack separately when the ES version of single instance and single node is 7.7
{
"name" : "node-1",
"cluster_name" : "myes",
"cluster_uuid" : "OGiYluA_Sxynl2bXl1TcbQ",
"version" : {
"number" : "7.7.0",
"build_flavor" : "default",
"build_type" : "rpm",
"build_hash" : "81 ...
Added by bimo on Mon, 18 May 2020 17:24:39 +0300
Installing Docker and Docker compose in CentOS 7
Environmental inspection
Enter root
All of the following are performed as root
sudo -i
View Linux distribution
[root@localhost ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7 ...
Added by ShaolinF on Thu, 07 May 2020 18:19:26 +0300