samba简介:
Samba是在Linux和UNIX系统上实现SMB协议的一个免费软件,由服务器及客户端程序构成。SMB(Server Messages Block,信息服务块)是一种在局域网上共享文件和打印机的一种通信协议,它为局域网内的不同计算机之间提供文件及打印机等资源的共享服务。SMB协议是客户机/服务器型协议,客户机通过该协议可以访问服务器上的共享文件系统、打印机及其他资源。通过设置“NetBIOS over TCP/IP”使得Samba不但能与局域网络主机分享资源,还能与全世界的电脑分享资源。samba百科
Samba安装:
Samba安装(操作环境Centos7):
[ root@localhost ~ ]#yum -y install samba
[ root@localhost ~ ]#yum info samba
Loaded plugins: fastestmirror
Repository 'yyc' is missing name in configuration, using id
Repository 'expe' is missing name in configuration, using id
Loading mirror speeds from cached hostfile
Installed Packages
Name : samba
Arch : x86_64
Version : 4.6.2
Release : 8.el7
Size : 1.8 M
Repo : installed
From repo : yyc
Summary : Server and Client software to interoperate with Windows machines
URL : http://www.samba.org/
License : GPLv3+ and LGPLv3+
Description : Samba is the standard Windows interoperability suite of programs for Linux and
: Unix.
[ root@localhost ~ ]#yum -y install samba-client
# 安装samba客户端工具,在Linux上链接smb服务和查看smb共享
Samba主配置文件:
/etc/samba/smb.conf
启动服务:
[ root@localhost ~]#systemctl start smb
[ root@localhost ~]#ps aux|grep smb
root 9731 0.0 0.5 407468 6176 ? Ss 02:05 0:00 /usr/sbin/smbd
root 9732 0.0 0.2 403376 2952 ? S 02:05 0:00 /usr/sbin/smbd
root 9733 0.0 0.2 403368 2620 ? S 02:05 0:00 /usr/sbin/smbd
root 9734 0.0 0.3 407468 3316 ? S 02:05 0:00 /usr/sbin/smbd