读我.md 2.58 KB

#所有服务

###在线授课生产服务器列表

  • 192.168.1.10, 121.43.189.101
  • 192.168.1.9, 120.27.228.85
  • 192.168.1.8, 121.43.190.170

测试服务器:123.56.13.168

###teaching-service

在线授课主项目

服务端口号:9090

服务名:teaching-service

启动命令:service teaching-service start

服务jar包文件名:teaching-service.jar

服务jar包目录:/root/projects

log地址:/var/log/teaching-service.log

tomcat access_log 目录:/var/log/teaching-service/access_log.2017-02-10.log

###boxfish-push

极光推送服务

服务端口号:9091

服务名:boxfish-push

启动命令:service boxfish-push start

服务jar包文件名:boxfish-push.jar

服务jar包目录:/root/projects

log地址:/var/log/boxfish-push.log

###boxfish-sig

腾讯云签名程序

服务端口号:8788

服务名:sig

启动命令:service sig start

服务jar包文件名:sig.jar

服务jar包目录:/root/projects

log地址:/var/log/sig.log

###teaching-service-wiki

wiki项目

###teaching-service-task

定时任务项目

服务端口号:9093

服务名:

启动命令:

服务jar包文件名:

服务jar包目录:/root/projects

log地址:

#常用日志操作命令

//统计12938在日志中出现的次数
cat /var/log/teaching-service.log |grep "12938" |wc -l

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 类中修改接收邮件的邮箱

#用到的数据库表

course_break  

course_status

group_room_info 常用 存放群组和房间信息

group_wait_for_destroy 常用 存放等待定时任务删除的群组id

qcloud_error_info 常用 客户端上报的腾讯云错误

student_ready

#配置接口访问权限

在TokenFilter urlPatterns中,添加接口名以增加接口访问权限