Deploy the latest version of Qinglong, Nolan, and silly girl introductory nanny-level tutorial under Windows




If you don't have a server, buy it yourself, or install it directly on a computer, Tencent Cloud 2H4G8M for the first year 74 – click to buy

QQ exchange: 1014549449 -------------- Click to jump




1. Qinglong installation

1. Download the Windows installation package from the docker official website, click to download

2. After completion, it may prompt that WSL2 is missing, download address: https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi

3. After the installation is complete, restart the computer or click RESTART in the pop-up dialog box, so that the Docker installation is complete. After the installation is complete, open any disk on the computer. I will use the D drive as an example to create a Docker folder. , and then create a "ql" folder in the Docker folder, enter the "ql" folder and create "config", "log", "db", "repo", "raw", "scripts" folders , then open a CMD window and
enter the command:

D:\
cd Docker
docker run -dit -v D:/Docker/ql/config:/ql/config -v D:/Docker/ql/log:/ql/log -v D:/Docker/ql/db:/ql/db -v D:/Docker/ql/repo:/ql/repo -v D:/Docker/ql/raw:/ql/raw -v D:/Docker/ql/scripts:/ql/scripts -p 5700:5700 --name qinglong --hostname qinglong -e TZ=Asia/Shanghai --restart unless-stopped whyour/qinglong:latest

4. After completion, the image will be downloaded and started automatically. You can see the created image in the Docker program.
insert image description here
5. Enter http://127.0.0.1:5700 in the browser to open the Qinglong panel. After entering, configure the push and manage the account password. After that, you can log in
insert image description here
to the panel, then pull the library, see the previous article for the specific library address, and select the corresponding script
insert image description here
Copy the "Client ID" and "Client Secret" for backup, and then start deploying Nolan

2. Ruolan Deployment Tutorial

1. Install the git tool, click download (x64 version), after the download is complete, install all the way to the next step until the end, then close all cmd windows, enter the d drive, create the nvjdc directory under the d drive, and then open cmd and enter the following command

D:\
cd nvjdc
git clone https://ghproxy.com/https://github.com/NolanHzy/nvjdcdocker.git

After the clone is complete, pull the docker image, command:

docker pull nolanhzy/nvjdc:latest

2. Enter the D:\nvjdc\nvjdcdocker directory, create a "Config" folder, enter the Config folder, and create a "Config.json" configuration file, the content is as follows:

{
    
    
  ///浏览器最多几个网页
  "MaxTab": "4",
  //网站标题
  "Title": "NolanJDCloud",
  //回收时间分钟 不填默认3分钟
  "Closetime": "5",
  //网站公告
  "Announcement": "为提高账户的安全性,请关闭免密支付。",
  ///开启打印等待日志卡短信验证登陆 可开启 拿到日志群里回复 默认不要填写
  "Debug": "",
  ///自动滑块次数5次 5次后手动滑块 可设置为0默认手动滑块
  "AutoCaptchaCount": "0",
  ///XDD PLUS Url  http://IP地址:端口/api/login/smslogin
  "XDDurl": "",
  ///xddToken
  "XDDToken": "",
  ///登陆预警 0 0 12 * * ?  每天中午十二点 https://www.bejson.com/othertools/cron/ 表达式在线生成网址
  "ExpirationCron": " 0 0 12 * * ?",
  ///个人资产 0 0 10,20 * * ?  早十点晚上八点
  "BeanCron": "0 0 10,20 * * ?",
  // ======================================= WxPusher 通知设置区域 ===========================================
  // 此处填你申请的 appToken. 官方文档:https://wxpusher.zjiecode.com/docs
  // WP_APP_TOKEN 可在管理台查看: https://wxpusher.zjiecode.com/admin/main/app/appToken
  // MainWP_UID 填你自己uid
  ///这里的通知只用于用户登陆 删除 是给你的通知
  "WP_APP_TOKEN": "",
  "MainWP_UID": "",
  // ======================================= pushplus 通知设置区域 ===========================================
  ///Push Plus官方网站:http" //www.pushplus.plus  只有青龙模式有用
  ///下方填写您的Token,微信扫码登录后一对一推送或一对多推送下面的token,只填" "PUSH_PLUS_TOKEN",
  "PUSH_PLUS_TOKEN": "",
  //下方填写您的一对多推送的 "群组编码" ,(一对多推送下面->您的群组(如无则新建)->群组编码)
  "PUSH_PLUS_USER": "",
  ///青龙配置  注意对接XDD 对接芝士 设置为"Config":[]
  "Config": []
}

