Failed to start nfs-server.service: Unit nfs-server.service is masked.
时间: 2024-04-25 20:22:57 浏览: 168
start service 启动不了解决方案
4星 · 用户满意度95%
引用\[2\]:NFS 服务器服务无法从以下错误启动 # systemctl status nfs-server.service nfs-server.service - NFS server and services Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled; vendor preset: disabled) Active: inactive (dead) Sep 16 12:41:22 host01 systemd\[1\]: Dependency failed for NFS server and services. Sep 16 12:41:22 host01 systemd\[1\]: Job nfs-server.service/start failed with result 'dependency'. Sep 16 12:42:00 host01 systemd\[1\]: Dependency failed for NFS server and services. Sep 16 12:42:00 host01 systemd\[1\]: Job nfs-server.service/start failed with result 'dependency'. Sep 16 12:44:23 host01 systemd\[1\]: Dependency failed for NFS server and services. Sep 16 12:44:23 host01 systemd\[1\]: Job nfs-server.service/start failed with result 'dependency'. Sep 16 12:48:12 host01 systemd\[1\]: Dependency failed for NFS server and services. >Sep 16 12:48:12 host01 systemd\[1\]: Job nfs-server.service/start failed with result 'dependency'.
引用\[3\]:ubuntu 10.0开启配置nfs 服务service nfs start时出现: Failed to start nfs.service: Unit nfs.service not found. 原因是ubuntu 10.0以上的版本取消了service nfs start。 改成了sudo service nfs-server start 。这样就完成启动了。 在执行sudo service nfs-server status就可以看到 Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor prese Active: active (exited) since 六 2016-07-09 06:58:33 CST; 4h 22min ago Process: 866 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/ Process: 863 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS Main PID: 866 (code=exited, status=0/SUCCESS) CGroup: /system.slice/nfs-server.service 。
问题:Failed to start nfs-server.service: Unit nfs-server.service is masked.
回答: 当出现"Failed to start nfs-server.service: Unit nfs-server.service is masked"错误时,这意味着nfs-server服务被屏蔽了。这可能是由于系统配置或管理员设置的原因。要解决这个问题,可以尝试使用以下命令来解除屏蔽并启动nfs-server服务:
sudo systemctl unmask nfs-server.service
sudo systemctl start nfs-server.service
这样就可以解除屏蔽并启动nfs-server服务了。如果仍然遇到问题,建议检查系统配置和管理员设置,以确定是否有其他原因导致nfs-server服务无法启动。
#### 引用[.reference_title]
- *1* *2* [Job nfs-server.service/start failed with result ‘dependency’](https://blog.csdn.net/fushengbao/article/details/125608379)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [转载 Unit nfs.service not found.](https://blog.csdn.net/delin11/article/details/120980754)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文