Dxl

来自ling
跳转至: 导航搜索

java -jar

app ui

cd /ling-cloud/dxl/app
git pull
npm run build

manager ui

cd /ling-cloud/ling-cloud-ui
git pull
npm run build

nacos

cd /ling-cloud/ling-cloud/ling-cloud-nacos
mvn install
cd /ling-cloud/ling-cloud/ling-cloud-nacos/target
nohup java -jar /ling-cloud/ling-cloud/ling-cloud-nacos/target/ling-cloud-nacos.jar  --server.port=8848 --db.user=root --db.password=Wb19831010! --db.url.0=jdbc:mysql://172.26.161.78:3306/base_nacos  &
tail -f /ling-cloud/ling-cloud/ling-cloud-nacos/target/nohup.out

admin

cd /ling-cloud/ling-cloud/ling-cloud-admin
mvn -o install
cd /ling-cloud/ling-cloud/ling-cloud-admin/ling-cloud-admin-biz/target
nohup java  -Xms1024m -Xmx2048m  -jar /ling-cloud/ling-cloud/ling-cloud-admin/ling-cloud-admin-biz/target/ling-cloud-admin-biz.jar --spring.cloud.nacos.discovery.server-addr=172.26.161.78:8848  --spring.cloud.nacos.config.server-addr=172.26.161.78:8848 --spring.profiles.active=prd --spring.cloud.nacos.config.namespace=71af3a62-0bc0-4f1e-8e50-a997f811101c --spring.cloud.nacos.discovery.namespace=71af3a62-0bc0-4f1e-8e50-a997f811101c --server.port=4000 &
tail -f /ling-cloud/ling-cloud/ling-cloud-admin/ling-cloud-admin-biz/target/nohup.out

auth

cd /ling-cloud/ling-cloud/ling-cloud-auth
mvn -o install
cd /ling-cloud/ling-cloud/ling-cloud-auth/target
nohup java -jar /ling-cloud/ling-cloud/ling-cloud-auth/target/ling-cloud-auth.jar  --spring.cloud.nacos.discovery.server-addr=172.26.161.78:8848  --spring.cloud.nacos.config.server-addr=172.26.161.78:8848  --spring.profiles.active=prd --spring.cloud.nacos.config.namespace=71af3a62-0bc0-4f1e-8e50-a997f811101c --spring.cloud.nacos.discovery.namespace=71af3a62-0bc0-4f1e-8e50-a997f811101c --server.port=3000 &
 tail -f /ling-cloud/ling-cloud/ling-cloud-auth/target/nohup.out

gateway

cd /ling-cloud/ling-cloud/ling-cloud-gateway
mvn  -o install
cd /ling-cloud/ling-cloud/ling-cloud-gateway/target
nohup java -jar /ling-cloud/ling-cloud/ling-cloud-gateway/target/ling-cloud-gateway.jar --spring.profiles.active=prd   --spring.cloud.nacos.discovery.server-addr=172.26.161.78:8848  --spring.cloud.nacos.config.server-addr=172.26.161.78:8848   --spring.cloud.nacos.config.namespace=71af3a62-0bc0-4f1e-8e50-a997f811101c --spring.cloud.nacos.discovery.namespace=71af3a62-0bc0-4f1e-8e50-a997f811101c --server.port=9999 &
 tail -f /ling-cloud/ling-cloud/ling-cloud-gateway/target/nohup.out

dxl

ps -ef|grep ling-cloud-dxl-biz
kill -9 
rm -rf /alidata/server/maven_repository/repository/com/ling/ling-cloud-dxl-api
cd /ling-cloud/ling-cloud/ling-cloud-dxl
git pull
mvn -o install
cd /ling-cloud/ling-cloud/ling-cloud-dxl/ling-cloud-dxl-biz/target
nohup java  -Xms1024m -Xmx2048m -jar /ling-cloud/ling-cloud/ling-cloud-dxl/ling-cloud-dxl-biz/target/ling-cloud-dxl-biz.jar  --spring.profiles.active=prd   --spring.cloud.nacos.discovery.server-addr=172.26.161.78:8848  --spring.cloud.nacos.config.server-addr=172.26.161.78:8848    --spring.cloud.nacos.config.namespace=71af3a62-0bc0-4f1e-8e50-a997f811101c --spring.cloud.nacos.discovery.namespace=71af3a62-0bc0-4f1e-8e50-a997f811101c --server.port=5009 &
tail -f /ling-cloud/ling-cloud/ling-cloud-dxl/ling-cloud-dxl-biz/target/nohup.out

