Nacos有时候虽然可以正常启动,但是一访问http://127.0.0.1:8848/进程就会stopped。查看日志有这么一句报错:
ErrMsg:Nacos Server did not start because dumpservice bean construction failure :No DataSource set
这有可能是数据库的连接没有释放导致的,可以尝试在数据库中
flush hosts
再尝试连接
然后可以查询下远程权限是否开放
select host,user from user
如果没有开放
update user set host='%' where user='root'
开放远程权限再尝试启动Nacos,这时再访问Nacos问题得以解决。