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

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


参考:

https://www.centos.org/forums/viewtopic.php?t=53896

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章