Wednesday, August 15, 2007

My NFS Server setting - Ubuntu

man 5 exports

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:

如何发掘出更多退休的钱?

如何发掘出更多退休的钱? http://bbs.wenxuecity.com/bbs/tzlc/1328415.html 按照常规的说法,退休的收入必须得有退休前的80%,或者是4% withdrawal rule,而且每年还得要加2-3%对付通胀,这是一个很大...