Solve the problem of "State: Sleeping, pid: xxxx" in yum install
When installing python packages, I tend to rely on the following packages, but some computers make the following mistakes:
[root@pachong1 scrapy-cluster-1.2]# yum install gcc libffi-devel python-devel openssl-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is run ...
Posted by immobilarity on Tue, 05 Feb 2019 20:18:17 -0800
Download http or https files using curl openssl under ios
To ensure compatibility of mobile terminals
urlsession that cannot use ios
The curl Library of C language can be used to implement the download operation.Compilation of curl in ios environment
Because I compiled openssl before, I took it directly and used it.
openssl is used to increase https support
After compilation is passed, ...
Posted by Dizzee15 on Wed, 23 Jan 2019 01:15:14 -0800
Self-built https server and client certificates, nginx and spring boot applications use the same certificate, and solve the problem of chrome security warning
Reference link: Self-issued ssl certificate [spring boot] configure ssl certificate to implement https
1. Generating nginx certificates and configuring chrome security alerts
1. Install openssl
2. Generating Root Certificate
openssl req -x509 -nodes -days 1461 -newkey rsa:2048 -subj "/C=CN/ST=MyProvince/L=MyCity/O=MyOrgani ...
Posted by djjjozsi on Mon, 07 Jan 2019 15:06:09 -0800
Nginx Load Balancing, ssl Principle, Generation of ssl Key Pairs, Configuration of ssl in LNMP Architecture (5)
1. Nginx load balancing
Nginx load balancing means that when a proxy server resolves a customized domain name to multiple specified IP, the upstream module ensures that users can access each IP normally through the proxy server (reverse proxy multiple servers is load balancing).
1.1 Load Balancing Configuration Parameters
[root@host ~]# vim /us ...
Posted by candy2126 on Mon, 07 Jan 2019 01:42:09 -0800
MINA, Netty, Twisted Learning Together (11): SSL/TLS
What is SSL/TLS
Network communication without using SSL/TLS is usually plaintext transmission. Network transmission content is easy to be eavesdropped or even tampered with in the transmission process, which is very insecure. The SSL/TLS protocol is designed to solve these security problems. The SSL/TLS protocol is located on top of TCP/IP prot ...
Posted by nosheep on Sat, 05 Jan 2019 11:33:09 -0800
Use of Homebrew on Mac (Homebrew makes OS X more complete)
What is 0 Homebrew?
"Homebrew installs the stuff you need that Apple did't. - Homebrew makes OS X more complete."
Homebrew's official website [1] (Multilingual Version) Briefly describes how to install and use the tool, and provides its own Wiki.
1 Install Homebrew
The installation of brew is simple, using a r ...
Posted by daq on Fri, 04 Jan 2019 17:24:11 -0800
Kubernetes Service & LB & Networking :Ingress
Dead work
1. Enabling the ingress plug-in of minikube
minikube addons enable ingress
2. Complete the mirroring required by the ingress plug-in
minikube ssh
export image=nginx-ingress-controller:0.14.0
docker pull registry.cn-hangzhou.aliyuncs.com/anoy/${image}
docker tag registry.cn-hangzhou.aliyuncs.com/anoy/${image} qua ...
Posted by daf_cr on Thu, 03 Jan 2019 16:36:11 -0800
Saltstack's api && httpapi
I. Saltstack's api
Salt-api has two ways, one is in the form of functions, there are well-defined functions, we can call directly, directly write python code to call functions or classes. The second form is that salt-api has an encapsulated http protocol. We need to start a server.
Installation:
yum install –y salt-api
1. Load ...
Posted by deft on Tue, 01 Jan 2019 18:42:08 -0800
DES/AES ciphertext transmission using Java and C/C++
It was thought that DES and AES, the popular encryption algorithms, should be simple to use. However, two variables were found after the study:
The way of partitioning. Encryption is done block by block. Blocking methods are: CBC, ECB, CFB...
The way of padding. When the number of bits of data is less than the size of the block, it nee ...
Posted by mrpickleman on Mon, 17 Dec 2018 11:36:04 -0800