Failed to enable unit: Refusing to operate on linked unit file mysql.service
Posted SE
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Failed to enable unit: Refusing to operate on linked unit file mysql.service相关的知识,希望对你有一定的参考价值。
在设置mysql开机启动时,出现了“Failed to enable unit: Refusing to operate on linked unit file mysql.service”,那么需要检测以下mysql是否设置过了开机启动,
方法为:
sudo systemctl is-enabled mysql.service
如果已经设置过,会输出“enable”
可以先禁止mysql开机启动,控制台输入:
sudo systemctl disable mysql.service
然后验证开启。
sudo systemctl enable mysql.service
以上是关于Failed to enable unit: Refusing to operate on linked unit file mysql.service的主要内容,如果未能解决你的问题,请参考以下文章
Failed to start docker.service: Unit not found.
mysqld服务启动失败, Failed to restart mysqld.service: Unit not found.
解决 RHEL 7/ CentOS 7/Fedora 出现Unit iptables.service failed to load
Failed to start mongod.service: Unit not found