最新版1991.mobi合约交易/数字钱包/机器人/APP/值得信赖的数字资产交易所

http://lkccion.com/dist/#/

服务器配置为

Web服务器:8核16g 内存200g硬盘

Node钱包服务器:8核16g内存200g硬盘+1.5TB数据盘

数据库服务器:8核16g内存200g硬盘

ElasticSearch服务器:2核心4g(1核心2g也可以用)

前端打包时,应当把webpack隐藏,webpack.prod.conf.js里devtool设置成false

ElasticSearch 配置(如果不用阿里云es,将其放到home目录,记得修改uuid)

创建实例,后登录Kibana,在命令行界面建立索引,并生成映射。

1.第一步

PUT market.kline/      建立索引

2.第二步

POST market.kline/doc/_mapping   建立mapping

 {

      “doc”: {

        “properties”: {

          “amount”: {

            “type”: “text”,

            “fields”: {

              “keyword”: {

                “type”: “keyword”,

                “ignore_above”: 256

              }

            }

          },

          “base-currency”: {

            “type”: “text”,

            “fields”: {

              “keyword”: {

                “type”: “keyword”,

                “ignore_above”: 256

              }

            }

          },

          “close”: {

            “type”: “text”,

            “fields”: {

              “keyword”: {

                “type”: “keyword”,

                “ignore_above”: 256

              }

            }

          },

          “high”: {

            “type”: “text”,

            “fields”: {

              “keyword”: {

                “type”: “keyword”,

                “ignore_above”: 256

              }

            }

          },

          “id”: {

            “type”: “long”

          },

          “low”: {

            “type”: “text”,

            “fields”: {

              “keyword”: {

                “type”: “keyword”,

                “ignore_above”: 256

              }

            }

          },

          “match_id”: {

            “type”: “long”

          },

          “open”: {

            “type”: “text”,

            “fields”: {

              “keyword”: {

                “type”: “keyword”,

                “ignore_above”: 256

              }

            }

          },

          “period”: {

            “type”: “text”,

            “fields”: {

              “keyword”: {

                “type”: “keyword”,

                “ignore_above”: 256

              }

            }

          },

          “quote-currency”: {

            “type”: “text”,

            “fields”: {

              “keyword”: {

                “type”: “keyword”,

                “ignore_above”: 256

              }

            }

          },

          “vol”: {

            “type”: “text”,

            “fields”: {

              “keyword”: {

                “type”: “keyword”,

                “ignore_above”: 256

              }

            }

          }

        }

      }

  }

安装nodejs,vue,打包前端。

将相应文件放置在三台对应服务器,导入数据库。

开放端口,修改.env文件

DB_CONNECTION=mysql

DB_HOST=对应服务器内网地址

DB_PORT=端口

DB_DATABASE=名称

DB_USERNAME=名称

DB_PASSWORD=密码

BROADCAST_DRIVER=log

CACHE_DRIVER=file

SESSION_DRIVER=redis

SESSION_CONNECTION=session

QUEUE_DRIVER=redis

QUEUE_CONNECTION=queue

DEMO_MODE=0

REDIS_HOST=对应服务器内网地址

REDIS_PASSWORD=密码

REDIS_PORT=6379

REDIS_CACHE_DB=1

REDIS_QUEUE_DB=2

REDIS_SESSION_DB=3

Elasticsearch设置

ELASTICSEARCH_HOST=es地址,默认端口号9200

ELASTICSEARCH_INDEX=索引名称

邮件服务器设置,默认端口2525

MAIL_DRIVER=

MAIL_HOST=

MAIL_PORT=

MAIL_USERNAME=

MAIL_PASSWORD=

MAIL_ENCRYPTION=

Socket端口及workman设置

SOCKET_IO_PORT=2000

HTTP_WORKER_PORT=2001

WEB_SERVER_PORT=2002

TEXT_WORKER_PORT=2003

WORKER_PUSH_URL=对应服务器内网地址

SOCKET_USE_SSL=0

SOCKET_SSL_CERT=

SOCKET_SSL_PK=

钱包设置

WALLET_API=对应服务器内网地址,默认端口82

GOCHAIN_API=对应服务器内网地址,默认端口88

GOCHAIN_KEY=gochainkey

USE_JAVA_MATCH_TRADE=1

JAVA_MATCH_URL=对应服务器内网地址,默认端口8080

