欢迎访问linux宝典,请记住本站唯一域名:www.linuxbaodian.com

centos 7 添加 nfs 开机启动失败解决方法

来源:原创    更新时间:2018-09-07 10:42:14    编辑:管理员    浏览:3423

centos 7 下将 nfs 服务设置为开机自动启动,systemctl enable nfs-idmapd.service,将提示如下错误:

Failed to execute operation: No such file or directory


解决方法:

/usr/lib/systemd/system/nfs-idmap.service 文件中增加

[Install]
WantedBy=multi-user.target

/usr/lib/systemd/system/nfs-lock.service 文件中增加

[Install]
WantedBy=nfs.target


评论区

表情

共0条评论
  • 这篇文章还没有收到评论,赶紧来抢沙发吧~

相关内容

点击排行

随机新闻

评论排行榜