10 2021 档案

摘要: 阅读全文
posted @ 2021-10-29 23:08 xman888 阅读(43) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2021-10-29 21:45 xman888 阅读(82) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2021-10-27 21:16 xman888 阅读(56) 评论(0) 推荐(0)
摘要:# generate private keyopenssl genrsa -out myprivate.key # extract the public key from the private key openssl rsa -in myprivate.key -pubout -out mypub 阅读全文
posted @ 2021-10-26 15:26 xman888 阅读(182) 评论(0) 推荐(0)
摘要:# generate private keyopenssl genrsa -out myprivate.key # extract the public key from the private key openssl rsa -in myprivate.key -pubout -out mypub 阅读全文
posted @ 2021-10-26 15:17 xman888 阅读(48) 评论(0) 推荐(0)
摘要: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. 阅读全文
posted @ 2021-10-26 15:02 xman888 阅读(261) 评论(0) 推荐(0)
摘要:Generating a private RSA key openssl genrsa -out privatekey.pem 2048 openssl rsa -in privatekey.pem -outform PEM -pubout -out publickey.pem Generating 阅读全文
posted @ 2021-10-25 13:16 xman888 阅读(58) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2021-10-25 12:00 xman888 阅读(251) 评论(0) 推荐(0)
摘要:openssl s_client -connect www.helloworld888.com:443 -servername www.helloworld888.com -showcerts 阅读全文
posted @ 2021-10-25 11:21 xman888 阅读(51) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2021-10-25 11:09 xman888 阅读(108) 评论(0) 推荐(0)
摘要:通过一个tcp 连接,可以传输多个http,不需要每次发起http,都建立tcp连接了 第一次发起http请求的时候,先建立tcp连接,然后通过给连接发起http请求。 第二次http请求就不需要再建立tcp连接了。从抓包中看的很清晰。 如果没有数据传输的话,65秒后自动被server拆线了 阅读全文
posted @ 2021-10-24 16:11 xman888 阅读(299) 评论(0) 推荐(0)
摘要:在proxy server的配置文件中/etc/nginx/sites-available/default 在后端池的服务器配置文件上/etc/nginx/nginx.conf 添加下面红色的内容 log_format main '$remote_addr - $remote_user [$time 阅读全文
posted @ 2021-10-23 21:58 xman888 阅读(282) 评论(0) 推荐(0)
摘要: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, 阅读全文
posted @ 2021-10-23 20:52 xman888 阅读(146) 评论(0) 推荐(0)
摘要:Add the following location block to the server block: location / { root /data/www; } This location block specifies the “/” prefix compared with the UR 阅读全文
posted @ 2021-10-23 13:40 xman888 阅读(286) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2021-10-23 11:19 xman888 阅读(78) 评论(0) 推荐(0)
摘要:nginx has one master process and several worker processes. The main purpose of the master process is to read and evaluate configuration, and maintain 阅读全文
posted @ 2021-10-22 22:46 xman888 阅读(69) 评论(0) 推荐(0)
摘要:PEM Format The PEM format is the most common format that Certificate Authorities issue certificates in. PEM certificates usually have extensions such 阅读全文
posted @ 2021-10-21 17:10 xman888 阅读(91) 评论(0) 推荐(0)
摘要:创建一个DNS 通过上面2个步骤,public ip和domain name就可以对应起来了。 如何申请ssl/tls证书: https://certbot.eff.org/lets-encrypt/ubuntuxenial-nginx https://certbot.eff.org/ apt up 阅读全文
posted @ 2021-10-21 11:02 xman888 阅读(154) 评论(0) 推荐(0)
摘要:APPGW probe机制: 阅读全文
posted @ 2021-10-20 13:38 xman888 阅读(44) 评论(0) 推荐(0)
摘要:(适用于Windows 客户端)建议在传输数据时同时使用PSPING 工具长ping azure 端VM。 具体测试方法如下: 工具下载地址: http://technet.microsoft.com/en-us/sysinternals/jj729731下载完PSTools.zip包之后,使用CM 阅读全文
posted @ 2021-10-20 12:00 xman888 阅读(1181) 评论(0) 推荐(0)
摘要:apt updateapt install postgresql -y 这个会安装psql server同时也会安装psql client 如果从internet访问这个postgreSQL database,即使ip地址放开,也无法ping通,但是可以通过psql来访问 connect to re 阅读全文
posted @ 2021-10-20 10:31 xman888 阅读(63) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2021-10-19 21:52 xman888 阅读(333) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2021-10-19 21:28 xman888 阅读(109) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-10-18 23:11 xman888 阅读(15) 评论(0) 推荐(0)
摘要:由于kubeadm前期安装完成后join使用 token 过期时间为(24小时过期),所以需要重新生成token 在master上重新生成新的token kubeadm token create 查看是否存在有效的 token 值 kubeadm token list 获取CA证书 sha256 编 阅读全文
posted @ 2021-10-18 23:01 xman888 阅读(73) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2021-10-18 22:52 xman888 阅读(42) 评论(0) 推荐(0)
摘要:通过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 阅读全文
posted @ 2021-10-18 22:39 xman888 阅读(54) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2021-10-18 20:54 xman888 阅读(64) 评论(0) 推荐(0)
摘要:In symmetric cryptographic systems, both communicating parties use the same key for encryption and decryption. The material used to build these keys m 阅读全文
posted @ 2021-10-11 08:53 xman888 阅读(250) 评论(0) 推荐(0)
摘要:regular expressions (RegEx), and use Python's re module to work with RegEx 测试文档: abcafb9cuyd09pp1238a1b1ac3AbcBcd98Li86abcANi98aM Python RegEx In this 阅读全文
posted @ 2021-10-09 23:00 xman888 阅读(152) 评论(0) 推荐(0)
摘要:with 阅读全文
posted @ 2021-10-09 21:10 xman888 阅读(29) 评论(0) 推荐(0)
摘要:“Old-school” String Formatting in Python Before Python 3.6, you had two main ways of embedding Python expressions inside string literals for formattin 阅读全文
posted @ 2021-10-09 10:11 xman888 阅读(58) 评论(0) 推荐(0)
摘要:pip install mysql-connector-python 阅读全文
posted @ 2021-10-08 23:14 xman888 阅读(15) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-10-08 23:11 xman888 阅读(21) 评论(0) 推荐(0)
摘要:随机数 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 阅读全文
posted @ 2021-10-08 22:54 xman888 阅读(48) 评论(0) 推荐(0)
摘要:python3 -m pip install Django 验证安装成功 Creating a project django-admin startproject mysite This will create a mysite directory in your current directory 阅读全文
posted @ 2021-10-08 22:27 xman888 阅读(41) 评论(0) 推荐(0)
摘要:pycharm 阅读全文
posted @ 2021-10-08 21:38 xman888 阅读(49) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-10-08 20:50 xman888 阅读(49) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2021-10-08 20:17 xman888 阅读(102) 评论(0) 推荐(0)
摘要:apt install python3-pip -y pip3 --version pip install pymysql 阅读全文
posted @ 2021-10-08 17:11 xman888 阅读(41) 评论(0) 推荐(0)
摘要:创建文件,并写入数据: 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 阅读全文
posted @ 2021-10-08 13:47 xman888 阅读(57) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2021-10-08 10:40 xman888 阅读(77) 评论(0) 推荐(0)
摘要:字符串是 Python 中最常用的数据类型。我们可以使用单引号 ' 或双引号" 来创建字符串。 阅读全文
posted @ 2021-10-07 21:10 xman888 阅读(67) 评论(0) 推荐(0)
摘要:By the way, a string is a sequence of characters. In Python, strings are enclosed inside single quotes, double quotes, or triple quotes. 阅读全文
posted @ 2021-10-07 19:37 xman888 阅读(40) 评论(0) 推荐(0)
摘要: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])' 阅读全文
posted @ 2021-10-07 16:19 xman888 阅读(268) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-10-07 12:48 xman888 阅读(20) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2021-10-07 11:49 xman888 阅读(161) 评论(0) 推荐(0)
摘要:python 函数的参数可以具有默认值 We can provide a default value to an argument by using the assignment operator (=). python函数的参数都可以有默认值,但是有默认值的参数必须在右侧,否则报错。 Any nu 阅读全文
posted @ 2021-10-05 23:02 xman888 阅读(85) 评论(0) 推荐(0)
摘要:默认情况下,Python 3 源码文件以 UTF-8 编码,所有字符串都是 unicode 字符串 行与缩进 python最具特色的就是使用缩进来表示代码块,不需要使用大括号 {} 。 缩进的空格数是可变的,但是同一个代码块的语句必须包含相同的缩进空格数。 Python Keywords Keywo 阅读全文
posted @ 2021-10-05 15:43 xman888 阅读(79) 评论(0) 推荐(0)