SOCKET_REGISTER_SERVICE=true

SOCKET_REGISTER_ADDRESS=对应服务器内网地址,默认端口1236

SOCKET_GATEWAY_SERVICE=true

SOCKET_GATEWAY_SOCKET_NAME=websocket对应服务器地址,端口7272

SOCKET_GATEWAY_COUNT=3

SOCKET_GATEWAY_LAN_IP=对应服务器内网地址

SOCKET_GATEWAY_START_PORT=默认端口2100

SOCKET_BUSINESS_SERVICE=true

SOCKET_BUSINESS_COUNT=3

SOCKET_CHANNEL_SERVICE=true

SOCKET_CHANNEL_IP=对应服务器内网地址

SOCKET_CHANNEL_PORT=默认端口2200

安装composer

Laravel 初始化 或者启动start.sh

ls /etc/supervisor/conf.d/* 修改内部配置,将其修改为你的端口,里面所有的队列目录应为你的web网站目录

后台服务器启动workmam

启动websocket  php artisan websocket:client start &

设置软链

cd /www/wwwroot  && ln -s 名称1  名称2

supervisorctl start all 解决k线不刷新问题。

java机器人启动命令

cd /usr/local/tomcat

cd bin

./start.sh

active mq消息队列启动命令

cd /usr/local/activemq/bin && ./activemq start

启动相关服务

设置app对应反向代理

前端交易对刷新速度修改

ExchangePC目录下./components/LegalTrade.vue

前端默认语言修改./view/indexheader.vue

出现这个问题修改钱包私钥

备注:web服务器对应相关指令

Available commands:

  auto_cancel_legal    自动取消超时法币交易

  auto_confirm_legal   自动确认超时未确认法币交易

  clear-compiled       删除编译的类文件Remove the compiled class file

  down                 将应用程序置于维护模式Put the application into maintenance mode

  env                  显示当前框架环境Display the current framework environment

  execute_currency     上币执行脚本

  help                 显示命令的帮助Displays help for a command

  inspire              显示增加的价格Display an inspiring quote

  list                 列出命令Lists commands

  match                撮合引擎

  migrate              运行数据库迁移Run the database migrations

  optimize             缓存框架引导文件Cache the framework bootstrap files

  php_robot            PHP机器人

  preset               交换应用程序的前端脚手架Swap the front-end scaffolding for the application

  serve                在PHP开发服务器上为应用程序提供服务Serve the application on the PHP development server

  socket               工人网关Workerman Gateway

  tinker               与应用程序交互Interact with your application

  tonyenc              Tonyenc加密Tonyenc encrypt

  up                   使应用程序退出维护模式Bring the application out of maintenance mode

  update_balance       更新用户余额

  update_charge        更新用户的充币余额

  update_hash_status   更新链上哈希状态

  update_huobi_symbol  更新火币交易对

  update_news          更新项目的新闻

  update_private       更新私钥以及钱包地址

 auth

  auth:clear-resets    刷新过期的密码重置令牌Flush expired password reset tokens

 cache

  cache:clear          刷新应用程序缓存Flush the application cache

  cache:forget         从缓存中移除项Remove an item from the cache

  cache:table          为缓存数据库表创建迁移Create a migration for the cache database table

 clear

  clear:tokens         清除过期token

 config

  config:cache         创建缓存文件以加快配置加载Create a cache file for faster configuration loading

  config:clear         删除配置缓存文件Remove the configuration cache file

 db

  db:seed              在数据库中添加记录Seed the database with records

  db:wipe              删除所有表、视图和类型Drop all tables, views, and types

 event

  event:cache          发现并缓存应用程序的事件和侦听器Discover and cache the application’s events and listeners

  event:clear          清除所有缓存的事件和侦听器Clear all cached events and listeners

  event:generate       基于注册生成缺少的事件和侦听器Generate the missing events and listeners based on registration

  event:list           列出应用程序的事件和侦听器List the application’s events and listeners

 ide-helper

  ide-helper:eloquent  将“雄辩助手”添加到“雄辩模型”Add \Eloquent helper to \Eloquent\Model

  ide-helper:generate  生成新的IDE帮助程序文件。Generate a new IDE Helper file.

  ide-helper:meta      为PhpStorm生成元数据Generate metadata for PhpStorm

  ide-helper:models    生成模型的自动完成Generate autocompletion for models

 key

  key:generate         设置应用程序密钥Set the application key

 lever

  lever:overnight      杠杆交易隔夜费

 make

  make:channel         创建新频道类Create a new channel class

  make:command         创建新的Artisan命令Create a new Artisan command

  make:controller      创建新的控制器类Create a new controller class

  make:event           创建新的事件类Create a new event class

  make:exception       创建新的自定义异常类Create a new custom exception class

  make:export          创建新的导出类Create a new export class

  make:factory         创建新模型工厂Create a new model factory

  make:import          创建新的导入类Create a new import class

  make:job             创建新的作业类Create a new job class

  make:listener        创建新的事件侦听器类Create a new event listener class

  make:mail            创建新的电子邮件类Create a new email class

  make:middleware      创建新的中间件类Create a new middleware class

  make:migration       创建新的迁移文件Create a new migration file

  make:model           创建新的雄辩模型类Create a new Eloquent model class

  make:notification    创建新的通知类Create a new notification class

  make:observer        创建新的观察者类Create a new observer class

  make:policy         创建新策略类 Create a new policy class

  make:provider        创建新的服务提供程序类Create a new service provider class

  make:request         创建新的表单请求类Create a new form request class

  make:resource        创建新资源Create a new resource

  make:rule            创建新的验证规则Create a new validation rule

  make:seeder          创建新的播种器类Create a new seeder class

  make:test            创建新的测试类Create a new test class

 market

  market:clear:volume  清除24小时成交量

 migrate

  migrate:fresh        删除所有表并重新运行所有迁移Drop all tables and re-run all migrations

  migrate:install      创建迁移存储库Create the migration repository

  migrate:refresh      重置并重新运行所有迁移Reset and re-run all migrations

  migrate:reset        回滚所有数据库迁移Rollback all database migrations

  migrate:rollback     回滚上次数据库迁移Rollback the last database migration

  migrate:status       显示每次迁移的状态Show the status of each migration

 notifications

  notifications:table  为通知表创建迁移Create a migration for the notifications table

 optimize

  optimize:clear       删除缓存的引导文件Remove the cached bootstrap files

 package

  package:discover     重新生成缓存包清单Rebuild the cached package manifest

 queue

  queue:failed         列出所有失败的队列作业List all of the failed queue jobs

  queue:failed-table   为失败的队列作业数据库表创建迁移Create a migration for the failed queue jobs database table

  queue:flush          刷新所有失败的队列作业Flush all of the failed queue jobs

  queue:forget         删除失败的队列作业Delete a failed queue job

  queue:listen         收听给定队列Listen to a given queue

  queue:restart        在当前作业之后重新启动队列工作进程守护进程Restart queue worker daemons after their current job

  queue:retry          重试失败的队列作业Retry a failed queue job

  queue:table          为队列作业数据库表创建迁移Create a migration for the queue jobs database table

  queue:work           作为守护进程开始处理队列上的作业Start processing jobs on the queue as a daemon

 route

  route:cache          为更快的路由注册创建路由缓存文件Create a route cache file for faster route registration

  route:clear          删除路由缓存文件Remove the route cache file

  route:list           列出所有已注册的路线List all registered routes

 schedule

  schedule:run         运行调度命令Run the scheduled commands

 session

  session:table        为会话数据库表创建迁移Create a migration for the session database table

 socket

  socket:business      套接字业务服务socket business service

  socket:channel       套接字通道服务socket channel service

  socket:gateway      套接字网关服务 socket gateway service

  socket:register      套接字注册服务socket register service

 storage

  storage:link         创建从“public/storage”到“storage/app/public”的符号链接 Create a symbolic link from “public/storage” to “storage/app/public”

 vendor

  vendor:publish       从供应商包发布任何可发布的资产Publish any publishable assets from vendor packages

 view

  view:cache           编译应用程序的所有刀片模板Compile all of the application’s Blade templates

  view:clear           清除所有已编译的视图文件Clear all compiled view files

 websocket

  websocket:client    websocket客户端 websocket client

资源下载价格4000立即支付
猫力中国售后技术QQ:201156590
资源下载价格4000立即购买
猫力中国售后技术QQ:201156590
0
分享到:

评论0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
猫力网已开通免登录支付宝和微信支付!
没有账号? 忘记密码?

社交账号快速登录