你先要在192.168.1.100上开启NFS服务并编辑/etc/exports文件:
chkconfig --level 35 nfs on
service nfs start
vi /etc/exports,加入:
/tmp 192.168.1.200(rw,sync,no_root_squash)
然后,在192.168.1.200(如果你现在登录在192.168.1.100,当然要ssh登录到192.168.1.200,并su成root)运行:
mkdir /tmp
chmod 777 -R /tmp
mount 192.168.1.100:/tmp /tmp
就可以了。
把mount这行加入到/etc/rc.local,开机就会自动挂载了。
相关文章:
-
2021-12-29
-
2021-05-17
-
2021-11-12
-
2022-12-23
-
2022-12-23
-
2021-08-01
-
2021-05-21
猜你喜欢
-
2021-06-06
-
2021-06-24
-
2021-05-09
-
2022-12-23
-
2021-11-13
-
2022-12-23
-
2021-12-04
相关资源
-
下载
2021-06-06
-
下载
2022-12-05
-
下载
2022-12-31