Remember to leave the Config node blank in the configuration file

3. Go back to the D:\nvjdc\nvjdcdocker directory, create the ".local-chromium" folder, enter the ".local-chromium" folder, continue to create the "Linux-884014" folder, download "chromium", click to download

4. After the download is complete, extract it to the D:\nvjdc\nvjdcdocker.local-chromium\Linux-884014\ directory
insert image description here
5. Go back to the D:\nvjdc directory in the cmd window and enter the command:

docker run -dit --privileged=true -e TZ=”Asia/Shanghai“ -v D:/nvjdc/nvjdcdocker:/app -p 5800:80 --name nolan --hostname nolan --restart unless-stopped nolanhzy/nvjdc:latest

6. After completing the creation of the image of nvjdc, an error of missing .net library may be reported in docker for the first start. Click nolan in docker to display the log. The download address is provided in the log. After the download is complete, restart the docker image. For normal access, if IDM is installed, the download prompt will always be skipped. In the IDM settings, excluding 127.0.0.1 from the file type can be accessed normally, and then enter the following command in cmd:

docker exec -it nolan bash
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

After completion, restart the nolan image, you can access it normally and complete the deployment.

3. Silly girl deployment tutorial
1. Go is required for compilation and installation under windows, so first download the go language installation package, click download
2. After the installation is complete, set the environment variables,

变量命:GOPATH
变量值:%USERPROFILE%\go

insert image description here
3. Close all cmd windows, reopen cmd and
enter the command:

set GO111MODULE=on

4. Enter the D drive in cmd, clone the silly girl library, and enter the command

D:\
git clone https://github.com/cdle/sillyGirl.git

5. Create a new dev.go file with the following contents:

package main
import (
	_ "github.com/cdle/sillyGirl/develop/qinglong"
	_ "github.com/cdle/sillyGirl/im/qq"
	// _ "github.com/cdle/sillyGirl/im/tg"
	// _ "github.com/cdle/sillyGirl/im/wxmp"
	// _ "github.com/cdle/sillyGirl/im/wx"
	_ "github.com/cdle/sillyGirl/develop/jd_price"
	_ "github.com/cdle/sillyGirl/develop/jd_cookie"
	// _ "github.com/cdle/sillyGirl/develop/cable"
)

6. cmd enter the "D:\sillyGirl\develop" directory and enter the following command:

git clone https://github.com/cdle/jd_price.git
git clone https://github.com/ufuckee/jd_cookie.git

Pull the comparison and jd_cookie libraries,

7. Open the "D:\sillyGirl\core\init.go" file, modify line 31 to the following content, and store the modified configuration file in the D:\sillyGirl\conf directory

file, err := os.Open(ExecPath + "/conf/sets.conf")

8. Return to the D:\sillyGirl\ directory in the cmd window and run the following command

go build
sillyGirl.exe

At this point, the silly girl server starts, and it will display
insert image description here
that the conf folder will be created after running.
9. Create the sets.conf file in the D:\sillyGirl\conf\ directory

