Casaos
安装命令:
1
| wget -qO- https://get.casaos.io | sudo bash
|
or
1
| curl -fsSL https://get.casaos.io | sudo bash
|
更新命令:
1
| wget -qO- https://get.casaos.io/update | sudo bash
|
or
1
| curl -fsSL https://get.casaos.io/update | sudo bash
|
卸载:
potainer安装
arm一键安装portainer中文版
1
| docker run -d --restart=always --name=portainer -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data 6053537/portainer-ce:linux-arm64
|
X86一键安装portainer中文版
1
| docker run -d --restart=always --name=portainer -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data 6053537/portainer-ce
|
小雅安装
具体查看此篇
安装命令:
一键安装和更新容器,标准模式,打开端口 5678
1
| bash -c "$(curl http://docker.xiaoya.pro/update_new.sh)"
|
一键安装和更新容器,host模式(推荐,软路由和NAS上更少网络故障,打开端口 5678)
1
| bash -c "$(curl http://docker.xiaoya.pro/update_new.sh)" -s host
|
Docker拉取镜像
此处记录除换源外的办法
如果您当前有正在运行的容器不方便重启Docker服务,则不用设置环境也可以直接使用,用法示例:
1
| docker pull do.nark.eu.org/library/mysql:5.7
|
地址:
1 2 3 4 5 6
| do.nark.eu.org dc.j8.work docker.m.daocloud.io dockerproxy.com docker.mirrors.ustc.edu.cn docker.nju.edu.cn
|
Windows设置端口转发
原文连接
1
| netsh interface portproxy show all
|
- 新增转发规则:
端口转发规则包含(本机本地侦听IP192.168.3.6和侦听端口2405)+(远端服务器IP112.11.36.130+端口10010)的对应关系
1
| netsh interface portproxy add v4tov4 listenport=2405 listenaddress=192.168.3.6 connectport=10010 connectaddress=112.11.36.130 protocol=tcp
|
- 删除转发规则:
端口转发规则包含(本机本地侦听IP192.168.3.6和侦听端口2405)+(远端服务器IP112.11.36.130+端口10010)的对应关系
1
| netsh interface portproxy delete v4tov4 listenport=2405 listenaddress=192.168.3.6
|
守护进程:
alist
1
| vim /usr/lib/systemd/system/alist.service
|
1 2 3 4 5 6 7 8 9 10 11 12 13
| [Unit] Description=alist After=network.target [Service] Type=simple WorkingDirectory=path_alist ExecStart=path_alist/alist server Restart=on-failure [Install] WantedBy=multi-user.target
|
- Windows:
创建alist.vbs文件放在alist文件夹,双击即可启动,创建快捷方式放在开机自启文件夹即可开机自启
1
| C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
|
1
| Dim ws Set ws = Wscript.CreateObject("Wscript.Shell") ws.run "alist.exe server",vbhide Wscript.quit
|
将上文的alist.exe server换成其他启动命令可以启动其他文件,例如cloudreve等
cloudreve
1
| vim /usr/lib/systemd/system/cloudreve.service
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| [Unit] Description=Cloudreve Documentation=https://docs.cloudreve.org After=network.target After=mysqld.service Wants=network.target
[Service] WorkingDirectory=/PATH_TO_CLOUDREVE ExecStart=/PATH_TO_CLOUDREVE/cloudreve Restart=on-abnormal RestartSec=5s KillMode=mixed
StandardOutput=null StandardError=syslog
[Install] WantedBy=multi-user.target
|
1 2 3 4 5 6 7 8 9
| systemctl daemon-reload
systemctl start cloudreve
systemctl enable cloudreve
|
ddns-go
1
| sudo ./ddns-go -s install
|
1 2 3 4 5 6 7
| systemctl daemon-reload
systemctl start ddns-go.service
systemctl enable ddns-go.service
|
小米球
首先需要把xiaomiqiu_start.sh文件最后一修改为(根据情况更改路径):
1
| /root/xmq/xiaomiqiu -config /root/xmq/xiaomiqiu.conf -log=xiaomiqiu.log -log-level=info start-all
|
然后创建服务:
1
| vim /etc/systemd/system/vim xiaomiqiu.service
|
1 2 3 4 5 6 7 8 9 10 11 12 13
| [Unit] Description=xiaomiqiu After=network.target [Service]
ExecStart=/root/xmq/xiaomiqiu_start.sh RestartSec=10s Restart=always [Install] WantedBy=multi-user.target
|
1 2 3
| systemctl daemon-reload systemctl start xiaomiqiu.service systemctl enable xiaomiqiu.service
|
clouddrive
1
| vim /etc/systemd/system/CloudDrive.service
|
1 2 3 4 5 6 7 8 9 10 11
| [Unit] Description= CloudDrive Service After=network.target
[Service] ExecStart=/root/clouddrive-2-linux-x86_64-0.5.12/./clouddrive WorkingDirectory=/root/clouddrive-2-linux-x86_64-0.5.12
[Install] WantedBy=default.target
|
1 2 3 4
| systemctl enable CloudDrive systemctl start CloudDrive systemctl stop CloudDrive
|