1. Introduction As we all know, Github[1] is the most famous code repository hosting and management platform, which based on Git[2]. In the most cases, you might be never consider about the difference from git and github, but we have to know, Git and Github is not the same thing. …
Download and install docker
Ubuntu/Debian Install following official tutorial Uninstall unofficial packages Install using the apt repository Before you install Docker Engine for the first time on a new host machine, you need to set up the Docker apt repository. Afterward, you can install and update Docker from the repository.Set up Docker’s apt repository Install the docker packages …
How to compile LaTeX locally?
When you are writing your paper or documents on LaTeX, you have to face an inevitable issue, that is compiling you LaTeX code to pdf. As for beginners of researchers, they may choose to use Overleaf, it is very simple to use, but when your documents or paper are becoming …
Hysteria2 Installation
Why we need Hysteria2? Generally speaking, the internet that what we are using almost transfers our traffic through TCP proxy. As we all know, tcp is a stable proxy, but there are also much disadvantages, including slow transfer speed. 1. Purchase Cloud Computer 2. Install Hysteria2 server 2.1. Official Method …
How to set network proxy for Docker
Sometimes, you may encounter network problems, at this time, you need set proxy through daemon file of docker. Daemon Config The config file of docker located at: /etc/docker/daemon.jsonIf the config file doesn’t exit, you should create one.And past the content below to the config file. Restart Docker Reference https://docs.docker.com/engine/daemon/proxy
How to set SSH key pair
1. Generate SSH key ssh-keygen: SSH-Keygen 参数详解 ssh-keygen 是一个生成、管理和转换 SSH 密钥的工具。以下是其主要参数的详细讲解: 常用参数 指定生成密钥的类型: – rsa:生成 RSA 密钥(默认 2048 位)。 – dsa:生成 DSA 密钥(已不推荐使用)。 – ecdsa:生成 ECDSA 密钥(推荐用于更高安全性和性能)。 – ed25519:生成 Ed25519 密钥(最推荐,现代加密方法,性能好且安全)。 – rsa1:生成 SSH 协议 1 的 RSA 密钥(极不推荐,已弃用)。2. -b bits 指定密钥的位数: – RSA 密钥默认 2048 位,建议使用 3072 或 4096 位以提高安全性。 – Ed25519 不支持自定义位数。3. -C comment …
How to config OpenVPN
OpenVPN Server Install OpenVPN Server Windows 1. Download setup program OpenVPN Client Download for Windows 2. Install OpenVPN Remember click Customize instead of Install NowClick OpenVPN -> OpenVPN Service -> Entire feature will be installed on local hard drive;ClickOpenSSL Utilities -> EasyRSA 3 Certificate Management Scripts -> Entire feature will be installed on local …
Bandwidth
云服务器带宽和流量的区别 云服务器的带宽配置主要分为两种描述方式:带宽上限 和 流量上限。以下是它们的详细介绍和对比。 1. 带宽上限(如 4Mbps) 含义 带宽表示服务器与网络连接的速率上限,单位通常为 Mbps 或 Gbps。示例:4Mbps 表示每秒最多传输 4 兆位数据,实际速率约为 0.5 MB/s。 适用场景 限制峰值流量:控制服务器的峰值速率,适合需要稳定网络连接的场景。持续传输数据:如 HTTP 服务、流媒体等需要长时间稳定传输的应用。 常见原因 固定速率分配:云厂商为入门级套餐设定的固定带宽。按峰值带宽收费:更便于用户管理成本。 计算预估流量 假设每天持续使用 4Mbps 带宽,可计算月流量: 结果约为 1.3TB/月。 2. 流量上限(如 2TB) 含义 流量上限是指每月可传输的数据总量(上传+下载),但不限制速率。 适用场景 弹性使用:突发性流量需求高,例如大文件下载、CDN 缓存更新。一次性大数据传输:短时间内需要高性能网络。 常见原因 流量套餐:按月总流量限制,而非速率。高性能传输:适合需要更快传输速率的应用场景。 带宽与流量关系 如果在流量限制模式下,带宽为 100Mbps,消耗 2TB 流量的理论时间: 3. 带宽与流量的对比 特性 带宽上限(如 4Mbps) 流量上限(如 …
Run the command in the background
Sometimes, you really need those server-wide program to run in background, because you need to avoid some accidents to interrupt our service program.There are some methods I will introduce here:tmux:tmux new -s [tty-name]: start a new tty window with your set nametmux attach -t [tty-name]: attach a existing tmux tty …
Connect your Remote Service from SSH forwarding
Introduction Connect your private service from SSH is really meaningful, if you visit your Personal Document/Information/Private Key, this is a good method. 1. Start your remote service on your cloud computer We take Google Cloud as an example. This is a 3x-ui service We can see that our opened service …