Solve the problem of SSLError during pip installation
The reason for this problem is that the certificate of the installation source is not trusted. You can change the configuration file of pip to solve this problem:
Where is the profile first to change it? Read the source code of pip:
Here is the pip source code
if WINDOWS:
bin_py = os.path.join(sys.prefix, 'Scripts')
bin_ ...
Posted by mote on Sat, 30 Nov 2019 09:39:46 -0800
Traifik configuration automatically applies for ssl free certificate
What is an SSL certificate?
Secure sockets layer (SSL) certificates (sometimes referred to as digital certificates) are used to establish an encrypted connection between a browser or user computer and a server or web site. SSL connections protect sensitive data (such as credit card information) exchanged during each access (called a session) f ...
Posted by 4rxsid on Thu, 28 Nov 2019 13:21:32 -0800
html email sent by shell
Article directory
1. Open the SMTP service of QQ mailbox server
2. Install sendEmail
3. Send email with attachments
3.1 details of sendemail command
3.2 write the test.sh script as follows
3.3 execute script sh test.sh
4. Send email with html form
4.1 table data
4.2 the script is as follows
4.3 execution script
4.4 the scr ...
Posted by johnnyblaze1980 on Thu, 28 Nov 2019 11:36:15 -0800
Archiva 2.2.3 protocol version error during installation and operation
A protocol version error occurred while Archiva was running after successful installation:
Caused by: javax.net.ssl.SSLException: Received fatal alert: protocol_version
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) ~[?:1.7.0_80]
at sun.security.ssl.Alerts.getSSLException(Alerts.java:154) ~[?:1.7.0_80]
at s ...
Posted by sandgnat on Wed, 27 Nov 2019 12:55:56 -0800
linux environment installs python3 environment (including setuptools,pip)
date 20191125 MondayInstall Python 3.7.3 environment on linux 6.5Because our mac environment is:(base) majihuideMacBook-Pro:~ majihui$ python -VPython 3.7.3
Next, install Python 3.7.3 on my local test environment[root@templatec6 ~]# cat /etc/redhat-release CentOS release 6.5 (Final)linux centos6.5 and centos7 are available on linux, the compi ...
Posted by derekm on Mon, 25 Nov 2019 11:34:01 -0800
Configuring HTTPS in Spring Boot2
1. Generate certificate
Using jdk and keytool.exe in jre to generate self signed certificates requires the configuration of Java home and path environment variables, that is, jdk environment variables. The command is as follows:
keytool -genkey -alias tomcat -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650
Th ...
Posted by brianjw on Mon, 25 Nov 2019 09:57:34 -0800
Overflow error: String longer than 2147483647 bytes problem
problem
Sketch
When using python requests to upload files, theOverflow error: String longer than 2147483647 bytes error
detail
Problem code
data = {}
with open("bigfile", "rb") as f:
r = requests.post(PUBLISH_URL, data=data, files={"xxx": f})
traceback
Traceback (most recent call last):
File "test.py", line 52, in <module&g ...
Posted by Rupo on Fri, 22 Nov 2019 12:20:09 -0800
django production environment deployment: nginx+SSL certificate start wss+https
Download certificate
It took me an hour here. I'm Tencent cloud's server. For the domain name purchased by Alibaba cloud, first apply for a free ssl Certificate in Tencent cloud. During this period, just follow the instructions. One step is to change the DNS in Alibaba cloud.
I don't need to talk about it in detail. After I ge ...
Posted by nightdesigns on Thu, 21 Nov 2019 11:29:33 -0800
Deploy tracefik and implement http and https access
Background
1. Applications such as lancher and kubernetes dashboard need to be accessed through https, so the deployment will enable the support of tracefik for https.
2. Based on the previous lancher ha, it is deployed in the cat system namespace, so this time, it will also deploy tracefik in the cat system namespace, and use the same tls ce ...
Posted by Taro on Thu, 14 Nov 2019 11:43:19 -0800
k8s grafana data persistence
Problem: as soon as the kfana container built by k8s is restarted, the configured dashboard and added users will be reset. As a result, there is no data persistence in grafana.Solve:
1. Establish persistent flower storage pvc in the cluster first
Then hang it in the container / var directory
volumeMounts:
- mountPath: /var
name: ...
Posted by Mystis on Wed, 13 Nov 2019 07:08:25 -0800