-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
35 lines (33 loc) · 1.06 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
配置:
1、复制etc/settings.json.dist为etc/settings.json
2、按照配置说明修改配置文件
{
"logFile":"microblog.log", //日志文件路径
"mode":"debug", //运行模式
"deletersCount":10,//并发数
""
"weibo":{
"appkey":"888888888", //新浪微博分配的应用编号
"secret":"888888888888888888", //新浪微博分配的密钥
"host":"api.weibo.com",//新浪的服务器
"remove":"/2/statuses/destroy.json",//删微博的uri
"token":"/oauth2/access_token",
"interval":60 //同一个账号的发微博间隔,单位秒
},
"mysql":{
"host":"172.16.33.237",
"user":"stockradar",
"password":"stockradar",
"database":"stock_radar"
},
"queue":{
"remove":"weibo_delete", //删微博的任务队列
"interval":10000, //轮询间隔,单位是毫秒
"host":"172.16.33.237",
"port":3000,
"retry":10 //如果过出队次数超过,则强制将任务置为完成状态
}
}
运行:
执行命令
node delete.js