pay

ps -ef|grep ling-cloud-pay
kill -9 
cd /ling-cloud/ling-cloud/ling-cloud-pay
git pull
mvn -o install
cd /ling-cloud/ling-cloud/ling-cloud-pay/target
nohup java -jar /ling-cloud/ling-cloud/ling-cloud-pay/target/ling-cloud-pay.jar  --spring.profiles.active=prd   --spring.cloud.nacos.discovery.server-addr=172.26.161.78:8848  --spring.cloud.nacos.config.server-addr=172.26.161.78:8848    --spring.cloud.nacos.config.namespace=71af3a62-0bc0-4f1e-8e50-a997f811101c --spring.cloud.nacos.discovery.namespace=71af3a62-0bc0-4f1e-8e50-a997f811101c --server.port=5010 &
tail -f /ling-cloud/ling-cloud/ling-cloud-pay/target/nohup.out
redirect_url错误

除了支付的页面需要修改url https://mp.weixin.qq.com/cgi-bin/settingpage?t=setting/function&action=function&token=1380626224&lang=zh_CN 这里的也需要修改

刷新一下哪里都不去

https证书问题

删除

--select * from sys_user u where u.username='admin';
delete
from sys_user_role ur
where ur.user_id in (select user_id from sys_user u where u.username != 'admin');

delete
from sys_user u
where u.username != 'admin';


delete
from dxl_user_ext_info where 1=1;
delete
from dxl_user_level where 1=1;
delete
from dxl_user_level_his where 1=1;
delete
from dxl_user_query_num_pay_his where 1=1;
delete
from dxl_user_relation where 1=1;

delete
from dxl_order where 1=1;
delete
from dxl_capital_detal where 1=1;
delete
from dxl_bill where 1=1;
delete
from dxl_group_cal where 1=1;
delete
from dxl_group_cal_detail where 1=1;

delete  from dxl_withdrawal where 1=1;

==

yum install git python

yum update -y nss curl libcurl

git clone https://github.com/letsencrypt/letsencrypt

/alidata/dockerdata/nginx/letsencrypt/letsencrypt-auto certonly --standalone --email 102010cncger@sina.com -d www.daixiaole.net -d app.daixiaole.net -d manager.daixiaole.net

nginx

/alidata/server/nginx/sbin/nginx -s stop
/alidata/server/nginx/sbin/nginx  -c /alidata/dockerdata/nginx/conf/nginx.conf
tee /alidata/dockerdata/nginx/conf/nginx.conf <<-'EOF'
#user  nobody;
user root;
worker_processes  12;

