Replace CentOS yum source under RedHat6.9

Catalog Check and delete the original yum source Download the yum source for CentOS Install RPM package yum configuration Modify yum configuration Clean up and rebuild cache Because red hat's Yum needs to be charged and registered before it can be used. So I want to update the yum source to ...

Posted by Bizzle on Wed, 19 Feb 2020 05:44:06 -0800

Python Crash Course Reading Notes - Chapter 2: Variables and Simple Data Types

variable In the file hello_world.py,.Py is the suffix of the python file and is therefore parsed using the Python interpreter. $ cat hello_world.py print("Hello Python world!") Now change to variable form, message is variable, and each variable is associated with a value: message = "Hello Python worl ...

Posted by gfadmin on Wed, 15 Jan 2020 16:49:55 -0800

gdb debugging practice

One code #include<iostream> using namespace std; int func(int n){ int result=0; for(int i=1;i<=n;i++){ result+=i; } return result; } int main(){ int arr[10]; arr[0]=0; arr[1]=1; for(int i=2;i<10;i++){ arr[i]=arr[i-1]+arr[i-2]; } cout<<"arr[9]"<<arr ...

Posted by bigger on Tue, 12 Nov 2019 08:14:52 -0800

linux System nginx Server Replacement Aliyun Certificate

A blank page. Visits to webpages are also prompts. Skip the prompt to continue visiting, the page is normal. So it's not the system that went wrong. The certificate has expired. Chief, give me a certificate and compress the package. It's this after decompression. So where should I put this? Do ...

Posted by wei on Sun, 06 Oct 2019 08:39:22 -0700

SHELL script PPT script

Write on the premise that you can use it 1. Determine the type of all files in / var / directory [root@linux1 scripts]# cat filetype.sh #!/bin/bash for i in $(find /var);do if [ -b $i ];then echo "$i It's a block device." elif [ -c $i ];then echo "$i It's a character device." elif [ -f $i ];then echo "$i It's an or ...

Posted by FatStratCat on Thu, 03 Oct 2019 09:48:53 -0700

[Macau Education Internal Documentation]-RPM Production Guide

Links to the original text: https://my.oschina.net/magedu/blog/600981 This article is original, reprinted or any other method of use need to be authorized by the author! ...

Posted by pestilence669 on Sun, 15 Sep 2019 03:42:24 -0700

Congparser Module of Python Full Stack Road Standard Library Series

configparser is used to process files in a specific format, which essentially uses open to manipulate files. The configuration file format is as follows: # The first way of annotation ; The second way of annotation [node1] # node k1 = v1 # key = v ...

Posted by Giri J on Sun, 18 Aug 2019 23:29:38 -0700

c++ Polymorphism from the Perspective of c

Catalog 1. Overview 2. Preparatory knowledge points before starting 2.1 Do you know what different types of pointers mean? 2.2c file is compiled into a target file. What does the target file contain? 3.c++ Static Polymorphism 3.1 Actual coding operation 3.2 Implementation Principle 3.3 Understanding from the Perspective of c 4.c++ Dynamic ...

Posted by cshaw on Tue, 16 Jul 2019 12:52:35 -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

Spring Boot - Undertow Container Start

Spring Boot : Undertow   Undertow Undertow is a NIO-based high-performance Web embedded server developed by Red Hat Untertow features: Lightweight: It's a Web server, but unlike traditional Web servers, which have container concept, it consists of two core Jar packages. Loading a Web application can be less than 10MB of memory. ...

Posted by Stryker250 on Sun, 03 Feb 2019 12:03:16 -0800