diagnose部署文档
来源:互联网 发布:网络教育专升本很垃圾 编辑:程序博客网 时间:2024/06/08 05:15
部署文档路径:
https://192.168.57.73/PPD/tenant/trunk/Documents/D4.Manuals/部署文档/账户分析部署文档
写作注意事项:
1.src/main/resources目录下的所有设计${XXX}取值的都需要说明取值,如红色区域的部分。其中jresplus和service等,会自动取properties中的数据
2.所有profile.local.properties里面的字段,都需要在部署文档里面进行说明,取值可以取自profile.diagnose-trunk-test.properties
3.nginx说明。如果是front的话,需要说明nginx的红色部分,把标红部分修改一下即可
location/diagnose.front{
add_header'Access-Control-Allow-Origin' '*';
add_header'Access-Control-Allow-Credentials' 'true';
add_header'Access-Control-Allow-Methods' 'OPTION, POST, GET';
add_header'Access-Control-Allow-Headers' 'X-Requested-With, Content-Type,authorization';
proxy_pass http://127.0.0.1:8089/diagnose.front;
}
以下是 账户分析部署文档 的具体内容:
仿真app...........................................................................................................................1
一、逻辑部署图.......................................................................................................4
二、部署.................................................................................................................4
1、部署前提.....................................................................................................4
2、程序包说明.................................................................................................4
3、部署方法.....................................................................................................4
4、配置文件说明..............................................................................................4
5、 Nginx配置..................................................................................................8
1、部署前提
Tomcat7
Jdk7
具体安装,请参看《Tomcat等基础服务安装手册安装手册》。
2、程序包说明
com.hundsun.ftenant.front.diagnose.war http网关接入,用于提供http服务
3、部署方法
将war放到相应的tomcat的webapp目录下,即可。
4、配置文件说明
4.1 com.hundsun.ftenant.front.diagnose:仿真交易配置
4.1.1 WEB-INF/classes/ares-app-config.xm
(1)发布节点名:
<pub nodeName="diagnose_front_${nodename_suffix}"nodeNo="0"/>
(2)路由配置:
<routetables>
<routetableserviceId="com.hundsun.jres.manage"functionId="8"pluginId="jres.mproxy"/>
<routetablefunctionId="51110??;51119??"nodeName="user_${nodename_suffix}"/>
<routetablefunctionId="51135??"nodeName="compet_${nodename_suffix}"/>
<routetablefunctionId="*"pluginId="jres.xmlServiceModule"/>
</routetables>
4.1.2. 配置openApi链接等
无
4.1.3. WEB-INF/classes/conf/redis.properties redis配置
#redis.host=192.168.78.21
redis.host=10.139.107.166
#redis.host=127.0.0.1
redis.port=6379
redis.password=hsitn@123
redis.default.db=1
redis.timeout=100000
redis.maxTotal=300
redis.maxIdle=100
redis.minIdle=10
redis.maxWaitMillis=1000
redis.testOnBorrow=true
redis.minEvictableIdleTimeMillis=300000
redis.numTestsPerEvictionRun=3
redis.timeBetweenEvictionRunsMillis=60000
4.1.4. WEB-INF/classes/conf/config.properties配置
jdbc.url=jdbc:mysql://rds4peh22j443e68070f.mysql.rds.aliyuncs.com:3306/stockwin?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true
jdbc.username=hsitn
jdbc.password=hsitn_test123
jdbc.driverClass=com.mysql.jdbc.Driver
appkey=9e334f3a-fb73-4a54-b50a-1a740da007fb:64da5ac8-240a-44a3-8748-e64591fada7b
openapi_domain_open= https://sitapi.hscloud.cn
openapi_domain_vopen= https://sitapi.hscloud.cn
4.1.5. WEB-INF/classes/conf/diagnose.properties配置
AccountDiagInitFlag=1
AccountDiagInitAsset=1000000
AccountDiagDownloadUrl=http://120.27.165.48:8081/
AccountDiagDownloadUserName=niubei
AccountDiagDownloadPassword=niubei91024
build_wjj=/home/download/fstock/accountdiag/
stock.shares.rules=0.2,0.4
qryWeekProfit.calculate_cycle=1
accountdiaginitasset=1000000
authURL=http://10.139.112.198:8888/oauth.controller/oauth/user/getUser.json
5、Nginx配置
nginx.conf 开发环境的配置 供参考:
user nginx;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local]"$request" '
# '$status $body_bytes_sent"$http_referer" '
# '"$http_user_agent""$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 8080;
server_name localhost;
#charsetkoi8-r;
#access_log logs/host.access.log main;
location/diagnose.front{
add_header'Access-Control-Allow-Origin' '*';
add_header'Access-Control-Allow-Credentials' 'true';
add_header'Access-Control-Allow-Methods' 'OPTION, POST, GET';
add_header'Access-Control-Allow-Headers' 'X-Requested-With, Content-Type,authorization';
proxy_pass http://127.0.0.1:8089/diagnose.front;
}
location/ {
root/home/nginx/itn/mobile/;
index/html/enter.html;
}
location/simulation {
alias /home/nginx/itn/simulation/;
index index.html;
}
location/app {
alias/home/nginx/itn/app/;
indexindex.html;
}
location /user/images {
alias/home/nginx/itn/user/images/;
}
location/banner {
alias/home/nginx/itn/banner/;
}
location/quote {
proxy_pass http://127.0.0.1:8088/quote;
}
#error_page 404 /404.html;
# redirectserver error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location =/50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on127.0.0.1:80
#
#location ~\.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass thePHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~\.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# denyaccess to .htaccess files, if Apache's document root
# concurswith nginx's one
#
#location ~/\.ht {
# deny all;
#}
}
# anothervirtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# location / {
# root html;
# index index.html index.htm;
# }
#}
# HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
#}
}
- diagnose部署文档
- How to use OS commands to diagnose Database Performance issues? (文档 ID 224176.1)
- 部署文档
- Diagnose and troubleshooting guide
- (OK) network diagnose tools
- GlusterFs安装部署文档
- MogileFS 部署(测试)文档
- Cacti部署文档
- oracle10g rac部署文档
- Redis部署文档
- RTX公网部署文档
- WEBLOGIC部署文档
- openstreetmap website 部署文档
- MetaQ安装部署文档
- pptpd安装部署文档
- Opencontrail部署文档
- TProfiler部署文档
- Ambari-部署文档
- sift算法原理详解(三)
- C# 将datagridview数据修改后传入数据库
- SWT中颜色获取
- linux shell 中$() ${}$(())的应用
- jquery笔记二
- diagnose部署文档
- 统计学习基本概念
- HTTPS 证书申请及配置
- 2.Unity3D热更新-LuaFramework-使用lua创建物体
- 项目大作业之日记本系统2
- vb的datagrid控件的使用(一)
- Oracle ROLLUP和CUBE 用法
- 树的子结构
- bug宝典JAVA篇 missed their scheduled fire-time