#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       80;
        listen       443 ssl;
        server_name  mantis.daixiaole.net;

        charset utf-8;

        location / {
          proxy_pass http://127.0.0.1:68/;
          proxy_set_header   Host             $host;
          proxy_set_header   X-Real-IP        $remote_addr;
          proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
          client_max_body_size    1000m;
        }
        ssl_certificate      /etc/letsencrypt/live/wiki.ling2.cn/fullchain.pem;
        ssl_certificate_key  /etc/letsencrypt/live/wiki.ling2.cn/privkey.pem;
    }
    server {
        listen       80;
        listen       443 ssl;
        server_name  nacos.daixiaole.net;

        charset utf-8;

        location / {
          proxy_set_header   Host             $host;
          #proxy_set_header   X-Real-IP        $remote_addr;
          proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
          proxy_pass http://127.0.0.1:8848/;
        }
        ssl_certificate      /etc/letsencrypt/live/wiki.ling2.cn/fullchain.pem;
        ssl_certificate_key  /etc/letsencrypt/live/wiki.ling2.cn/privkey.pem;
    }
    server {
        listen       80;
        listen       443 ssl;
        server_name  manager.daixiaole.net;

        charset utf-8;

         location ^~/api/ver2.0/ {
           proxy_set_header   Host             $host;
           proxy_set_header   X-Real-IP        $remote_addr;
           proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
           rewrite ^/api/ver2.0/(.*)$ /$1 break;
           proxy_pass http://127.0.0.1:9999;
           proxy_set_header Upgrade $http_upgrade;
           proxy_set_header Connection "upgrade";
           client_max_body_size    1000m;
         }

        location / {
           proxy_set_header   Host             $host;
           proxy_set_header   X-Real-IP        $remote_addr;
           proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
           #alias /alidata/dockerdata/ling-cloud-ui/dist/;
           alias /ling-cloud/ling-cloud-ui/dist/;
   index  index.html index.htm;
           expires     -1;
        }
        ssl_certificate      /etc/letsencrypt/live/wiki.ling2.cn/fullchain.pem;
        ssl_certificate_key  /etc/letsencrypt/live/wiki.ling2.cn/privkey.pem;
    }
    server {
        listen       80;
        listen       443 ssl;
        server_name  app.daixiaole.net;

        charset utf-8;

         location ^~/api/ver2.0/ {
           proxy_set_header   Host             $host;
           proxy_set_header   X-Real-IP        $remote_addr;
           proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
           rewrite ^/api/ver2.0/(.*)$ /$1 break;
           proxy_pass http://127.0.0.1:9999;
           proxy_set_header Upgrade $http_upgrade;
           proxy_set_header Connection "upgrade";
           client_max_body_size    1000m;
         }

        location / {
           proxy_set_header   Host             $host;
           proxy_set_header   X-Real-IP        $remote_addr;
           proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
           #proxy_pass https://127.0.0.1:9999/;
           proxy_set_header Upgrade $http_upgrade;
           proxy_set_header Connection "upgrade";
           client_max_body_size    1000m;

           alias /ling-cloud/dxl/app/dist/;
           index  index.html index.htm;
           expires     -1;
        }
        ssl_certificate      /etc/letsencrypt/live/wiki.ling2.cn/fullchain.pem;
        ssl_certificate_key  /etc/letsencrypt/live/wiki.ling2.cn/privkey.pem;
    }
    server {
        listen       80;
        listen       443 ssl;
        server_name  www.daixiaole.net;

        charset utf-8;

         location ^~/api/ver2.0/ {
           proxy_set_header   Host             $host;
           proxy_set_header   X-Real-IP        $remote_addr;
           proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
           rewrite ^/api/ver2.0/(.*)$ /$1 break;
           proxy_pass http://127.0.0.1:9999;
           proxy_set_header Upgrade $http_upgrade;
           proxy_set_header Connection "upgrade";
           client_max_body_size    1000m;
         }

        location / {
           proxy_set_header   Host             $host;
           proxy_set_header   X-Real-IP        $remote_addr;
           proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
           #proxy_pass https://127.0.0.1:9999/;
           proxy_set_header Upgrade $http_upgrade;
           proxy_set_header Connection "upgrade";
           client_max_body_size    1000m;

           alias /ling-cloud/dxl/app/dist/;
           index  index.html index.htm;
           expires     -1;
        }
        ssl_certificate      /etc/letsencrypt/live/wiki.ling2.cn/fullchain.pem;
        ssl_certificate_key  /etc/letsencrypt/live/wiki.ling2.cn/privkey.pem;
    }
    server {
        listen       80;
        listen       443 ssl;
        server_name  pgadmin4.daixiaole.net;

        charset utf-8;

        location / {
          proxy_pass http://127.0.0.1:5433/;
          proxy_set_header   Host             $host;
          proxy_set_header   X-Real-IP        $remote_addr;
          proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
          client_max_body_size    1000m;
        }
        ssl_certificate      /etc/letsencrypt/live/wiki.ling2.cn/fullchain.pem;
        ssl_certificate_key  /etc/letsencrypt/live/wiki.ling2.cn/privkey.pem;
    }
}
EOF