如何在 Linux 中通过 rpcbind 启动和停止 NFS 服务?
-
启动NFS服务: a. 启动rpcbind:
sudo systemctl start rpcbind
或sudo service rpcbind start
b. 启动NFS服务:sudo systemctl start nfs-server
或sudo service nfs start
-
停止NFS服务: a. 停止NFS服务:
sudo systemctl stop nfs-server
或sudo service nfs stop
b. 停止rpcbind:sudo systemctl stop rpcbind
或sudo service rpcbind stop
-
验证状态:
sudo systemctl status rpcbind nfs-server
- 或
sudo service rpcbind status
+sudo service nfs status
注意:部分系统需先启动nfs-idmapd服务,建议配置开机自启:sudo systemctl enable rpcbind nfs-server
更多回答
推荐
热门问答
部分内容依据人工智能生成,仅供参考,可能有误请注意甄别