Centos7安装Samba服务器

1. 关闭防火墙

systemctl stop firewalld
systemctl disable firewalld
Centos7安装Samba服务器

2.关闭selinux

vim /etc/selinux/config
Centos7安装Samba服务器
设置 SELINUX=disabled;

执行 setenforce 0Centos7安装Samba服务器

3.安装samba

yum -y install samba
Centos7安装Samba服务器

4.配置samba

vim /etc/samba/smb.conf
Centos7安装Samba服务器

5.创建账户

useradd -s dev
smbpasswd -a dev
Centos7安装Samba服务器

6.开启samba服务

systemctl start smb
systemctl start nmb
Centos7安装Samba服务器