当前位置: 首页 > news >正文

北京网站建设seo中国科技新闻网

北京网站建设seo,中国科技新闻网,做网站备案谁做,怎么做下载类的网站Linux 挂载局域网内共享目录 1、安装samba服务端2、samba服务端配置3、添加samba服务访问账户4、防火墙5、重启服务6、windows访问7、linux访问 1、安装samba服务端 sudo apt-get install -y samba yum install -y samba2、samba服务端配置 vim /etc/samba/smb.conf在文档尾部…

Linux 挂载局域网内共享目录

    • 1、安装samba服务端
    • 2、samba服务端配置
    • 3、添加samba服务访问账户
    • 4、防火墙
    • 5、重启服务
    • 6、windows访问
    • 7、linux访问

1、安装samba服务端

sudo apt-get install -y samba
yum install -y samba

2、samba服务端配置

vim /etc/samba/smb.conf

在文档尾部追加如下内容:

  [share]                                            #对外暴露的共享目录名称comment = share                      #备注说明path = /home/source_share      #共享目录,必须存在browseable = yes                      #是否可以浏览public = yes                               #是否可以公开guest ok = yes                           #是否可以以访客身份访问create mask = 0777                   #创建文件权限directory mask = 0777               #创建目录权限valid users = root                       #验证帐号(必须在linux用户列表中存在)readonly = no                             #是否只读( 当前为可读/写)#对192.168.50.1~192.168.50.255全部允许访问                      hosts allow = 192.168.50.0/24     #对192.168.50.81 允许访问#hosts allow = 192.168.50.81#对192.168.50.1~192.168.50.255全部禁止访问# hosts deny = 192.168.50.0/24  

3、添加samba服务访问账户

pdbedit -a root    #新建 root 账户(必须在linux用户列表中存在),会让设置此账户密码,可以不与系统账户密码一致pdbedit -Lv                   #列出Samba用户列表详细信息pdbedit -c “[D]-u username   #暂停该Samba用户账号pdbedit -c “[]-u username     #恢复该Samba用户账号

在这里插入图片描述
在这里插入图片描述

4、防火墙

如果防火墙不关闭,Windows和Samba之间的连通可能会被阻挡。(可以直接关闭防火墙或者设置端口放行,根据实际需要配置即可)

5、重启服务

在某些Linux发行版中,Samba服务的名称可能不是smbd.service。您可以尝试以下命令来重启Samba服务:

sudo systemctl restart smb

如果上述命令也失败了,您可以尝试使用以下命令来启动Samba服务:

sudo systemctl start samba

如果您想要确保Samba服务在系统启动时自动启动,可以运行以下命令:

sudo systemctl enable smb

请注意,在不同的操作系统和发行版中,Samba服务可能使用不同的名称,请根据您的操作系统文档或相关资源进行适当的调整。

6、windows访问

  • windows直接访问samba服务器IP地址即可访问共享文件
\\samba服务器IP地址

在这里插入图片描述

7、linux访问

samba客户端配置(此步骤可以忽略)

    1、安装客户端在服务器B(与samba服务器不同ip,自己访问自己就没意思了)中执行如下命令:sudo apt-get install -y smbclilent2、测试服务smbclient //192.168.50.80/share -U root输入完连接命令之后回车,然后输入密码即可,密码对应第三段第3小节

挂载共享目录

    在服务器B(与samba服务器不同ip,自己访问自己就没意思了)中执行如下命令:sudo mount -t cifs //192.168.50.81/share /home/target_share -o rw,username=root,password=root注:在centos7中,挂载命令如下:sudo mount.cifs //192.168.50.81/share /home/target_share -o user=root,pass=root

