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 ...
Posted by Scorptique on Thu, 21 May 2020 16:38:11 +0200
Self made certificate of Android HTTPS realizes bidirectional authentication (OkHttp + Retrofit + Rxjava)
Due to a high security project to be done recently, it needs to use HTTPS for two-way authentication. When designing the project architecture, the client uses MVVM architecture, and realizes Android based on DataBinding + Retrofit + Rxjava.
Looking up a lot of data, there are many examples of implementing two-way authentication based on native ...
Posted by okyejr on Thu, 21 May 2020 06:36:59 +0200
Install redis Sentry Cluster offline on three servers, one master, two slaves
The gcc environment is installed on the system (otherwise, compiling redis will cause errors).Still don't know how to install the gcc environment offline viewable Install gcc environment offline under CentOS with detailed graphics
download
Click on the official address to download redis for Linux
http://download.redis.io/releases/redis-5.0.4.ta ...
Posted by TGixer on Tue, 07 Apr 2020 06:08:36 +0200
Java integrated Alibaba fish platform SMS service sends verification code to mobile phone
Click to go to: Alibaba big fish - error code of SMS interface call (error reason and handling method)
Previous: Alibaba big fish SMS service - sending verification code and SMS notice
User registration -- SMS verification code (Java integrated Alibaba big fish SMS service)
1, analysis
2. Back end code
2.1. Alibaba big fish tool class (smutil ...
Posted by yoost on Wed, 25 Mar 2020 16:10:09 +0100
Addition and deletion of k8s node nodes and setting of cluster roles
1. Add node node
[root@k8s-4 ~]# kubeadm join 192.168.191.30:6443 --token 6zs63l.4qmypshahrd3rt3x \
--discovery-token-ca-cert-hash sha256:851c0bf733fe1e9bff54af08b84e93635d5b9c6e047a68c694c613391e024185
W0323 15:58:36.010687 1427 join.go:346] [preflight] WARNING: JoinControlPane.controlPlane settings will be ignored when control-plane ...
Posted by shezz on Mon, 23 Mar 2020 15:35:01 +0100
k3s service building
There is a server at home, usually used as its own development environment, running some small programs. It is planned to upgrade the server and use k3s to manage common development tools, which is convenient for your own use. Because I only have one server, there is no cluster in this article.
Quick install command
## "-- Docker" use ...
Posted by dymon on Sat, 21 Mar 2020 15:32:51 +0100
OpenVPN Installation Configuration
1. Introduction
Definition
OpenVPN is a software package for creating virtual private network encryption channels, originally written by James Yonan.OpenVPN allows created VPNs to authenticate using public keys, electronic certificates, or user names/passwords.
It makes extensive use of the SSLv3/TLSv1 protocol function library in the Ope ...
Posted by rmelino on Sat, 21 Mar 2020 05:45:34 +0100
Backup of etcd data in k8s
The data stored in etcd is divided into flanned network data and k8s container data.
1. Directly backup the data directory of etcd (generally used for single node)
The data of etcd will be stored in our command working directory by default. We find that the directory where the data is located will be divided into two folders:
snap: store ...
Posted by dbo on Fri, 20 Mar 2020 17:57:30 +0100
CentOS7.X installs Redis-4.0.8 and builds Redis clusters
My personal website
Install redis
Preparation before installation
yum install \
vim \
wget \
make \
gcc \
gcc-c++ \
automake \
autoconf \
-y \
Download, unzip and install
cd /root
wget http://download.redis.io/releases/redis-4.0.8.tar.gz
tar -zxzf redis-4.0.8.tar.gz
cd redis-4.0.8
make PREFIX=/usr/local/redis/ install
Create the data file ...
Posted by chrisv on Tue, 17 Mar 2020 12:24:00 +0100
Formal Learning linux-12
1.selinux
The selinux security subsystem restricts services from domain and security context constraints to only or as much resources as it should have.
Domain: Service functional constraints;
Security context: Restrictions on file permissions.
The state of SELinux is configured by configuring/etc/selinux/config.It is recommended that the s ...
Posted by phpnew on Sat, 14 Mar 2020 17:54:23 +0100