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操作完成
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/117497.html
標籤:實用資料發布區
上一篇:行程軟中斷通信中,signal()函式到底該放在哪一個行程中
下一篇:centos6.5
