jiangtengfei

edit readme.md

Showing 1 changed file with 47 additions and 7 deletions
1 #所有服务 1 #所有服务
2 2
3 -##在线授课生产服务器列表 3 +###在线授课生产服务器列表
4 4
5 * 192.168.1.10, 121.43.189.101 5 * 192.168.1.10, 121.43.189.101
6 * 192.168.1.9, 120.27.228.85 6 * 192.168.1.9, 120.27.228.85
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 8
9 测试服务器:123.56.13.168 9 测试服务器:123.56.13.168
10 10
11 -##teaching-service 11 +###teaching-service
12 12
13 >在线授课主项目 13 >在线授课主项目
14 14
@@ -26,7 +26,7 @@ log地址:/var/log/teaching-service.log @@ -26,7 +26,7 @@ log地址:/var/log/teaching-service.log
26 26
27 tomcat access_log 目录:/var/log/teaching-service/access_log.2017-02-10.log 27 tomcat access_log 目录:/var/log/teaching-service/access_log.2017-02-10.log
28 28
29 -##boxfish-push 29 +###boxfish-push
30 30
31 >极光推送服务 31 >极光推送服务
32 32
@@ -43,7 +43,7 @@ tomcat access_log 目录:/var/log/teaching-service/access_log.2017-02-10.log @@ -43,7 +43,7 @@ tomcat access_log 目录:/var/log/teaching-service/access_log.2017-02-10.log
43 log地址:/var/log/boxfish-push.log 43 log地址:/var/log/boxfish-push.log
44 44
45 45
46 -##boxfish-sig 46 +###boxfish-sig
47 47
48 >腾讯云签名程序 48 >腾讯云签名程序
49 49
@@ -60,12 +60,12 @@ log地址:/var/log/boxfish-push.log @@ -60,12 +60,12 @@ log地址:/var/log/boxfish-push.log
60 log地址:/var/log/sig.log 60 log地址:/var/log/sig.log
61 61
62 62
63 -##teaching-service-wiki 63 +###teaching-service-wiki
64 64
65 >wiki项目 65 >wiki项目
66 66
67 67
68 -##teaching-service-task 68 +###teaching-service-task
69 69
70 >定时任务项目 70 >定时任务项目
71 71
@@ -84,6 +84,46 @@ log地址: @@ -84,6 +84,46 @@ log地址:
84 84
85 #常用日志操作命令 85 #常用日志操作命令
86 86
  87 +```
  88 +//统计12938在日志中出现的次数
87 cat /var/log/teaching-service.log |grep "12938" |wc -l 89 cat /var/log/teaching-service.log |grep "12938" |wc -l
88 90
89 -tail -1000f /var/log/teaching-service.log 91 +tail -1000f /var/log/teaching-service.log
  92 +```
  93 +
  94 +
  95 +
  96 +
  97 +----------------------------------------
  98 +
  99 +----------------------------------------
  100 +
  101 +----------------------------------------
  102 +
  103 +#推送相关问题
  104 +
  105 +> 极光推送api文档:http://docs.jiguang.cn/jpush/server/push/rest_api_v3_push/
  106 +>
  107 +> 极光github地址:https://github.com/jpush/jpush-api-java-client
  108 +>
  109 +> https://www.qcloud.com/document/product/269/4029
  110 +
  111 +1 根据registrationId推送涉及到的相关数据库表
  112 +
  113 + bebase.user_has_device_lzx
  114 +
  115 + bebase.token
  116 +
  117 +
  118 +```
  119 +//根据用户id查询到 `device_id`
  120 +SELECT * FROM bebase.user_has_device_lzx where holder_id=80738
  121 +
  122 +//再根据 `device_id` 即可查到 `token`,即 `registrationId `
  123 +SELECT * FROM bebase.token where device_id = '4028818b584857870158486fc95b0026'
  124 +
  125 +```
  126 +
  127 +#配置报警邮件
  128 +
  129 +在teaching-service项目`com.boxfishedu.teachingservice.exception.QcloudExceptionHandler` 类中修改接收邮件的邮箱