启动smb服务;smb监听的端口为139和445;
[root@pma ~]# /etc/init.d/smb start
[root@pma ~]# netstat -nlp | grep smb
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 1329/smbd
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 1329/smbd
tcp 0 0 :::139 :::* LISTEN 1329/smbd
tcp 0 0 :::445 :::* LISTEN 1329/smbd
mkdir /tmp/samba
chmod 777 /tmp/samba
touch /tmp/samba/sharefile
echo "111111" > /tmp/samba/sharefile
启动:/etc/init.d/smb start
检查配置的smb.conf是否正确 testparm
测试:windows机器浏览器输入 file://192.168.22.30/share
或者运行栏输入: \\192.168.22.30 或 \\192.168.22.30\share