问题一:
config3344从github拉取时,会出现两种出错。
第一:权限认证失败,将application.yml中的git地址从ssh换为http即可
第二:连接超时,无法打开,网络问题,多次重启即可解决。
问题二:
curl -X POST "http://localhost:3355/actuator/refersh"出错
解决方案:application.yml中management: endpoints:误写为了management: endpoint:。也就是少了一个s,就千差万别。
问题三:
bus中配置rabbit时,application.yml的bindings的binder对应的defaultRabbit变红
但是丝毫不影响其使用功能?疑惑inging
问题四:
Nacos无法启动
修改conf下的application.properties
在mysql中新建数据库相关即可。
新建一个数据库名为nacos,将nacos/conf/nacos-mysql.sql导入到数据库即可
之后在nacos的bin目录下启动nacos:
windows中:start.cmd -m standalone
Linux中:./start.sh -m standalone
在浏览器输入http://主机名:端口号(不修改默认为8848)/nacos即可
nacos已经配置过cluster.conf,因此启动为./start.sh -p 8848
问题五:
Seata启动失败
修改file.conf
store中的mode改为 db
db中的url、user和password修改
修改registry.conf
registry中的type改为nacos
nacos中的serverAddr改为nacos所在地址、username和password改为nacos
config中的nacos也同上的nacos配置修改
在mysql中建表(建表语句在0.9版本中存在,高版本似乎不存在)
CREATE DATABASE IF NOT EXISTS `seata`;
USE `seata`;
-- the table to store GlobalSession data
drop table if exists `global_table`;
create table `global_table` (
`xid` varchar(128) not null,
`transaction_id` bigint,
`status` tinyint not null,
`application_id` varchar(32),
`transaction_service_group` varchar(32),
`transaction_name` varchar(128),
`timeout` int,
`begin_time` bigint,
`application_data` varchar(2000),
`gmt_create` datetime,
`gmt_modified` datetime,
primary key (`xid`),
key `idx_gmt_modified_status` (`gmt_modified`, `status`),
key `idx_transaction_id` (`transaction_id`)
);
-- the table to store BranchSession data
drop table if exists `branch_table`;
create table `branch_table` (
`branch_id` bigint not null,
`xid` varchar(128) not null,
`transaction_id` bigint ,
`resource_group_id` varchar(32),
`resource_id` varchar(256) ,
`lock_key` varchar(128) ,
`branch_type` varchar(8) ,
`status` tinyint,
`client_id` varchar(64),
`application_data` varchar(2000),
`gmt_create` datetime,
`gmt_modified` datetime,
primary key (`branch_id`),
key `idx_xid` (`xid`)
);
-- the table to store lock data
drop table if exists `lock_table`;
create table `lock_table` (
`row_key` varchar(128) not null,
`xid` varchar(96),
`transaction_id` long ,
`branch_id` long,
`resource_id` varchar(256) ,
`table_name` varchar(32) ,
`pk` varchar(36) ,
`gmt_create` datetime ,
`gmt_modified` datetime,
primary key(`row_key`)
);
先启动nacos,再直接双击seata的bat文件
在nacos的服务管理中服务列表将显示seata的相关信息