当前位置: 首页 > 工具软件 > micro-auth > 使用案例 >

go-micro 在linux下安装出现service auth not found

赵炯
2023-12-01

1、安装micro
linux下执行该命令
wget -q https://raw.githubusercontent.com/micro/micro/master/scripts/install.sh -O - | /bin/bash

2、micro server

3、micro login 出现如下异常

 micro login
Enter username: admin
Enter password: 
Error authorizing request: {"Id":"go.micro.client","Code":500,"Detail":"{\"Id\":\"go.micro.client\",\"Code\":500,\"Detail\":\"service auth: route not found\",\"Status\":\"Internal Server Error\"}","Status":"Internal Server Error"}

4、micro api出现service auth not found

出现以上问题解决方案为:关闭linux防火墙

systemctl stop firewalld.service

5、之后执行 micro services 出现

micro services
Not authorized to perform this request

出现5的问题需执行后再执行:

micro login
Enter username: admin
Enter password: 
Successfully logged in.
 类似资料: