Linux file sharing
1. windows and linux file share
apt-get install samba
vi /etc/samba/smb.conf
workgroup = WORKGROUP
hosts allow = 192.168.0.20 --client windows address
<add below in end of file>
[sharename] comment= path= public=yes writable=yes
service smbd restart
smbpasswd -a hadoop
<<<<<linux access windows>>>>>
mount -o username=administrator //192.168.0.20/share /mnt/share
2. linux and unix/linux file share
a). nfs
sudo apt-get install nfs-kernel-server portmap nfs-common
vi /etc/exports
/home/hadoop/namenodeshare 192.168.0.110/200(insecure,rw,sync)
sudo /etc/init.d/nfs-kernel-server restart
<<<client>>>
sudo apt-get install nfs-common
mount -t nfs 192.168.0.110:/home/hadoop/namenodeshare /mnt/namenodeshare
b). service nfs restart
posted on 2013-10-02 00:18 Panda_xingchen 阅读(131) 评论(0) 收藏 举报
浙公网安备 33010602011771号