Centos Multiple yum Source Configuration Methods
Note: All three methods should be preceded by an action
1. The default yum source after Centos installation is as follows
[root@kangvcar ~]# ll /etc/yum.repos.d/
total 32
-rw-r--r--. 1 root root 1664 Dec 9 2015 CentOS-Base.repo
-rw-r--r--. 1 root root 1309 Dec 9 2015 CentOS-CR.repo
-rw-r--r--. 1 root root 649 Dec 9 2015 CentOS-Debugin ...
Posted by Singularity on Tue, 04 Jun 2019 10:15:12 -0700
Huawei server centos 6.5 dual network card binding operation steps
Recently, a batch of Centos 6.5 server network card binding operation has been completed. Because of the current network production environment, the operation is very cautious, but who knows there are still errors, the two servers directly ping is not working, ran to the computer room. All kinds of ups and downs.
Therefore, I would like to shar ...
Posted by smilinmonki666 on Sat, 01 Jun 2019 12:40:15 -0700
Disable Transparent Huge Pages
Full text translated into MongoDB official manual I've tried to keep the original version. But the capacity is limited...
Boot script
Using tunde and ktune
Test whether the configuration is in effect
Be careful:This page describes how to disable Transparent Huge Page on Red Hat Enterprise Linux and entOS 6 and 7. If you need to disable THP on ...
Posted by fresh on Mon, 27 May 2019 12:24:32 -0700
flume data transmission to kafka
A Brief Introduction to flume
When you read this article, you should have a general understanding of flume, but in order to take care of the beginners, you will still say flume. When you first use flume, you don't need to understand too much about it. Just understand the following figure, you can use flume to transfer log data into kafka. ...
Posted by jbruns on Mon, 27 May 2019 11:32:47 -0700
Rent Configuration in libvirt and SanLock
In previous tests, sanlock's leases were saved in NFS (disk_lease_dir="/var/lib/libvirt/sanlock"), and libvirt's automatic lease management function (auto_disk_leases=1) was used. Here we will try some new configuration methods.
Store leases directly in shared storage (automatic lease management)
There is no way to store leases direct ...
Posted by laanes on Thu, 23 May 2019 11:19:04 -0700
MySql master-slave synchronization
I. Background Introduction
On the morning of September 25, 2017, when I went to work, I found that the company database was kidnapped by hackers and wanted ransom. We use MySql 5.6.37 on the sky wing cloud. Call the customer service and suggest to reinstall the system and MySql. Simply install master-slave synchronization.
Installation en ...
Posted by jarriola on Tue, 21 May 2019 13:23:53 -0700
Local kubeadm builds kubernetes cluster
I. Environmental preparation (Each machine is CentOS 7.6)Each machine executes:
yum install chronyd -y systemctl start chronydvim /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.8.130 master192.168.8.131 node01192.168. ...
Posted by lettie on Mon, 20 May 2019 15:42:14 -0700
Three methods of installing software package, introduction of rpm package, usage of rpm tool, usage of Yum tool and building local warehouse with yum
Three Ways to Install Software Packages
rpm tools
yum tools
Source package
rpm
RPM command is the management tool of RPM software package. Rpm was originally a Red Hat Linux distribution program specially designed to manage various Linux suites. It is popular because it follows GPL rules and is powerful and convenient. It is gradually adopte ...
Posted by aleksandra on Sat, 18 May 2019 19:22:32 -0700
RedHat 7.0 updates yum source (trampled pit)
Preface
Although the redhat system is installed by default with yum, the redhat update package is only valid for registered users. For us poor people, we have to manually change to the CentOS update package.
Initially searching for information on the Internet: Redhat 7 uses the Yum network source of CentOS 7
The basic process is:
Remove t ...
Posted by mgrphp on Sat, 18 May 2019 06:38:15 -0700
An Example of Matplotlib Initial Code for Python Drawing Library
With Matplotlib, various images can be easily generated, such as histogram, spectrogram, bar graph, scatter plot, etc.
Starter Code Example
import matplotlib.pyplot as plt
import numpy as np
# An array of 50 elements is generated with np.linspace and evenly distributed over (0,2*pi) intervals.
x = np.linspace( ...
Posted by rockobop on Sat, 18 May 2019 01:38:24 -0700