samba(smb)
samba服务 windows和linux之间互相共享文件 端口:139
# lsof -i:139
服务器端:
安装软件
samba-client.x86_64
samba-common.x86_64
samba.x86_64
# yum install samba-client samba samba-common -y
服务端
启动服务:
# systemctl start smb //注意是服务名是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 //添加系统账户
# smbpasswd -a wing //添加smb账户
# systemctl restart smb
# touch a.txt
客户端
windows
1.网上邻居
2.资源管理器--> \\172.16.70.251
3.运行 --> \\172.16.70.251