• 欢迎访问db1024网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏db1024吧

使用Docker安装Wine-CoolQ,并运行酷Q Air/Pro(QQ机器人)

建站知识 Liam 1年前 (2019-04-28) 552次浏览 10个评论 扫描二维码
文章目录[隐藏]

说明:酷Q大概是使用最多的一款QQ机器人软件,功能也很强大。我们可以用它实现QQ群管理、好友聊天、日常便民等多种功能,大多数都是在Win系统上运行它,由于官方有Docker镜像,借助Wine运行的CoolQ,所以我们也可以在Linux系统上运行,这里就说下方法。

截图

使用Docker安装Wine-CoolQ,并运行酷Q Air/Pro(QQ机器人) - Rat's Blog
使用Docker安装Wine-CoolQ,并运行酷Q Air/Pro(QQ机器人) - Rat's Blog
使用Docker安装Wine-CoolQ,并运行酷Q Air/Pro(QQ机器人) - Rat's Blog

安装

Github地址:https://github.com/CoolQ/docker-wine-coolq

1、安装Docker

#CentOS 6 rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum update -y yum -y install docker-io service docker start chkconfig docker on  #CentOS 7、Debian、Ubuntu curl -sSL https://get.docker.com/ | sh systemctl start docker systemctl enable docker.service 

2、安装wine-coolq

docker run --restart=always --name wine-coolq -d  -p 9000:9000  -v /coolq:/home/user/coolq  -e VNC_PASSWD=moerats  -e COOLQ_ACCOUNT=1234567  coolq/wine-coolq

参数说明:

-p 将内部的Web运行端口9000映射到外部的9000,可自行修改端口。 -v 将内部酷Q和其数据文件夹/home/user/coolq映射到外部的/coolq文件夹,可自行修改路径。 -e 为环境变量,大致有3个变量,其中第3种未使用,大致如下: 1、VNC_PASSWD为VNC密码。注意该密码不能超过8个字符,默认MAX8char。 2、COOLQ_ACCOUNT为设置要登录酷Q的帐号。在第一次手动登录后,你可以勾选“快速登录”功能以启用自动登录,此后,docker容器启动或酷Q异常退出时,便会自动为你登录该帐号。 3、COOLQ_URL为下载酷Q的地址,默认为http://dlsec.cqp.me/cqa-tuling,即酷Q Air图灵版。请确保下载后的文件能解压出酷Q Air/CQA.exe或酷Q Pro/CQP.exe。 

安装好了后,访问http://IP:9000,可以打开一个VNC页面,输入密码,文中默认moerats,即可看到一个酷Q Air已经启动。

对于CentOS系统,还需要开启9000端口,开启如下:

#CentOS 6 iptables -I INPUT -p tcp --dport 9000 -j ACCEPT service iptables save service iptables restart  #CentOS 7 firewall-cmd --zone=public --add-port=9000/tcp --permanent firewall-cmd --reload 

相关命令:

#启动镜像 docker start wine-coolq #重启镜像 docker restart wine-coolq 

最后如果要安装应用,先去应用社区下载应用→传送门,再传到映射在外部的文件夹,比如/coolq/app里,然后再访问VNC进入设置安装,其它就自行研究吧。


db1024 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:使用Docker安装Wine-CoolQ,并运行酷Q Air/Pro(QQ机器人)
喜欢 (0)
关于作者:
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(10)个小伙伴在吐槽
  1. Very good post! We are linking to this particularly great article on our website. Keep up the good writing.
    black mass2020-08-31 09:59 回复 Mac OS X | Chrome 66.0.3359.181
  2. Hello there! This is kind of off topic but I need some help from an established blog. Is it very difficult to set up your own blog? I'm not very techincal but I can figure things out pretty quick. I'm thinking about creating my own but I'm not sure where to begin. Do you have any points or suggestions? Thank you
    cheap flights2020-08-28 07:50 回复 Linux | Firefox浏览器 54.0
  3. Undeniably believe that which you said. Your favorite reason appeared to be on the net the easiest thing to be aware of. I say to you, I definitely get irked while people think about worries that they just do not know about. You managed to hit the nail upon the top and defined out the whole thing without having side-effects , people could take a signal. Will likely be back to get more. Thanks
    cheap flights2020-08-27 11:22 回复 Linux | Firefox浏览器 60.0.1
  4. It's wonderful that you are getting ideas from this article as well as from our argument made at this time.
    cheap flights2020-08-26 17:29 回复 Linux | Firefox浏览器 56.0
  5. Hello There. I discovered your weblog the use of msn. This is a really well written article. I'll be sure to bookmark it and come back to learn more of your useful info. Thank you for the post. I will definitely return. 2CSYEon cheap flights
    cheap flights2020-08-26 04:37 回复 Linux | 未知浏览器
  6. Great web site. Plenty of useful information here. I'm sending it to a few buddies ans also sharing in delicious. And of course, thanks on your effort! cheap flights 3gqLYTc
    cheap flights2020-08-25 14:50 回复 Linux | Firefox浏览器 2.0.0.6
  7. Please let me know if you're looking for a article writer for your weblog. You have some really good posts and I feel I would be a good asset. If you ever want to take some of the load off, I'd love to write some articles for your blog in exchange for a link back to mine. Please send me an email if interested. Thank you!
    web hosting services2020-08-14 18:29 回复 Mac OS X | Chrome 65.0.3325.181
  8. What a material of un-ambiguity and preserveness of valuable know-how regarding unexpected emotions.
    web hosting service2020-08-14 11:15 回复 Linux | Firefox浏览器 60.0.2
  9. Its such as you learn my mind! You seem to understand so much approximately this, such as you wrote the guide in it or something. I feel that you could do with a few percent to drive the message house a bit, however instead of that, that is fantastic blog. A great read. I'll certainly be back. adreamoftrains content hosting
    adreamoftrains content hosting2020-08-12 09:25 回复 Linux | Firefox浏览器 56.0
  10. Every weekend i used to visit this web page, for the reason that i want enjoyment, since this this web site conations in fact fastidious funny stuff too.
    web host2020-08-11 18:22 回复 Linux | 未知浏览器