# 傻妞机器人名
set sillyGirl name 傻妞
#傻妞http服务是否开启,默认false,开启改为true
set sillyGirl enable_http_server true
# 傻妞http服务端口
set sillyGirl port 8080
# 傻妞消息撤回等待时间,单位秒
set sillyGirl duration 5
# 傻妞自动升级是否通知
set sillyGirl update_notify false
# 傻妞内置赞赏码
set sillyGirl appreciate https://gitee.com/aiancandle/sillyGirl/raw/main/appreciate.jpg 
# 设置青龙openapi的client_id参数
set qinglong client_id 前面存储的青龙client_id
# 设置青龙openapi的client_secret参数
set qinglong client_secret 前面存储的青龙client_secret
# 青龙是否开启自动隐藏重复任务功能
set qinglong autoCronHideDuplicate true
# 设置青龙面板地址
set qinglong host 青龙面板地址
# 设置qq登录账号
#set qq uin 10000 #这里建议注释,直接后台弹出二维码登陆
# 设置qq登录密码
#set qq password 123456789 #这里建议注释,直接后台弹出二维码登陆
# 设置监听群聊号码,默认监听所有
set qq groupCode 你的QQ# 设置是否自动同意好友请求
set qq auto_friend false
# 是否对自己发出的消息进行回复
set qq onself true
# 设置qq管理员
set qq masters 你的QQ# 设置接受通知的qq账号,默认管理员接受
set qq notifier 你的QQ# 设置qq设备信息(自动生成)
#set qq device.json ?            #这里建议注释,直接后台弹出二维码登陆
# 设置qq登录令牌(自动生成)
#set qq session.token ?        #这里建议注释,直接后台弹出二维码登陆
# 设置telegram机器人token
set tg token ?
# 设置telegram机器人代理
set tg url ?
# 设置telegram机器人管理员
set tg masters t1&t2&t3...
# 设置接受通知的telegram账号,默认管理员接受
set tg notifier t1&t2&t3...
# 设置微信公众平台app_id
set wxmp app_id ?
# 设置微信公众平台app_secret
set wxmp app_secret ?
# 设置微信公众平台token
#set wxmp token ?
# 设置微信公众平台encoding_aes_key
set wxmp encoding_aes_key ?
# 设置微信公众平台管理员
set wxmp masters w1&w2&w3...

10. Focus on modifying the relevant content of Qinglong settings and QQ administrator number, QQ group settings, must be modified to your content

Then copy the "D:\sillyGirl\scripts\jd_price.js" file to the "D:\sillyGirl\develop\replies" directory and
insert image description here
execute it again in the 11.cmd window

go build
sillyGirl.exe

12. Due to the connection of the qq robot removed by the new version of silly girl, you need to install go-cqhttp yourself, the latest version of windows address: click to download

Create a go-cqhttp folder under the D drive, put the downloaded file in it,

13. Open cmd and enter the D:\go-cqhttp directory
to run the command:

go-cqhttp_windows_amd64.exe
输入03,按回车

insert image description here
14. Open the config.yaml file for configuration and use the following to override

# go-cqhttp 默认配置文件
account: # 账号相关
  uin: 1233456 # QQ账号
  password: '' # 密码为空时使用扫码登录
  encrypt: false  # 是否开启密码加密
  status: 0      # 在线状态 请参考 https://docs.go-cqhttp.org/guide/config.html#在线状态
  relogin: # 重连设置
    delay: 3   # 首次重连延迟, 单位秒
    interval: 3   # 重连间隔
    max-times: 0  # 最大重连次数, 0为无限制
  # 是否使用服务器下发的新地址进行重连
  # 注意, 此设置可能导致在海外服务器上连接情况更差
  use-sso-address: true
heartbeat:
  # 心跳频率, 单位秒
  # -1 为关闭心跳
  interval: 5
message:
  # 上报数据类型
  # 可选: string,array
  post-format: string
  # 是否忽略无效的CQ码, 如果为假将原样发送
  ignore-invalid-cqcode: false
  # 是否强制分片发送消息
  # 分片发送将会带来更快的速度
  # 但是兼容性会有些问题
  force-fragment: false
  # 是否将url分片发送
  fix-url: false
  # 下载图片等请求网络代理
  proxy-rewrite: ''
  # 是否上报自身消息
  report-self-message: false
  # 移除服务端的Reply附带的At
  remove-reply-at: false
  # 为Reply附加更多信息
  extra-reply-data: false
  # 跳过 Mime 扫描, 忽略错误数据
  skip-mime-scan: false
