samba服務(wù)
windows和linux之間互相共享文件
端口:139
# lsof -i:139
服務(wù)器端:
安裝軟件
? samba-client.x86_64
? samba-common.x86_64
? samba.x86_64
# yum install samba-client samba samba-common -y
服務(wù)端
啟動(dòng)服務(wù):
# systemctl start smb //注意是服務(wù)名是smb
# mkdir /test/
# chmod 777 /test/
配置
# vim /etc/samba/smb.conf
#開頭的是注釋(說明)
局部配置: //直接到最后添加配置共享信息
[test] //共享名稱
comment = this share my /tmp directory //描述
path = /test //共享目錄
public = yes //允許來賓用戶訪問
writable = yes //與readonly相反
# useradd wing //添加系統(tǒng)賬戶
# smbpasswd -a wing //添加smb賬戶
# systemctl restart smb
# touch /tset/a.txt
客戶端
windows
1.網(wǎng)上鄰居
2.資源管理器--> \\172.16.70.251
3.運(yùn)行 --> \\172.16.70.251
1578728784899.png
1578728801525.png
?
1578728865149.png