Samba服务器搭建
[root@localhost ~]# yum -y install samba*
[root@localhost ~]#rpm -qa | grep samba
samba-common-3.6.9-151.el6.x86_64 //主要提供samba服务器的设置文件与设置文件语法检验程序testparm
samba-client-3.6.9-151.el6.x86_64 //客户端软件,主要提供linux主机作为客户端时,所需要的工具指令集
samba-swat-3.6.9-151.el6.x86_64 //基于https协议的samba服务器web配置界面
samba-3.6.9-151.el6.x86_64 //服务器端软件,主要提供samba服务器的守护程序,共享文档,日志的轮替,开机默认选项
[root@localhost ~]# systemctl enable smb.service //添加开机自启动Samba服务
Created symlink from /etc/systemd/system/multi- user.target.wants/smb.service to /usr/lib/systemd/system/smb.service.
[root@localhost ~]# systemctl start smb.service //开启Samba服务
[root@localhost ~]# systemctl status smb.service //查看Samba服务器的状态
● smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2016-07-04 10:48:08 CST; 10s ago
Main PID: 45219 (smbd)
Status: "smbd: ready to serve connections..."
Memory: 5.6M
CGroup: /system.slice/smb.service
├─45219 /usr/sbin/smbd
└─45221 /usr/sbin/smbd