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;

    #    }

    #}

 

}

 



0 0
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 儿童大便有粘液怎么办 宝宝拉鼻涕屎怎么办 婴儿拉白色粘液怎么办 宝宝不肯吃鱼肝油怎么办 婴儿不肯吃鱼肝油怎么办 宝宝吃鱼肝油吐怎么办 五个月婴儿夏天怎么办 厌奶期宝宝瘦了怎么办 二个月的宝宝不喝夜奶怎么办 婴儿不喝奶粉怎么办 小孩整天不吃饭怎么办 婴儿不吃不喝怎么办 断奶后不吃奶瓶怎么办 小孩早上不吃饭怎么办 新生儿不认乳头怎么办 宝宝不吸奶嘴怎么办 孩子不会吸奶瓶怎么办 宝宝突然不吃奶瓶怎么办 换了奶瓶不喝奶怎么办 新生儿不喝奶粉怎么办 7个月小婴儿磨牙怎么办 宝宝出生四天不喝母乳怎么办 我的奶水不足怎么办 乳牙长得不整齐怎么办 新生儿只吃奶粉怎么办 小孩不肯吸母乳怎么办 三个月宝宝不吃奶粉怎么办 宝宝不爱喝水怎么办 崔玉涛 小孩身体铅过高怎么办 疫苗引起的发烧怎么办 婴儿不吃米糊怎么办 宝宝米糊不吃怎么办 换奶瓶宝宝不吃怎么办 小孩不会吃奶瓶怎么办 百天不吃奶瓶怎么办 1岁宝宝积食怎么办 宝宝退烧后流汗怎么办 宝宝高烧后出汗怎么办 发烧出汗不退烧怎么办 婴儿发烧不出汗怎么办 婴幼儿发烧不退怎么办