记一次MaxScale 启动服务出错
MaxScale 启动出错,报错如下
版本:MaxScale 2.5.6
2020-12-24 11:47:01 notice : Loading /etc/maxscale.cnf.
2020-12-24 11:47:01 notice : /etc/maxscale.cnf.d does not exist, not reading.
2020-12-24 11:47:01 error : Unable to find library for module: maxscaled. Module dir: /usr/lib64/maxscale
2020-12-24 11:47:01 error : Unable to find library for module: cli. Module dir: /usr/lib64/maxscale
2020-12-24 11:47:01 notice : Loaded module MariaDBClient: V1.1.0 from /usr/lib64/maxscale/libmariadbclient.so
2020-12-24 11:47:01 notice : Loaded module readwritesplit: V1.1.0 from /usr/lib64/maxscale/libreadwritesplit.so
2020-12-24 11:47:01 notice : Loaded module mariadbmon: V1.5.0 from /usr/lib64/maxscale/libmariadbmon.so
2020-12-24 11:47:01 alert : Failed to open, read or process the MaxScale configuration file /etc/maxscale.cnf.
2020-12-24 11:47:01 notice : Stopped MaxScale REST API
2020-12-24 11:47:01 notice : MaxScale is shutting down.
2020-12-24 11:47:01 notice : All workers have shut down.
2020-12-24 11:47:01 notice : MaxScale shutdown completed.
2020-12-24 11:47:01 MariaDB MaxScale is shut down.
解决办法:
由于高版本以下模块已弃用,在配置文件/etc/maxscale.cnf 里面删除即可
删除以下两个模块
[MaxAdmin-Service] type=service router=cli [MaxAdmin-Listener] type=listener service=MaxAdmin-Service protocol=maxscaled #socket=default port=6603