10 2021 档案
摘要:Instances in the private subnet are backend servers that don't need to accept incoming traffic from the internet and therefore do not have public IP a
阅读全文
摘要:useradd -s /bin/bash -d /opt/stack -m stack echo "stack ALL=(ALL) NOPASSWD: ALL" | tee /etc/sudoers.d/stack git clone https://git.openstack.org/openst
阅读全文
摘要:# generate private keyopenssl genrsa -out myprivate.key # extract the public key from the private key openssl rsa -in myprivate.key -pubout -out mypub
阅读全文
摘要:# generate private keyopenssl genrsa -out myprivate.key # extract the public key from the private key openssl rsa -in myprivate.key -pubout -out mypub
阅读全文
摘要:Generating Your Private Key After deciding on a key algorithm, key size, and whether to use a passphrase, you are ready to generate your private key.
阅读全文
摘要:Generating a private RSA key openssl genrsa -out privatekey.pem 2048 openssl rsa -in privatekey.pem -outform PEM -pubout -out publickey.pem Generating
阅读全文
摘要:X.509 is a standard defining the format of public-key certificates. X.509 certificates are used in many Internet protocols, including TLS/SSL, which i
阅读全文
摘要:openssl s_client -connect www.helloworld888.com:443 -servername www.helloworld888.com -showcerts
阅读全文
摘要:DER and PEM are formats used in X509 and other certificates to store Public, Private Keys and other related information. OpenSSL provides a lot of fea
阅读全文
摘要:通过一个tcp 连接,可以传输多个http,不需要每次发起http,都建立tcp连接了 第一次发起http请求的时候,先建立tcp连接,然后通过给连接发起http请求。 第二次http请求就不需要再建立tcp连接了。从抓包中看的很清晰。 如果没有数据传输的话,65秒后自动被server拆线了
阅读全文
摘要:在proxy server的配置文件中/etc/nginx/sites-available/default 在后端池的服务器配置文件上/etc/nginx/nginx.conf 添加下面红色的内容 log_format main '$remote_addr - $remote_user [$time
阅读全文
摘要:One of the frequent uses of nginx is setting it up as a proxy server, which means a server that receives requests, passes them to the proxied servers,
阅读全文
摘要:Add the following location block to the server block: location / { root /data/www; } This location block specifies the “/” prefix compared with the UR
阅读全文
摘要:systemd is a software suite that provides an array of system components for Linux operating systems. Its main aim is to unify service configuration an
阅读全文
摘要:nginx has one master process and several worker processes. The main purpose of the master process is to read and evaluate configuration, and maintain
阅读全文
摘要:PEM Format The PEM format is the most common format that Certificate Authorities issue certificates in. PEM certificates usually have extensions such
阅读全文
摘要:创建一个DNS 通过上面2个步骤,public ip和domain name就可以对应起来了。 如何申请ssl/tls证书: https://certbot.eff.org/lets-encrypt/ubuntuxenial-nginx https://certbot.eff.org/ apt up
阅读全文
摘要:APPGW probe机制:
阅读全文
摘要:(适用于Windows 客户端)建议在传输数据时同时使用PSPING 工具长ping azure 端VM。 具体测试方法如下: 工具下载地址: http://technet.microsoft.com/en-us/sysinternals/jj729731下载完PSTools.zip包之后,使用CM
阅读全文
摘要:apt updateapt install postgresql -y 这个会安装psql server同时也会安装psql client 如果从internet访问这个postgreSQL database,即使ip地址放开,也无法ping通,但是可以通过psql来访问 connect to re
阅读全文
摘要:openssl enc -ciphers -list root@myubuntu:~/xxx# openssl enc -aes-256-cbc -in clear.txt -out clear.data -iter 10enter aes-256-cbc encryption password:V
阅读全文
摘要:client hello server hello https://www.cloudflare.com/learning/ssl/what-happens-in-a-tls-handshake/ What is a TLS handshake? TLS is an encryption proto
阅读全文
摘要:由于kubeadm前期安装完成后join使用 token 过期时间为(24小时过期),所以需要重新生成token 在master上重新生成新的token kubeadm token create 查看是否存在有效的 token 值 kubeadm token list 获取CA证书 sha256 编
阅读全文
摘要:DaemonSet A DaemonSet ensures that all (or some) Nodes run a copy of a Pod. As nodes are added to the cluster, Pods are added to them. As nodes are re
阅读全文
摘要:通过ReplicationController来运行pod This controller ensures that there are a specific number of Pod replicas running at any time and, if a Pod does crash, t
阅读全文
摘要:a cluster consists of at least one control plane and multiple worker machines called nodes. These control plane and node machines run the Kubernetes c
阅读全文
摘要:In symmetric cryptographic systems, both communicating parties use the same key for encryption and decryption. The material used to build these keys m
阅读全文
摘要:regular expressions (RegEx), and use Python's re module to work with RegEx 测试文档: abcafb9cuyd09pp1238a1b1ac3AbcBcd98Li86abcANi98aM Python RegEx In this
阅读全文
摘要:“Old-school” String Formatting in Python Before Python 3.6, you had two main ways of embedding Python expressions inside string literals for formattin
阅读全文
摘要:pip install mysql-connector-python
阅读全文
摘要:随机数 random: append: append() method only works for the addition of elements at the end of the List, for the addition of elements at the desired positi
阅读全文
摘要:python3 -m pip install Django 验证安装成功 Creating a project django-admin startproject mysite This will create a mysite directory in your current directory
阅读全文
摘要:input How the input function works in Python : When input() function executes program flow will be stopped until the user has given an input. The text
阅读全文
摘要:apt install python3-pip -y pip3 --version pip install pymysql
阅读全文
摘要:创建文件,并写入数据: append 数据 Passing ‘w’ to the open() method tells Python to open the file in write mode. In this mode, any data already in the file is lost
阅读全文
摘要:close() function closes the file and frees the memory space acquired by that file. It is used at the time when the file is no longer needed or if it i
阅读全文
摘要:字符串是 Python 中最常用的数据类型。我们可以使用单引号 ' 或双引号" 来创建字符串。
阅读全文
摘要:By the way, a string is a sequence of characters. In Python, strings are enclosed inside single quotes, double quotes, or triple quotes.
阅读全文
摘要:pattern1='(([01]{0,1}\d{0,1}\d|2[0-4]\d|25[0-5])\.){3}([01]{0,1}\d{0,1}\d|2[0-4]\d|25[0-5])'
阅读全文
摘要:The first thing you’ll need to do is use the built-in python open file function to get a file object. When you use the open function, it returns somet
阅读全文
摘要:python 函数的参数可以具有默认值 We can provide a default value to an argument by using the assignment operator (=). python函数的参数都可以有默认值,但是有默认值的参数必须在右侧,否则报错。 Any nu
阅读全文
摘要:默认情况下,Python 3 源码文件以 UTF-8 编码,所有字符串都是 unicode 字符串 行与缩进 python最具特色的就是使用缩进来表示代码块,不需要使用大括号 {} 。 缩进的空格数是可变的,但是同一个代码块的语句必须包含相同的缩进空格数。 Python Keywords Keywo
阅读全文
浙公网安备 33010602011771号