常用SSH命令
opc切换到root
sudo su
进入目录
cd /www/wwwroot/www_xxx_com/下载远程文件
wget https://www.remote.com/file.tar.gz根据文件类型查找
find /www/wwwroot/ -name *.log压缩文件
tar -czvf /www/wwwroot/file.tar.gz /www/wwwroot/www.local.com/
tar -czvf file.tar.gz images
解压文件
tar -zxvf /www/wwwroot/www.local.com/file.tar.gz /www/wwwroot/www.local.com/
tar -zxvf file.tar.gz修改hostname
hostnamectl set-hostname --static mail.local.com从远程服务器拷贝
scp -P 777 [email protected]:/www/wwwroot/www.remote.com/xxx.tar.gz /www/wwwroot/www.local.com从本地复制到远程
scp -r -P 888 /www/wwwroot/file.tar.gz [email protected]:/www/wwwroot/Debian卸载Docker
sudo apt purge docker-ce docker-ce-cli containerd.io docker-compose-plugin删除Docker镜像、容器
sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd
重启哪吒探针服务
systemctl restart nezha-agent最后更新于 2024-02-07 「部分内容存在时效性,如有失效请留言反馈」
除注明外为 过气码农的自留地 原创文章,转载请注明出处。
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
欢迎加入 Typecho 大家族