1. 程式人生 > 實用技巧 >記一次MaxScale 啟動服務出錯

記一次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