侧边栏壁纸
博主头像
ifool博主等级

Stupid is as stupid does

  • 累计撰写 2 篇文章
  • 累计创建 1 个标签
  • 累计收到 1 条评论
标签搜索

目 录CONTENT

文章目录

VPS玩机指北

ifool
2022-08-19 / 0 评论 / 0 点赞 / 81 阅读 / 261 字

常用脚本系列

综合工具脚本

wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh

面板

宝塔面板安装

wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh ed8484bec

aapanel安装

wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bash install.sh forum

宝塔面板卸载

wget http://download.bt.cn/install/bt-uninstall.sh && sh bt-uninstall.sh

Docker

docker安装脚本

wget -qO- get.docker.com | bash

docker版本查看

docker -v

docker开机自启动

systemctl enable docker

防止docker日志塞满硬盘

cat > /etc/docker/daemon.json <<EOF
{
    "log-driver": "json-file",
    "log-opts": {
        "max-size": "20m",
        "max-file": "3"
    },
    "ipv6": true,
    "fixed-cidr-v6": "fd00:dead:beef:c0::/80",
    "experimental":true,
    "ip6tables":true
}
EOF

docker重启

systemctl restart docker

Docker-Compose

docker-compose安装脚本

sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
0

评论区