Linux??????????-??????NFS????????
???????????? ???????[ 2015/1/8 11:55:12 ] ??????????????? Linux ??????
????????????????п????????????????????????????????????????????????????
????1 service iptables stop
?????????????????????????
???????????? NFS ???????????????????????????????????????????????????????????? ?????????粻???????????????NFS ????????????????????????????? port 111?? 2049 ??? ???к?????????????? rpc.mountd?? rpc.rquotad ????????????????????? iptables ?????趨???? ?????????????????????????????????
???????????????? CentOS 6.x ????????????? NFS ????????????????????? /etc/sysconfig/nfs ???? ???????????????????????????????????????? nfs ?????????????????????????????? ????????趨??????????????????????????????????????????????????????? PORT ?????????й????????ɡ? ??????????? rpc ????????Щ???????? mountd?? rquotad?? nlockmgr ?????????????????????????
1 [root@www ~]# vim /etc/sysconfig/nfs
2 RQUOTAD_PORT=1001 <==??? 13 ??????
3 LOCKD_TCPPORT=30001 <==??? 21 ??????
4 LOCKD_UDPPORT=30001 <==??? 23 ??????
5 MOUNTD_PORT=1002 <==??? 41 ??????
6 # ????趨???????????????????????????????????о?????
7
8 [root@www ~]# /etc/init.d/nfs restart
9 [root@www ~]# rpcinfo -p | grep -E '(rquota|mount|nlock)'
10 100011 2 udp 1001 rquotad
11 100011 2 tcp 1001 rquotad
12 100021 4 udp 30001 nlockmgr
13 100021 4 tcp 30001 nlockmgr
14 100005 3 udp 1002 mountd
15 100005 3 tcp 1002 mountd
|
??????????????????????ɡ?
????NFS?????????
?????????ι??? NFS ???????????????????????????????????????
??????????????????? rpcbind ????
??????? NFS ?????????????????Щ???????????????????? (showmount)??
???????????????????????????? (mkdir)??
???????? mount ???????????????????????
?????????????????? 192.168.100.10 ??????????????????? 192.168.100.254 ????????????????????????????
????1 [root@clientlinux ~]# showmount -e 192.168.100.254
????2 Export list for 192.168.100.254:
????3 /tmp *
?????????????????????????? /home/public ???????????????? /home/nfs/public ?? ??????????????????????????????????????а??????????? mount ???????????? NFS ??????????
????1 [root@clientlinux ~]# mkdir -p /home/nfs/public
????2 [root@clientlinux ~]# mount -t nfs 192.168.100.254:/home/public /home/nfs/public
??????????????????
????1 [root@clientlinux ~]# df
????2 ????? 1K-???? ???? ???? ????% ?????
????3 ....(?м????)....
????4 192.168.100.254:/home/public
????5 7104640 143104 6607104 3% /home/nfs/public
??????????????????????????????
????1 [root@clientlinux ~]# umount /home/nfs/public
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11