Centos7系统化如何使用yum命令安装samba服务项目器设备
Centos7体系如何使用yum命令安装samba主机
Centos7体系如何使用yum命令安装samba主机?本教程以Centos7体系为例
本配置适用于Centos6,7版本
1.安装samba主机之前需要做以下运行
1.1关闭防火墙及关闭防火墙开机自启(机械人没安装防火墙可以略过)
[root@localhost ~]# systemctl stop firewalld.service
[root@localhost ~]# systemctl disable firewalld.service
Removed symlink
/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
1.2查看SeLinux状态
[root@localhost ~]# sestatus
1.3临时关闭SeLinux
[root@localhost ~]# setenforce 0
1.4查看SeLinux状态
Sestatus
1.5长久关闭SeLinux,需要重启机械人
修改配置文档/etc/selinux/config,将SELINU置为disabled
注意需要重启后才会生效
2.安装Samba服务质量水平
2.1
yum install samba
2.2 启动smb
systemctl start smb
systemctl status smb
2.3设置开机自启动