A、安装前的准备工作:
SELINUX=disabled
关闭防火墙:service iptables stop
B、执行如下命令安装samba:
[root@samba ~]# yum install samba samba-client samba-swat
C、检查samba是否安装成功:
[root@samba ~]# rpm -qa | grep samba
如果显示有如下一些信息,则说明安装没有问题:
samba-client-3.6.9-167.el6_5.i686
samba-3.6.9-167.el6_5.i686
samba-common-3.6.9-167.el6_5.i686
samba-winbind-3.6.9-167.el6_5.i686
samba-swat-3.6.9-167.el6_5.i686
samba-winbind-clients-3.6.9-167.el6_5.i686
D、启动samba服务及状态检查:
[root@samba ~]# /etc/init.d/smb start
显示结果:
Starting SMB services: [ OK ]
状态检查:
[root@samba ~]# service smb status
显示结果:
smbd (pid 2462) is running...
E、设置开机自启动,并查看是否设置成功:
[root@samba ~]# chkconfig --level 35 smb on
检查是否成功:
[root@samba ~]# chkconfig --list | grep smb
SELINUX=disabled
关闭防火墙:service iptables stop
B、执行如下命令安装samba:
[root@samba ~]# yum install samba samba-client samba-swat
C、检查samba是否安装成功:
[root@samba ~]# rpm -qa | grep samba
如果显示有如下一些信息,则说明安装没有问题:
samba-client-3.6.9-167.el6_5.i686
samba-3.6.9-167.el6_5.i686
samba-common-3.6.9-167.el6_5.i686
samba-winbind-3.6.9-167.el6_5.i686
samba-swat-3.6.9-167.el6_5.i686
samba-winbind-clients-3.6.9-167.el6_5.i686
D、启动samba服务及状态检查:
[root@samba ~]# /etc/init.d/smb start
显示结果:
Starting SMB services: [ OK ]
状态检查:
[root@samba ~]# service smb status
显示结果:
smbd (pid 2462) is running...
E、设置开机自启动,并查看是否设置成功:
[root@samba ~]# chkconfig --level 35 smb on
检查是否成功:
[root@samba ~]# chkconfig --list | grep smb