fix: 更新脚本下载链接至新的路径
This commit is contained in:
@@ -16,13 +16,13 @@ Docker 提供了一个自动配置与安装的脚本,支持 Debian、RHEL、SU
|
||||
使用 curl
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/install/install.sh | sh
|
||||
curl -fsSL https://git.sugarscat.cn/me/script/-/raw/main/docker/install/install.sh | sh
|
||||
```
|
||||
|
||||
使用 wget
|
||||
|
||||
```bash
|
||||
wget -O- https://git.sugarscat.cn/me/bash/-/raw/main/docker/install/install.sh | sh
|
||||
wget -O- https://git.sugarscat.cn/me/script/-/raw/main/docker/install/install.sh | sh
|
||||
```
|
||||
|
||||
## Debian/Ubuntu/Raspbian
|
||||
@@ -48,7 +48,7 @@ apt-get install ca-certificates curl gnupg
|
||||
|
||||
```bash
|
||||
install -m 0755 -d /etc/apt/keyrings
|
||||
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/install/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||
curl -fsSL https://git.sugarscat.cn/me/script/-/raw/main/docker/install/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||
sudo chmod a+r /etc/apt/keyrings/docker.gpg
|
||||
echo \
|
||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian \
|
||||
@@ -60,7 +60,7 @@ echo \
|
||||
|
||||
```bash
|
||||
install -m 0755 -d /etc/apt/keyrings
|
||||
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/install/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||
curl -fsSL https://git.sugarscat.cn/me/script/-/raw/main/docker/install/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||
sudo chmod a+r /etc/apt/keyrings/docker.gpg
|
||||
echo \
|
||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \
|
||||
@@ -72,7 +72,7 @@ echo \
|
||||
|
||||
```bash
|
||||
install -m 0755 -d /etc/apt/keyrings
|
||||
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/install/raspbian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||
curl -fsSL https://git.sugarscat.cn/me/script/-/raw/main/docker/install/raspbian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||
sudo chmod a+r /etc/apt/keyrings/docker.gpg
|
||||
echo \
|
||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/raspbian \
|
||||
@@ -108,7 +108,7 @@ dnf remove docker \
|
||||
|
||||
```bash
|
||||
dnf -y install dnf-plugins-core
|
||||
dnf config-manager --add-repo https://git.sugarscat.cn/me/bash/-/raw/main/docker/install/fedora/docker-ce.repo
|
||||
dnf config-manager --add-repo https://git.sugarscat.cn/me/script/-/raw/main/docker/install/fedora/docker-ce.repo
|
||||
sed -i 's+https://download.docker.com+https://mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo
|
||||
```
|
||||
|
||||
@@ -137,7 +137,7 @@ yum remove docker \
|
||||
|
||||
```bash
|
||||
yum install -y yum-utils
|
||||
yum-config-manager --add-repo https://git.sugarscat.cn/me/bash/-/raw/main/docker/install/centos/docker-ce.repo
|
||||
yum-config-manager --add-repo https://git.sugarscat.cn/me/script/-/raw/main/docker/install/centos/docker-ce.repo
|
||||
sed -i 's+https://download.docker.com+https://mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo
|
||||
```
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ mkdir -p /opt/docker/clash && mkdir -p /opt/docker/clash/data && cd /opt/docker/
|
||||
下载 docker-compose.yml
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/docker-compose/clash/docker-compose.yml > docker-compose.yml
|
||||
curl -fsSL https://git.sugarscat.cn/me/script/-/raw/main/docker/docker-compose/clash/docker-compose.yml > docker-compose.yml
|
||||
```
|
||||
|
||||
启动
|
||||
|
||||
@@ -11,13 +11,13 @@
|
||||
2. 下载 `.env` 文件
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/docker-compose/frps/.env > .env
|
||||
curl -fsSL https://git.sugarscat.cn/me/script/-/raw/main/docker/docker-compose/frps/.env > .env
|
||||
```
|
||||
|
||||
3. 下载 docker-compose.yml
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/docker-compose/frps/docker-compose.yml > docker-compose.yml
|
||||
curl -fsSL https://git.sugarscat.cn/me/script/-/raw/main/docker/docker-compose/frps/docker-compose.yml > docker-compose.yml
|
||||
```
|
||||
|
||||
## docker-compose 部署
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
1. 下载 docker-compose.yml
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/docker-compose/rustdesk/docker-compose.yml > docker-compose.yml
|
||||
curl -fsSL https://git.sugarscat.cn/me/script/-/raw/main/docker/docker-compose/rustdesk/docker-compose.yml > docker-compose.yml
|
||||
```
|
||||
|
||||
## docker-compose 部署
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
services:
|
||||
rustdesk:
|
||||
container_name: rustdesk
|
||||
environment:
|
||||
- RELAY="IP/域名":21117
|
||||
- ENCRYPTED_ONLY=1
|
||||
image: rustdesk/rustdesk-server-s6:latest
|
||||
network_mode: bridge
|
||||
ports:
|
||||
- 21115:21115
|
||||
- 21116:21116
|
||||
- 21116:21116/udp
|
||||
- 21117:21117
|
||||
- 21118:21118
|
||||
- 21119:21119
|
||||
restart: always
|
||||
volumes:
|
||||
- ./data/hbbs:/data
|
||||
rustdesk:
|
||||
container_name: rustdesk
|
||||
environment:
|
||||
- RELAY="IP/域名":21117
|
||||
- ENCRYPTED_ONLY=1
|
||||
image: rustdesk/rustdesk-server-s6:latest
|
||||
network_mode: bridge
|
||||
ports:
|
||||
- 21115:21115
|
||||
- 21116:21116
|
||||
- 21116:21116/udp
|
||||
- 21117:21117
|
||||
- 21118:21118
|
||||
- 21119:21119
|
||||
restart: always
|
||||
volumes:
|
||||
- ./data/hbbs:/data
|
||||
|
||||
@@ -31,7 +31,7 @@ systemctl status nginx
|
||||
下载配置
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/nginx/nginx.conf > /etc/nginx/nginx.conf
|
||||
curl -fsSL https://git.sugarscat.cn/me/script/-/raw/main/nginx/nginx.conf > /etc/nginx/nginx.conf
|
||||
```
|
||||
|
||||
测试配置
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
下载配置
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/nginx/default/nginx.conf > /etc/nginx/sites-available/default
|
||||
curl -fsSL https://git.sugarscat.cn/me/script/-/raw/main/nginx/default/nginx.conf > /etc/nginx/sites-available/default
|
||||
```
|
||||
|
||||
启用配置
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
下载配置
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/nginx/git.sugarscat.cn/nginx.conf > /etc/nginx/sites-available/git.sugarscat.cn
|
||||
curl -fsSL https://git.sugarscat.cn/me/script/-/raw/main/nginx/git.sugarscat.cn/nginx.conf > /etc/nginx/sites-available/git.sugarscat.cn
|
||||
```
|
||||
|
||||
启用配置
|
||||
|
||||
@@ -7,7 +7,7 @@ mkdir -p /opt/www/note && cd /opt/www/note
|
||||
```
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/nginx/note.sugarscat.cn/deploy.sh > deploy.sh && chmod +x deploy.sh
|
||||
curl -fsSL https://git.sugarscat.cn/me/script/-/raw/main/nginx/note.sugarscat.cn/deploy.sh > deploy.sh && chmod +x deploy.sh
|
||||
```
|
||||
|
||||
## 定时执行脚本
|
||||
@@ -35,7 +35,7 @@ crontab -l
|
||||
下载配置
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/nginx/note.sugarscat.cn/nginx.conf > /etc/nginx/sites-available/note.sugarscat.cn
|
||||
curl -fsSL https://git.sugarscat.cn/me/script/-/raw/main/nginx/note.sugarscat.cn/nginx.conf > /etc/nginx/sites-available/note.sugarscat.cn
|
||||
```
|
||||
|
||||
启用配置
|
||||
|
||||
Reference in New Issue
Block a user