vim /usr/lib/systemd/system/mariadb.service 修改下 ProtectSystem=read-only ProtectHome=false 接着 systemctl daemon-reload