1.mkdir /share/home/test1
mkdir /share/home/test2
2. cp /etc/skel/.bash* /share/home/test1
cp /etc/skel/.bash* /share/home/test2
3. chmod -R 777 /share/home/test1
4. vi /etc/exprots
/share/home 192.168.0.0/255.255.255.0(rw,sync,no_root_squash)
5. service rpcbind restrart
service nfs restart
chkconfig nfs on
+++++++++++++
客户端
1.useradd -M -d /nfs/test1 test1
useradd -M -d /nfs/test2 test2
2.rpm -ql autofs
vim /etc/auto.master
/nfs /etc/auto.nfs
vim /etc/auto.nfs
test1 -rw,nfs 192.168.0.3:/share/home/test1
* -rw,nfs 192.168.0.3:/share/home/&
* --代表你要挂的目录
& --代表共享服务器对应目录
service autofs restart
测试;
su - test1
su - test2
mkdir /share/home/test2
2. cp /etc/skel/.bash* /share/home/test1
cp /etc/skel/.bash* /share/home/test2
3. chmod -R 777 /share/home/test1
4. vi /etc/exprots
/share/home 192.168.0.0/255.255.255.0(rw,sync,no_root_squash)
5. service rpcbind restrart
service nfs restart
chkconfig nfs on
+++++++++++++
客户端
1.useradd -M -d /nfs/test1 test1
useradd -M -d /nfs/test2 test2
2.rpm -ql autofs
vim /etc/auto.master
/nfs /etc/auto.nfs
vim /etc/auto.nfs
test1 -rw,nfs 192.168.0.3:/share/home/test1
* -rw,nfs 192.168.0.3:/share/home/&
* --代表你要挂的目录
& --代表共享服务器对应目录
service autofs restart
测试;
su - test1
su - test2