Centos 7共享摘要
1.关闭selinux:vi /etc/sysconfig/selinux,添加或修改selinux=disabled,setenforce 0
2.关闭防火墙:systemctl stop firewalld,永久关闭systemctl disable firewalld
3.安装smb:yum install samba
4.配置smb.conf:vi /etc/samba/smb.conf,配置全局[global]和共享[share]模块.(testparm命令可以检查配置语法错误)
5.开启服务:systemctl start smb 检查服务 systemctl status smb 检查默认端口开关netstat -lnt grep|139&445