http://czarism.com/easy-peasy-ubuntu-linux-nfs-file-sharing
1. install nfs-common, nfs-kernel-server
# rpcinfo -p localhost
2. sudo gedit /etc/exports
/rfs 140.92.62.1/24(rw,no_root_squash,async)
3.
# sudo /etc/init.d/portmap restart
# sudo /etc/init.d/nfs-kernel-server restart
#sudo exportfs -a
4. On the client, added the following lines to my fstab
#sudo vi /etc/fstab
140.92.62.220:/tftpboot /mnt/ljstmp nfs rw,hard,intr 0 0
or
#sudo mount 140.92.62.220:/tftpboot /mnt/ljstmp
possible commands:
iptables -L -n
/sbin/iptables -A INPUT -s 192.168.1.0/24 -p tcp --dport 922 -j ACCEPT
/sbin/iptables -A INPUT -s 192.168.1.0/24 -p udp --dport 922 -j ACCEP
rpcinfo -p
netstat -l
nfsstat -s
No comments:
Post a Comment