|
|
hai 1 mes | |
|---|---|---|
| .idea | hai 2 meses | |
| libs | hai 3 meses | |
| nacos-monitor | hai 2 meses | |
| yt-advertise | hai 3 meses | |
| yt-agent | hai 1 mes | |
| yt-common | hai 1 mes | |
| yt-gateway | hai 1 mes | |
| yt-ios-lemon | hai 1 mes | |
| yt-middle | hai 1 mes | |
| yt-oauth | hai 1 mes | |
| yt-question | hai 1 mes | |
| yt-risk | hai 1 mes | |
| .gitignore | hai 5 meses | |
| ReadMe.md | hai 1 mes | |
| architecture.mmd | hai 4 meses | |
| pom.xml | hai 1 mes |
本地调试请切换配置文件至local模式!!!!
本地调试请切换配置文件至local模式!!!!
本地调试请切换配置文件至local模式!!!!
数据库当前为主从部署,数据操作及DDL操作请在master节点使用SQL语句处理
数据库当前为主从部署,数据操作及DDL操作请在master节点使用SQL语句处理
版本依赖
| 依赖 | 版本 |
|---|---|
| jdk | 1.8 |
| SpringBoot | 2.1.9.RELEASE |
| SpringCloudAlibaba | 0.9.0.RELEASE |
| mysql | 5.7.44-log |
| nacos | 2.4.3 |
项目结构
-- yt-platform
----yt-common 公共包
----yt-gateway 网关
----yt-oauth 授权中心
----yt-agent 易推平台代理商系统
----yt-advertise 广告API
----yt-middle 易推中台
----yt-risk 风控中心
----yt-question 答题服务
# 1.进入部署目录
cd /data/www/app
# 2.检查服务是否已部署
ps -ef|grep -s [service]
# 前往nacos下线当前实例
# 查询实例日志
tail -fn 100 [service].log
# risk-manageer
nohup java -jar -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 -XX:G1ReservePercent=10 \
-XX:MaxGCPauseMillis=300 risk-manage.jar > risk.log 2>&1 &
# yt-middle
nohup java -jar -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 yt-middle.jar > middle.log 2>&1 &
# agent-service
nohup java -jar -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 -XX:G1ReservePercent=10 \
-XX:MaxGCPauseMillis=300 agent-service.jar > agent.log 2>&1 &
#####################
# nofeeds-service
nohup java -jar -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/nofeeds.hprof \
nofeeds-service.jar > nofeeds.log 2>&1 &
# 青柠记账 lime-service
nohup java -jar -Xms3072m -Xmx3072m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/lime.hprof \
lime-service.jar > lime.log 2>&1 &
#######################
# 典故问答王 allusion-service
nohup java -jar -Xms2048m -Xmx2048m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/allusion.hprof \
allusion-service.jar > allusion.log 2>&1 &
# 计数计算器 calculator-service
nohup java -jar -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/calculator.hprof \
calculator-service.jar > calculator.log 2>&1 &
# 斗图表情大师 emoticons-service
nohup java -jar -Xms2048m -Xmx2048m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/emoticons.hprof \
emoticons-service.jar > emoticons.log 2>&1 &
# algebraic-service.jar
nohup java -jar -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/algebraic.hprof \
algebraic-service.jar > algebraic.log 2>&1 &
# 算术小达人 arithmetic-service
nohup java -jar -Xms2048m -Xmx2048m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/arithmetic.hprof \
arithmetic-service.jar > arithmetic.log 2>&1 &
# 计步趣健身 countstep-service
nohup java -jar -Xms2048m -Xmx2048m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/countstep.hprof \
countstep-service.jar > countstep.log 2>&1 &
# 元气算术能手 vitality-service
nohup java -jar -Xms2048m -Xmx2048m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/vitality.hprof \
vitality-service.jar > vitality.log 2>&1 &
# 小锦鲤 carp-service
nohup java -jar -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/carp.hprof \
carp-service.jar > carp.log 2>&1 &
# 谚语知识赛 proverb-service.
nohup java -jar -Xms2048m -Xmx2048m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/proverb.hprof \
proverb-service.jar > proverb.log 2>&1 &
# 谚语变形记 adage-service
nohup java -jar -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/adage.hprof \
adage-service.jar > adage.log 2>&1 &
# 好运答题王 dtw-service
nohup java -jar -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/dtw.hprof \
dtw-service.jar > dtw.log 2>&1 &
# 咕噜日记 diary-service
nohup java -jar -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/diary.hprof \
diary-service.jar > diary.log 2>&1 &
# 答题达人 answer-service
nohup java -jar -Xms3072m -Xmx3072m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/answer.hprof \
answer-service.jar > answer.log 2>&1 &
# 代数式能手 algebraic-service
nohup java -jar -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/algebraic.hprof \
algebraic-service.jar > algebraic.log 2>&1 &
# 歇后语擂台 arena-service
nohup java -jar -Xms2048m -Xmx2048m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/arena.hprof \
arena-service.jar > arena.log 2>&1 &
# 天天趣算术 funarith
nohup java -jar -Xms3072m -Xmx3072m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/funarith.hprof \
funarith-service.jar > funarith.log 2>&1 &
# 成语趣解释 idiom
nohup java -jar -Xms2048m -Xmx2048m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/idiom.hprof \
idiom-service.jar > idiom.log 2>&1 &
# 每天爱跑步 irun
nohup java -jar -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/irun.hprof \
irun-service.jar > irun.log 2>&1 &
# 宠物里程表 mileage
nohup java -jar -Xms4096m -Xmx4096m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/mileage.hprof \
mileage-service.jar > mileage.log 2>&1 &
# 全民养猪 raisepig
nohup java -jar -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/raisepig.hprof \
raisepig-service.jar > raisepig.log 2>&1 &
# 找茬挑战王 picking
nohup java -jar -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/picking.hprof \
picking-service.jar > picking.log 2>&1 &
# 归物迹 summary
nohup java -jar -Xms2048m -Xmx2048m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/summary.hprof \
summary-service.jar > summary.log 2>&1 &
# 打字训练营 typing
nohup java -jar -Xms2048m -Xmx2048m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/typing.hprof \
typing-service.jar > typing.log 2>&1 &
# 青柠檬记账 lemon
nohup java -jar -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/lemon.hprof \
lemon-service.jar > lemon.log 2>&1 &
# 走路趣计步 walk
nohup java -jar -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/walk.hprof \
walk-service.jar > walk.log 2>&1 &
# 全民爱走路 walking
nohup java -jar -Xms2048m -Xmx2048m -XX:MaxMetaspaceSize=256M -XX:+UseCompressedOops \
-XX:+UseG1GC -XX:ConcGCThreads=2 -XX:InitiatingHeapOccupancyPercent=35 \
-XX:G1ReservePercent=10 -XX:MaxGCPauseMillis=300 \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/www/app/walking.hprof \
walking-service.jar > walking.log 2>&1 &
删除指定appid风控规则
delete from yt_risk_config
where config_id in (
select config_id from yt_risk_template_config
where template_id in (SELECT template_id from yt_risk_template where template_code like '[appid]%')
);
delete from yt_risk_template_config
where template_id in (SELECT template_id from yt_risk_template where template_code like '[appid]%');
delete from yt_risk_template where template_code like '[appid]%';
...