VPS 常用资源

整理一些折腾VPS时经常能用到的好东西

常用脚本

初始化机器

  • 安装常用软件
if ! command -v sudo &> /dev/null; then
    echo "sudo not found, installing..."
    apt update && apt install -y sudo
else
    echo "sudo is already installed."
    sudo apt update
fi

sudo apt install -y git vim curl wget zsh htop neofetch

# ohmyzsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  • 安装docker
wget -qO- get.docker.com | bash
  • docker安装postgresql
docker run -itd \
    -m 512m \
    --restart=unless-stopped \
    -e POSTGRES_USER=demo \
    -e POSTGRES_PASSWORD=demo \
    -e POSTGRES_DB=demo \
    -p 5432:5432 \
    -v /DATA/AppData/postgresql:/var/lib/postgresql/data \
    --name postgresql postgres:15.4
  • Docker修改容器内存限制
docker update --memory 1024m --memory-swap 1024m postgresql

使用 docker update -h 查看更加详细的命令

监控类

哪吒探针

哪吒监控
开源、轻量、易用的服务器监控、运维工具

https://nezha.wiki/


ServerStatus-Rust

Rust 版 ServerStatus 云探针
ServerStatus 威力加强版,保持轻量和简单部署.

https://github.com/zdz/ServerStatus-Rust


Uptime Kuma

Uptime Kuma 是一款易于使用的自托管监控工具。

https://github.com/louislam/uptime-kuma


DNS

Cloudflare

全球顶级的服务商,提供免费DNS解析,无限量CDN,内网穿透等各种服务。CF,永远滴神。

https://dash.cloudflare.com/


论坛,BBS,社区

Github

全球顶级同性交友网站(狗头,没有它码农就GG了

https://github.com/


NodeSeek

NodeSeek旨在为主机爱好者打造高品质社区,传递行业新闻,分享技术心得。在这里,用户主要讨论的话题包括服务器行业新闻、优惠信息、开发经验与建站心得、开源项目与实用工具、pt、域名等。我们希望这里能够成为一个有效的主机信息聚集地,希望它能成长为一个有用的社群。

https://www.nodeseek.com/



VPS 常用资源
https://coding.gs/2023/08/07/vps-resource/
作者
K
发布于
2023年8月7日
许可协议