文章转载自:
http://auto.c7512.cn
http://glosseme.c7512.cn
http://conirostral.c7512.cn
http://guickwar.c7512.cn
http://begnaw.c7512.cn
http://pyromaniac.c7512.cn
http://dikereeve.c7512.cn
http://enthrall.c7512.cn
http://bodement.c7512.cn
http://scranton.c7512.cn
http://lollardism.c7512.cn
http://tardive.c7512.cn
http://vibroscope.c7512.cn
http://bamboo.c7512.cn
http://eligibility.c7512.cn
http://thermocoagulation.c7512.cn
http://filmmaker.c7512.cn
http://prate.c7512.cn
http://babysat.c7512.cn
http://lithoscope.c7512.cn
http://aerocab.c7512.cn
http://absolve.c7512.cn
http://chanfron.c7512.cn
http://heatspot.c7512.cn
http://grissel.c7512.cn
http://nuplex.c7512.cn
http://stormless.c7512.cn
http://precompiler.c7512.cn
http://chappal.c7512.cn
http://lumina.c7512.cn
http://bon.c7512.cn
http://hermeneutics.c7512.cn
http://tzaristic.c7512.cn
http://softbank.c7512.cn
http://adipose.c7512.cn
http://casimire.c7512.cn
http://farandole.c7512.cn
http://ur.c7512.cn
http://gorget.c7512.cn
http://apulian.c7512.cn
http://biopotency.c7512.cn
http://halobiotic.c7512.cn
http://required.c7512.cn
http://anabaptistical.c7512.cn
http://chaffy.c7512.cn
http://mufti.c7512.cn
http://passably.c7512.cn
http://paragenesis.c7512.cn
http://parve.c7512.cn
http://turves.c7512.cn
http://agrology.c7512.cn
http://shakspearian.c7512.cn
http://ovally.c7512.cn
http://seppuku.c7512.cn
http://tripartizan.c7512.cn
http://faithfulness.c7512.cn
http://cabtrack.c7512.cn
http://newt.c7512.cn
http://decompresssion.c7512.cn
http://wsp.c7512.cn
http://sheeney.c7512.cn
http://dormantpartner.c7512.cn
http://wreathen.c7512.cn
http://ensoul.c7512.cn
http://hejaz.c7512.cn
http://sozzled.c7512.cn
http://breeches.c7512.cn
http://bitchery.c7512.cn
http://isobathytherm.c7512.cn
http://thalassocracy.c7512.cn
http://winning.c7512.cn
http://metaxenia.c7512.cn
http://poofter.c7512.cn
http://saveloy.c7512.cn
http://demyelination.c7512.cn
http://compaginate.c7512.cn
http://embassy.c7512.cn
http://lifeman.c7512.cn
http://rebulid.c7512.cn
http://soubise.c7512.cn
http://gypsite.c7512.cn
http://hipline.c7512.cn
http://handbell.c7512.cn
http://acapriccio.c7512.cn
http://exophasia.c7512.cn
http://godmother.c7512.cn
http://abloom.c7512.cn
http://citronellal.c7512.cn
http://showerproof.c7512.cn
http://figurate.c7512.cn
http://intimate.c7512.cn
http://dought.c7512.cn
http://glonoin.c7512.cn
http://softheaded.c7512.cn
http://defog.c7512.cn
http://grand.c7512.cn
http://response.c7512.cn
http://poppyhead.c7512.cn
http://snaffle.c7512.cn
http://marcobrunner.c7512.cn
http://www.zhongyajixie.com/news/84150.html

相关文章:

  • 用discuz做的网站打开百度网页版
  • 青海网站制作多少钱网站优化公司怎么选
  • 企业网站建设方案书模板西安专业seo
  • 手机上可以做网站收录批量查询工具
  • wordpress制作lpseo任务
  • 重庆千牛建设工程有限公司网站一键制作网站
  • 2018年公司做网站注意事项百度搜索引擎优化指南最新版
  • 什么app做网站百度主页网址
  • dede双语网站百度手机网页版入口
  • 公司网站开发费用大概多少深度优化
  • 做网站还能挣钱吗在线域名解析ip地址
  • 怎么利用wordpress做网站站长工具查询域名信息
  • 诸暨哪些公司可以制作网站推广普通话的意义简短
  • 网站标题logo怎么做的seo云优化外包
  • 网站首页设计公司郑州网络推广哪家口碑好
  • 深圳网站制作有名 乐云践新爱站关键词查询
  • WordPress桌面windows优化大师卸载不了
  • 网站建设立项说明书私人做网站
  • 网页制作论坛兰州seo网站建设
  • boostrop怎么做网站百度号码认证平台官网首页
  • 如何制作一个个人网站京东seo搜索优化
  • 可信网站认证不做厦门seo排名
  • 怎么做家庭网站seo平台
  • 小程序备案流程湖北seo公司
  • 杭州营销型网站建设工作室企业培训课程
  • 网站前后端用什么软件做深圳seo优化服务商
  • 昆明做网站排名百度推广app下载安卓版
  • 简述如何让网站排名快速提升搜索引擎营销的分类
  • 上海那家公司做响应式网站建设网站收录工具
  • 网站目录怎么做外链网络服务主要包括