A complete solution to the installation and version switching of PHP on Ubuntu

The official sources on Ubuntu, such as PHP5.6.x in Ubuntu 14.04 and PHP7.0.x in Ubuntu 16.04, what should I do if I want to install PHP7.1 and PHP7.2 on Ubuntu 16.04? The answer is to install from a third-party source, ppa:ondrej/php It is a well-known PHP source (currently maintaining php5.6,php7.0,php7.1,php7.2). Use this source to install t ...

Posted by RobNewYork on Fri, 03 Apr 2020 15:54:46 -0700

python version control

Reference article: Thanks to Blogger 1 There are three levels of python version control: system level, folder level and pycharm level system level First, check the number of python versions installed in the system: Method 1: zht@zht0:~$ ls /usr/bin/python* /usr/bin/python /usr/bin/python2 /usr/bin/python2.7 /usr/b ...

Posted by pob123 on Thu, 02 Apr 2020 19:34:11 -0700

Under Ubuntu 14.04, install redis-3.2.0 and start up

Download it on the official website Redis -3.2.0.tar.gz, put redis-3.2.0.tar.gz in the / opt directory Unzip redis-3.2.0.tar.gz xiaoyao@xiaoyao-virtual-machine:/opt$ sudo tar -zxvf redis-3.2.0.tar.gz Compile redis xiaoyao@xiaoyao-virtual-machine:/opt$ cd redis-3.2.0/ xiaoyao@xiaoyao-virtual-machine:/opt/redis-3.2.0$ sudo m ...

Posted by hoopplaya4 on Tue, 31 Mar 2020 13:28:41 -0700

MySQL Pt online tool installation and use

In the production environment, the ddl execution of mysql does not affect the normal use of online, and the tool Pt online is often used Install Pt Online Install DBI wget http://www.cpan.org/modules/by-module/DBD/DBI-1.634.tar.gztar -xf DBI-1.634.tar.gzcd DBI-1.634/ perl Makefile.PLmake && sudo make install Install ...

Posted by sheac on Sun, 29 Mar 2020 11:44:11 -0700

Technology sharing | how to use bcc tools to observe MySQL latency

Author: Liu An A member of the test team of akesheng, who is mainly responsible for the related test tasks of TXLE open source project, is good at Python automatic test development, and is recently absorbed in the relevant knowledge of Linux performance analysis and optimization. Source: original contribution *Aikesheng is produced by the op ...

Posted by alex57 on Tue, 24 Mar 2020 02:54:48 -0700

Kubernetes cluster practice (08) upgrading cluster

ECK has not been deployed on the cluster for a long time and has not been officially put into use. Many problems have been found in the trial phase. Now it is about to be formally deployed. I want to upgrade the k8s cluster when it is formally deployed. After reading some data, since my cluster has only one master node, although it is very pow ...

Posted by flash-genie on Sat, 21 Mar 2020 07:14:15 -0700

Ansible automatic operation and maintenance learning 5: detailed explanation and optimization of ansible configuration file

1, Details of common parametersThis paper is about https://blog.51cto.com/8355320/2471354 The parameter configuration of is extended.The default configuration file of ansible is / etc/ansible/ansible.cfg. Parameters of ansible can be adjusted in the configuration file, including concurrent thread, user, module path, configuration optimization, ...

Posted by hopelessX on Fri, 20 Mar 2020 04:29:59 -0700

Kubernetes 1.17.4 quick upgrade

Kubernetes 1.17.4 has been officially released, and it can also be upgraded directly for highly available clusters. The quick upgrade (including the quick download link of domestic image) includes three main steps: upgrading the kubeadm/kubectl/kubelet version, pulling the image, and upgrading the kubernetes cluster. Reference The software lock ...

Posted by jonah on Wed, 18 Mar 2020 09:28:32 -0700

Ansible-Secret Login and Host List Inventory

Ansible's specified user and password login, secret-free login, specified ssh port, and host list Inventory configuration It is not necessary to modify the ansible configuration in practice, or it is only necessary to modify the ansible configuration. Add user account Explain: 1. Login accounts used by operations and maintenance personnel; 2 ...

Posted by artist-ink on Sun, 15 Mar 2020 09:06:45 -0700

tcpdump powerful network packet capturing tool tutorial

tcpdump tcpdump is a necessary tool in debugging network communication program. tcpdump is very powerful, you can see every detail of network communication. For example, TCP can see 3 handshakes, PUSH/ACK data push, close 4 waves, all details. Including the number of bytes and time of each network packet reception. Usage method The simplest exa ...

Posted by johnrcornell on Sat, 14 Mar 2020 01:03:59 -0700