您好,登錄后才能下訂單哦!
經(jīng)常有學(xué)員詢問如何將centos\ubuntu目錄映射到windows中以方便開發(fā)工作,因此寫這個指導(dǎo)博客方便大家配置開發(fā)環(huán)境。
# yum install samba samba-clinet -y
#cd /etc/samba/
#mv smb.conf smb.conf.bak
#vi smb.conf
內(nèi)容如下
[global]
workgroup = SAMBA
netbios name = 172.16.100.1
server string = samba server
log file = /var/log/samba/log%m
max log size = 50
security = user
map to guest = Bad User
[share]
comment = sharee source
path = /share
writable = yes
browseable = yes
guest ok = yes
# mkdir /share
# chmod 777 /share
# touch /share/test.file
# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
# setenforce 0
# systemctl stop firewalld
# systemctl disable firewalld
# systemctl restart smb nmb
# systemctl enable smb nmb
結(jié)果
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。