配置Samba服务
迪乐残殇 2019-06-25 03:22:39 1、mkdir /sio
2、mount /dev/cdrom /iso
3、cd /etc/yum.repos.d
4、ls查看是否有CentOS-* 内容
5、mkdir aaa(文件夹)
6、mv CentOS-* aaa
7、vim dvd.repo
内容:[dvd]
name=dvd
baseurl=file:///iso
gpgcheck=0
enabled=1
8、yum info samba*
9、yum clean all
10、yum install samba -y
11、systemctl start smb nmb
12、systemctl enable smb nmb
13、firewall-cmd --permanent --add-service=samba
14、firewall-cmd --permanent --add-service=samba-client
15、firewall-cmd --reload
16、firewall-cmd --list-all
17、setenforce 0
18、getenforce
19、systemctl restart smb nmb
20、systemctl enable smb nmb
21、vim /etc/samba/smb.conf
在最后加入:[common]
path=common
browseable=yes
writable=yes
22、sabpasswd -a xinlun(用户名)
23、mkdir common
24、chmod 777 common
25、systemctl restart smb nmb
26、systemctl enable smb nmb
27、在物理机运行中输入虚拟机ip:\\192.168.2.129
28、找到common文件夹,打开新建一个文本文档
29、在虚拟机中查询/etc/yum.repos.d/common下是否有一个新建文本文档.txt操作完成