🚦个人学习备忘录🚦
4月1号弄了个傻妞安装
机器人🤖,有点好玩,现在把另外一个机器人XDD安装记录下来!
yum -y install gccyum -y install gcc-c++安装命令
yum install -y git检查是否安装git
git --versionwget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm1、下载命令
cd /usr/local && wget https://golang.google.cn/dl/go1.16.10.linux-amd64.tar.gz -O go1.16.10.linux-amd64.tar.gz2、解压命令
tar -xvzf go1.16.10.linux-amd64.tar.gz3、修改配置文件,文件路径:/etc/profile 将下面代码复制到最后一行,保存,退出 !


export GO111MODULE=on
export GOPROXY=https://goproxy.cn
export GOROOT=/usr/local/go
export GOPATH=/usr/local/go/path
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin4、生效配置文件
source /etc/profilego env1、首先
cd ~2、下载XDD
git clone https://ghproxy.com/https://github.com/764763903a/xdd-plus.git3、编译XDD
cd xdd-plus && go build4、运行DD
chmod 777 xdd && ./xdd5、运行出现“检查更新”就Ctrl C退出 6、修改配置文件 文件路径:/root/xdd-plus/conf/config.yaml 复制下面代码,保存,退出

mode: balance、parallel
containers:
- address: http://青龙服务器IP:端口
username: zhanghao
password: mima
cid: cidcidcid
secret: secretsecret
weigth: 1
mode: balance
limit: 50
- address: http://青龙服务器IP:端口
username: zhanghao
password: mima
cid: cidcid
secret: secretsecret
weigth: 1
mode: balance
limit: 50
- address: http://青龙服务器IP:端口
username: zhanghao
password: mima
cid: cidcid
secret: secretsecret
weigth: 1
mode: parallel
limit: 50
AtTime: 5 #填写1-12之间的数 填错自负默认为10 10点容易出现高峰超时。
IsHelp: true #填写true或者false false
IsOldV4: #填写true或者false false是否新版或者旧版V4
Wskey: # 填空默认禁用wskey转换 需要的填true
IsAddFriend: true#填写true或者false false
Lim: 8#填写1-N 代表限制次数
Tyt: 8#填写1-N 代表推一推需要的互助值,默认为8
Later: 3#延时防止黑IP自己设置 默认60 不怕黑的改为1即可 单位是秒
ApiToken: qqwang510543
theme: /root/xdd-plus/theme/admin.html
static: ./static
master: houtaimima
database: /root/xdd-plus/.xdd.db
qywx_key:
daily_push:
resident:
user_agent:
telegram_bot_token:
telegram_user_id:
TGURL: #填写TG代理地址
qquid: 510543
qqgid:
qbot_public_mode: true
default_priority:
no_ghproxy: true
daily_asset_push_cron:
repos:
- git: https://github.com/shufflewzc/faker2.git7修复XDD文件,下载xdd-linux-amd64
cd && cd xdd-plus && wget https://ghproxy.com/https://github.com/764763903a/xdd-plus/releases/download/v1.8/xdd-linux-amd648、下载config.yal
cd qbot && wget https://ghproxy.com/https://github.com/764763903a/xdd-plus/releases/download/v1.7/config.yml9、手动修改文件 qbot/config.yml 只需要修改QQ号(这里填的是你要用的机器人QQ)

10、然后把刚下载的xdd-linux-amd64替代掉原有的xdd(如图操作)

11、赋权并运行xdd
cd ~ && cd xdd-plus && chmod 777 xdd && ./xdd12、根据提示扫码、登陆

如果提示登录异,查看《解决服务器搭建XDD机器人后扫码登录异常【4.27】》
13、按键盘:Ctrl+c 保存退出
14、静默运行XDD
./xdd -d跟着步骤来,15分钟就OK,缺少一步都会出错了,找错都要2小时'
