下面介绍 podman
、podman-compose
安装及使用。
文中只列出了 Ubuntu 20.04
系统的安装过程。
下面介绍 podman
、podman-compose
安装及使用。
文中只列出了 Ubuntu 20.04
系统的安装过程。
If you created your key pair using AWS, you can use the OpenSSL tools to generate a fingerprint as follows:
$ openssl pkcs8 -in path_to_private_key -inform PEM -outform DER -topk8 -nocrypt | openssl sha1 -c
If you created a key pair using a third-party tool and uploaded the public key to AWS, you can use the OpenSSL tools to generate the fingerprint as follows:
$ openssl rsa -in path_to_private_key -pubout -outform DER | openssl md5 -c
// remove duplicate files | |
// if file content with same sha256, they are same | |
// usage: go run remove-duplicate-files.go <your-directory> [your-dir1 you-dir2 ...] | |
// run with `-dryrun` if you just want to find the duplicate files | |
package main | |
import ( | |
"crypto/sha256" | |
"flag" | |
"fmt" |
主要看 location
中的,注意:
websocket server
收到大量请求;然后从浏览器看,前端每分钟都在创建新的 websocket
连接;详见:http://nginx.org/en/docs/http/websocket.htmlkeepalive
,否则 websocket server
会报 WARNING: Invalid HTTP request received.
map $http_upgrade $connection_upgrade {
default upgrade;
#!/bin/sh | |
# Last Change: 2011/10/06 | |
# apt-fast v0.02 by Matt Parnell http://www.mattparnell.com, this thing is fully open-source | |
# if you do anything cool with it, let me know so I can publish or host it for you | |
# contact me at admin@mattparnell.com | |
# Special thanks to Travis/travisn000 from the PCLinux Forums for making improvements that allow | |
# for more complex apt-get commands. See the thread: http://www.pclinuxos.com/forum/index.php/topic,66385.0.html | |
# adicionar suporte aos metalinks no aria2: http://ubuntuforums.org/showthread.php?t=1493421 | |
# veja também apt-metalink: http://github.com/tatsuhiro-t/apt-metalink |