服务器到手之后,常用的一些脚本,注意仅限于个人使用,出现问题个人概不负责。
安装Docker命令:
curl -fsSL https://get.docker.com | sh
一键设置秘钥登录:
wget http://www.718817.xyz/jiaoben/key.sh --no-check-certificate&& bash key.sh
一键更换国内软件源:
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)
项目地址:https://github.com/SuperManito/LinuxMirrors
编辑linux的hosts
vim /etc/hosts
一键安装python3.7
wget https://raw.githubusercontent.com/helloxz/shell/master/python3.sh && sh python3.sh
参考文章:https://cloud.tencent.com/developer/article/2071902
python3升级pip3命令
python3 -m pip install --upgrade pip
参考文章:https://www.dreams-true.com/wangzhan/2735.html
Centos7安装bbr
wget "http://www.718817.xyz/bbr/bbrplus-master/ok_bbrplus_centos.sh" && chmod +x ok_bbrplus_centos.sh && ./ok_bbrplus_centos.sh
卸载腾讯云的相关监控组件
systemctl stop tat_agent systemctl disable tat_agent rm -rf /etc/systemd/system/tat_agent.service rm -fr /usr/local/qcloud ps -A | grep agent # 检查看是否还有腾讯云组件 # kill 这个进程
TG如何查看ID和TOKEN
查找用户ID:@userinfobot
查找TOKEN:@BotFather