Summary of common database commands

1. Create database: mysql> create database test ; // Create a database in mysql. The ID of the database is test. [root@host] # mysqladmin -u root -p create test; / / create a database under linux. The database ID is test. 2. Delete database: mysql> drop database test ; // Delete the database in mysql. The ID o ...

Posted on Thu, 14 May 2020 08:30:58 -0700 by baldwinw

Modify the exception fixup table of page missing interrupt processing in Linux kernel

Recently, I made a low-level mistake while writing kernel modules: Directly access the memory in user mode without using copy? To? User / copy? From? User! In the view of the kernel, the virtual address provided by user state is untrustworthy, so it is very difficult to deal with the page missing interrupt when accessing user state memory i ...

Posted on Wed, 13 May 2020 19:50:22 -0700 by khanfahd

053. Cluster Management - Helm Deployment and Use

1. Overview of Helm 1.1 Introduction to Helm Helm is a package management tool for Kubernetes.Package Manager, like apt in Ubuntu, yum in Centos, or pip in Python, can quickly find, download, and install packages.Typically, each package is called a Chart, and a Chart is a directory (typically, the directory is packaged and compressed to form ...

Posted on Tue, 12 May 2020 00:46:24 -0700 by kettle_drum

Modify ELF executable entry to infect a program

When introducing how to inject code into Linux kernel module in the previous article, I mentioned that it is easy to "modify the entry of ELF file or PE file to jump to its own logic". Is it really easy? Yes, it's really easy. This article is to demonstrate this. Remember the panda burning incense virus. Early computer viruses, incl ...

Posted on Fri, 08 May 2020 20:04:59 -0700 by petrb

Python monitors Linux systems

1. Monitor Linux using open source libraries In this section, we will introduce an open source project, psutil, that is widely used in Python ecology.We will then use psutil to refactor the monitor we wrote in the previous section.In addition, the process management capabilities provided by psutil are briefly described. 1. Introduction to psut ...

Posted on Fri, 08 May 2020 09:25:10 -0700 by erikjan

Docker theory introduction and installation tutorial

Be based on Linux As far as docker is concerned, it is an open source tool to run applications in it, which can be considered as a lightweight virtual machine. Docker's logo is a whale carrying a container (the old logo). The new logo directly simplifies the details and changes the color, as shown below. As you can see from the picture, ...

Posted on Thu, 07 May 2020 19:29:18 -0700 by campsoup1988

Configure jenkins to publish php code

1, Add credentials to jenkins First select credentials > Global > Add credentials to select users and passwords or private keySelect private key mode 2, Install SSH Plugin plug-in When building in Jenkins, you may need to first SSH to a remote server to execute the necessary scripts, and then execute the build. At this point, you need to ...

Posted on Tue, 05 May 2020 11:28:50 -0700 by deception54

statefulset stateful cluster deployment for k8s

pod resources in k8s are divided into stateful (data type container) and stateless (service type container). Data storage in k8s generally mounts storage volumes with volumes. In multi-node cluster mode, the best solution is to provide a storage system (storage system selection conditions: remote access, multi-threaded read and write, etc.), n ...

Posted on Mon, 04 May 2020 12:17:43 -0700 by php_guy

Python -- production environment code package release management

The release of program production environment is the last environment for business online, which requires the functions of source code packaging, release, switching, rollback, version management, etc. this example implements a whole set of processes, in which version switching and rollback are realized by using the soft link of Linux. The spe ...

Posted on Mon, 04 May 2020 08:57:30 -0700 by Yeti

jenkins rpm package installation

1, Environmental description jenkins depends on the java environment. To start jenkins, you need to install jdk1. This installation adopts rpm package, version is jenkins-2.234-1.12.jdk version: jdk-8u51-linux-x64.tar.gz3.jenkins should be used in combination with mvn, version: apache-maven-3.6.3-bin.tar.gz4. Start Jenkins in root mode after i ...

Posted on Mon, 04 May 2020 07:51:53 -0700 by gilijk