diagnose部署文档

部署文档路径:

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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值