output:
  # 日志等级 trace,debug,info,warn,error
  log-level: warn
  # 日志时效 单位天. 超过这个时间之前的日志将会被自动删除. 设置为 0 表示永久保留.
  log-aging: 15
  # 是否在每次启动时强制创建全新的文件储存日志. 为 false 的情况下将会在上次启动时创建的日志文件续写
  log-force-new: true
  # 是否启用日志颜色
  log-colorful: true
  # 是否启用 DEBUG
  debug: false # 开启调试模式
# 默认中间件锚点
default-middlewares: &default
  # 访问密钥, 强烈推荐在公网的服务器设置
  access-token: ''
  # 事件过滤器文件目录
  filter: ''
  # API限速设置
  # 该设置为全局生效
  # 原 cqhttp 虽然启用了 rate_limit 后缀, 但是基本没插件适配
  # 目前该限速设置为令牌桶算法, 请参考:
  # https://baike.baidu.com/item/%E4%BB%A4%E7%89%8C%E6%A1%B6%E7%AE%97%E6%B3%95/6597000?fr=aladdin
  rate-limit:
    enabled: false # 是否启用限速
    frequency: 1  # 令牌回复频率, 单位秒
    bucket: 1     # 令牌桶大小
database: # 数据库相关设置
  leveldb:
    # 是否启用内置leveldb数据库
    # 启用将会增加10-20MB的内存占用和一定的磁盘空间
    # 关闭将无法使用 撤回 回复 get_msg 等上下文相关功能
    enable: true
  # 媒体文件缓存, 删除此项则使用缓存文件(旧版行为)
  cache:
    image: data/image.db
    video: data/video.db
# 连接服务列表
servers:
  # 添加方式,同一连接方式可添加多个,具体配置说明请查看文档
  #- http: # http 通信
  #- ws:   # 正向 Websocket
  #- ws-reverse: # 反向 Websocket
  #- pprof: #性能分析服务器
  # HTTP 通信设置
  - http:
      # 服务端监听地址
      host: 127.0.0.1
      # 服务端监听端口
      port: 5900
      # 反向HTTP超时时间, 单位秒
      # 最小值为5,小于5将会忽略本项设置
      timeout: 5
      # 长轮询拓展
      long-polling:
        # 是否开启
        enabled: false
        # 消息队列大小,0 表示不限制队列大小,谨慎使用
        max-queue-size: 2000
      middlewares:
        <<: *default # 引用默认中间件
      # 反向HTTP POST地址列表
      post:
      #- url: '' # 地址
      #  secret: ''           # 密钥
      #- url: http://127.0.0.1:5701/ # 地址
      #  secret: ''          # 密钥
  # 反向WS设置
  - ws-reverse:
      # 反向WS Universal 地址
      # 注意 设置了此项地址后下面两项将会被忽略
      universal: ws://127.0.0.1:8080/qq/receive
      # 反向WS API 地址
      api: ws://your_websocket_api.server
      # 反向WS Event 地址
      event: ws://your_websocket_event.server
      # 重连间隔 单位毫秒
      reconnect-interval: 3000
      middlewares:
        <<: *default # 引用默认中间件

15. Re-run in the cmd window after saving

go-cqhttp_windows_amd64.exe

Then pop up the QR code to log in
insert image description here
. 16. After scanning with QQ, you can log in to communicate. Finally, configure nolan and jd_cookie in the QQ group chat window. The commands are as follows

set jd_cookie enable_jd_cookie true
set jd_cookie nolan_addr http://127.0.0.1:5800

After the configuration is complete, enter restart, and the silly girl can use it normally after restarting automatically. You can query the account, get information,
more commands and scripts, view group files or view previous articles.




If you don't have a server, buy it yourself, or install it directly on a computer, Tencent Cloud 2H4G8M in the first year of 74 – click to buy

QQ exchange: 1014549449 -------------- Click to jump




Guess you like

Origin blog.csdn.net/qq_39910486/article/details/122136415