首先执行 apt-get install samba 这样基本上就有默认的共享了。如果设置一下/etc/samba/smb.conf 然后service smbd start 还可以自定义共享哪些目录。