重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
经常有学员询问如何将centos\ubuntu目录映射到windows中以方便开发工作,因此写这个指导博客方便大家配置开发环境。
创新互联成都企业网站建设服务,提供网站制作、网站设计网站开发,网站定制,建网站,网站搭建,网站设计,响应式网站设计,网页设计师打造企业风格网站,提供周到的售前咨询和贴心的售后服务。欢迎咨询做网站需要多少钱:18982081108
# yum install samba samba-clinet -y
#cd /etc/samba/
#mv smb.conf smb.conf.bak
#vi smb.conf
内容如下
[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
结果