jiangtengfei

edit readme.md

Showing 1 changed file with 47 additions and 7 deletions
#所有服务
##在线授课生产服务器列表
###在线授课生产服务器列表
* 192.168.1.10, 121.43.189.101
* 192.168.1.9, 120.27.228.85
... ... @@ -8,7 +8,7 @@
测试服务器:123.56.13.168
##teaching-service
###teaching-service
>在线授课主项目
... ... @@ -26,7 +26,7 @@ log地址:/var/log/teaching-service.log
tomcat access_log 目录:/var/log/teaching-service/access_log.2017-02-10.log
##boxfish-push
###boxfish-push
>极光推送服务
... ... @@ -43,7 +43,7 @@ tomcat access_log 目录:/var/log/teaching-service/access_log.2017-02-10.log
log地址:/var/log/boxfish-push.log
##boxfish-sig
###boxfish-sig
>腾讯云签名程序
... ... @@ -60,12 +60,12 @@ log地址:/var/log/boxfish-push.log
log地址:/var/log/sig.log
##teaching-service-wiki
###teaching-service-wiki
>wiki项目
##teaching-service-task
###teaching-service-task
>定时任务项目
... ... @@ -84,6 +84,46 @@ log地址:
#常用日志操作命令
```
//统计12938在日志中出现的次数
cat /var/log/teaching-service.log |grep "12938" |wc -l
tail -1000f /var/log/teaching-service.log
\ No newline at end of file
tail -1000f /var/log/teaching-service.log
```
----------------------------------------
----------------------------------------
----------------------------------------
#推送相关问题
> 极光推送api文档:http://docs.jiguang.cn/jpush/server/push/rest_api_v3_push/
>
> 极光github地址:https://github.com/jpush/jpush-api-java-client
>
> https://www.qcloud.com/document/product/269/4029
1 根据registrationId推送涉及到的相关数据库表
bebase.user_has_device_lzx
bebase.token
```
//根据用户id查询到 `device_id`
SELECT * FROM bebase.user_has_device_lzx where holder_id=80738
//再根据 `device_id` 即可查到 `token`,即 `registrationId `
SELECT * FROM bebase.token where device_id = '4028818b584857870158486fc95b0026'
```
#配置报警邮件
在teaching-service项目`com.boxfishedu.teachingservice.exception.QcloudExceptionHandler` 类中修改接收邮件的邮箱
\ No newline at end of file
... ...