AWS 的数据传输类型大致有如下三类:
- 与 Internet 之间的数据传输
- AWS 内部跨区域的数据传输
- AWS 内部同一区域的数据传输
每个区域从 AWS 到 Internet 的数据传输费率都不一样,基本是 下行免费,上行收费,费率算总量
https://aws.amazon.com/cn/ec2/pricing/on-demand/ ---> 数据传输部分
| #!/bin/bash | |
| TXT="包含的文本" | |
| docker rmi $(docker images | grep $TXT | awk '$1 { print $1":"$2 }') |
| # | |
| # /etc/sysctl.conf - Configuration file for setting system variables | |
| # See /etc/sysctl.d/ for additonal system variables | |
| # See sysctl.conf (5) for information. | |
| # | |
| #kernel.domainname = example.com | |
| # Uncomment the following to stop low-level messages on console | |
| #kernel.printk = 3 4 1 3 |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="content-type" content="text/html;charset=utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, viewport-fit=cover" /> | |
| <title>hello mirror</title> | |
| </head> | |
| <body> | |
| <h1>Hello Mirror</h1> | |
| <h2>Support Server</h2> |
| 写测试 | |
| ``` | |
| time dd if=/dev/zero of=/tmp/test bs=8k count=1000000 | |
| ``` | |
| 读测试 | |
| ``` | |
| time dd if=/tmp/test of=/dev/null bs=8k |
| import crypto from 'crypto'; | |
| export default class AESCipher { | |
| #key: Buffer; | |
| constructor(key: string) { | |
| const hash = crypto.createHash('sha256'); | |
| hash.update(key); | |
| this.#key = hash.digest(); | |
| } |
| version: '2.1' | |
| services: | |
| kafka-ui: | |
| container_name: kafka-ui | |
| image: provectuslabs/kafka-ui:latest | |
| ports: | |
| - "9888:8080" | |
| environment: | |
| DYNAMIC_CONFIG_ENABLED: "true" |
| export type Callback = (...args: any[]) => any; | |
| export class Callbacks { | |
| #callbacks: Map<string, Callback[]>; | |
| constructor() { | |
| this.#callbacks = new Map(); | |
| } | |
| add(name: string, fn: any) { |
| export interface Cache { | |
| addValue(key: any, value: any, ttl?: number): void | Promise<void>; | |
| getValue(key: any): Promise<T>; | |
| hasExpired(key: string): boolean | Promise<boolean>; | |
| deleteValue(key: string): T | Promise<T>; | |
| } | |
| export class MemoryCache extends Map implements Cache { | |
| addValue(key: any, value: any, ttl?: number) { | |
| if (typeof ttl !== 'number') { |
AWS 的数据传输类型大致有如下三类:
每个区域从 AWS 到 Internet 的数据传输费率都不一样,基本是 下行免费,上行收费,费率算总量
https://aws.amazon.com/cn/ec2/pricing/on-demand/ ---> 数据传输部分
| wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz | |
| tar xzf Python-2.7.18.tgz | |
| cd Python-2.7.18 | |
| sudo ./configure --enable-optimizations | |
| sudo make altinstall | |
| sudo ln -s "/usr/local/bin/python2.7" "/usr/bin/python" |