微信机器人文档(简明版)

时间:2019-04-09 21:39:04   收藏:0   阅读:180

微信机器人的作用

 

微信机器人技术原理

 

技术框架选择

 

如何在linux服务器控制台登录微信机器人

 

如何验证用户

 

微信个人号的注册

 

微信机器人应用的特性

 

运维:将代码部署到测试环境

git  init
git add .
git commit -m "first commit"
git remote add origin https://gitee.com/chggit_liudaoqiang/itchat_app.git
git push -u origin master

 

cd /data/chgg
git clone https://gitee.com/chggit_liudaoqiang/itchat_app.git

 

cd /data/chgg/itchat_app
source venv/Scripts/activate

 

从python官网下载python3.6.6

cd ~
wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz

 

解压python3.6.6压缩包

tar -zxvf Python-3.6.6.tgz

 

配置源代码文件

cd ~/Python-3.6.6
./configure

 

安装

vim Makefile
# 将   -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes   中的3改为2

make
make install

问题:python3make到unicodeobject.c就不再继续运行,

gcc -pthread -c -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o Objects/unicodeobject.o Objects/unicodeobject.c

执行到这里就不再向下执行

 解决办法为执行configure命令后将Makefile文件中的   -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes   中的3改为2

即-DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes

cd /data/chgg/itchat_app
pip3 install oss2

 

pip3 install itchat
pip3 install pymysql

 

检查是否存在文件存放文件夹download

# 检查/data/chgg/itchat_app目录下是否存在目录downlaod; 如果没有则创建该目录

mkdir -p download
chmod 777 download

检查是否存在日志存放文件夹logs

# 检查/data/chgg/itchat_app目录下是否存在目录logs; 如果没有则创建该目录

mkdir -p logs
chmod 777 logs

 将调试状态改为生产状态

Debug = True
# 改为
Debug = False

修改阿里云oss的账号配置

修改数据库的账号配置

 

nohup python3 server.py

原文:https://www.cnblogs.com/liuzhiqaingxyz/p/10679763.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!