lrwxrwxrwx 1 root root 15 2月 22 06:33 S50saned -> ../init.d/saned*
lrwxrwxrwx 1 root root 19 2月 22 06:33 S70dns-clean -> ../init.d/dns-clean*
lrwxrwxrwx 1 root root 18 2月 22 06:33 S70pppd-dns -> ../init.d/pppd-dns*
lrwxrwxrwx 1 root root 21 2月 22 06:33 S99grub-common -> ../init.d/grub-common*
lrwxrwxrwx 1 root root 18 2月 22 06:33 S99ondemand -> ../init.d/ondemand*
lrwxrwxrwx 1 root root 18 2月 22 06:33 S99rc.local -> ../init.d/rc.local*
nfs-kernel-server是自动启动,就不需要再进行修改了,而rpcbind就比较麻烦了,找了半天才找到vi /etc/init/rpcbind-boot.conf
# portmap-boot
description "Upstart job to start rpcbind on boot only"
author "Clint Byrum"
emits start-rpcbind
start on virtual-filesystems and net-device-up IFACE=lo
task
exec initctl emit --no-wait start-rpcbind ON_BOOT=y
可以见到这个服务设为开机启动了
七,开机自动挂载共享盘
这时候我们需要修改的文件是/etc/fstab,命令格式如下:
<NFS服务端>:<共享目录> <本地目录> <文件系统类型> <选项> <dump> <pass>每个字段的具体含义这里就不详细解释了,vi /etc/fstab,在文件中添加下面这行配置
192.168.137.128:/home/sean/shareDir /home/sean/shared nfs defaults 0 0系统每次启动时即会自动挂载共享盘
以上这篇Ubuntu配置NFS的具体流程(推荐)就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持脚本之家。ubuntu启动nfsubuntu启动nfs
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-37965-3.html
坚决击沉
是什么职位