ubuntu 配置nfs 出现Failed to start nfs.service: Unit nfs.service not found

来源:互联网 发布:查成绩的软件 编辑:程序博客网 时间:2024/06/01 22:25

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.service709 06:58:33 Aspire systemd[1]: Starting NFS server and services...709 06:58:33 Aspire systemd[1]: Started NFS server and services.709 10:37:32 Aspire systemd[1]: Started NFS server and services.709 10:44:28 Aspire systemd[1]: Started NFS server and services.709 11:20:52 Aspire systemd[1]: Started NFS server and services.

完成。

0 0