# koala-cloud **Repository Path**: javakoala/koala-cloud ## Basic Information - **Project Name**: koala-cloud - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-11-24 - **Last Updated**: 2021-12-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 网关获取服务信息时间较长,需多等待一段时间。 docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -d mysql:8.0 shopping-db ```sql SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for t_goods -- ---------------------------- DROP TABLE IF EXISTS `t_goods`; CREATE TABLE `t_goods` ( `id` bigint NOT NULL, `no` bigint DEFAULT NULL, `name` varchar(255) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; -- ---------------------------- -- Records of t_goods -- ---------------------------- BEGIN; INSERT INTO `t_goods` VALUES (1461223685992972288, 1461223685992972289, '测试商品-01'); INSERT INTO `t_goods` VALUES (1461223685992972289, 1461223820885975040, '测试商品-02'); INSERT INTO `t_goods` VALUES (1461223820885975040, 1461223888594644992, '测试商品-03'); INSERT INTO `t_goods` VALUES (1461223888594644992, 1461223957804843008, '测试商品-04'); INSERT INTO `t_goods` VALUES (1461223957804843009, 1461223957804843010, '测试商品-05'); INSERT INTO `t_goods` VALUES (1461223957804843011, 1461223957804843012, '测试商品-06'); INSERT INTO `t_goods` VALUES (1461223957804843013, 1461223957804843014, '测试商品-07'); INSERT INTO `t_goods` VALUES (1461223957804843015, 1461223957804843016, '测试商品-08'); INSERT INTO `t_goods` VALUES (1461223957804843016, 1461224240492503040, '测试商品-09'); INSERT INTO `t_goods` VALUES (1461224240492503041, 1461224240492503042, '测试商品-10'); INSERT INTO `t_goods` VALUES (1461224240492503043, 1461224240492503044, '测试商品-11'); INSERT INTO `t_goods` VALUES (1461224240492503045, 1461224240492503046, '测试商品-12'); COMMIT; SET FOREIGN_KEY_CHECKS = 1; ``` warehouse-db ```sql SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for t_goods_inventory -- ---------------------------- DROP TABLE IF EXISTS `t_goods_inventory`; CREATE TABLE `t_goods_inventory` ( `id` bigint NOT NULL, `no` bigint DEFAULT NULL, `count` int DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin; -- ---------------------------- -- Records of t_goods_inventory -- ---------------------------- BEGIN; INSERT INTO `t_goods_inventory` VALUES (1462991094802284544, 1461223685992972289, 100); INSERT INTO `t_goods_inventory` VALUES (1462991094802284545, 1461223820885975040, 90); INSERT INTO `t_goods_inventory` VALUES (1462991094802284546, 1461223888594644992, 85); INSERT INTO `t_goods_inventory` VALUES (1462991094802284547, 1461223957804843008, 70); INSERT INTO `t_goods_inventory` VALUES (1462991094802284548, 1461223957804843010, 50); INSERT INTO `t_goods_inventory` VALUES (1462991094806478848, 1461223957804843012, 30); INSERT INTO `t_goods_inventory` VALUES (1462991094806478849, 1461223957804843014, 32); INSERT INTO `t_goods_inventory` VALUES (1462991094806478850, 1461223957804843016, 44); INSERT INTO `t_goods_inventory` VALUES (1462991094806478851, 1461224240492503040, 55); INSERT INTO `t_goods_inventory` VALUES (1462991094806478852, 1461224240492503042, 62); INSERT INTO `t_goods_inventory` VALUES (1462991094806478853, 1461224240492503044, 81); INSERT INTO `t_goods_inventory` VALUES (1462991094806478854, 1461224240492503046, 0); COMMIT; SET FOREIGN_KEY_CHECKS = 1; ``` docker run -d -p 9411:9411 openzipkin/zipkin 安装influxdb 1、生成配置文件 docker run --rm influxdb:1.8 influxd config > /Users/koala/Documents/develop/docker-volumes/influxdb/influxdb.conf 2、创建容器 docker run -p 8086:8086 \ -v /Users/koala/Documents/develop/docker-volumes/influxdb:/root/influxdb/data \ -v /Users/koala/Documents/develop/docker-volumes/influxdb/influxdb.conf:/etc/influxdb/influxdb.conf:ro \ influxdb:1.8 -config /etc/influxdb/influxdb.conf 3、配置权限 #进入容器 docker exec -it my-influxdb /bin/bash 输入 influx #创建用户和密码 create user "admin" with password 'admin' with all privileges create user "admin" with password 'beyond_2021' with all privileges auth admin admin 登录 show databases; 展示数据库 create database demo 创建表 安装grafana docker run -d --name=grafana -p 3000:3000 grafana/grafana 账号密码 admin/admin #### Seata #### Seata-Server 配置文件 ```yaml ```