欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

centos7搭建samba,win10訪問centos7共享的文件路徑

centos7 搭建 samba,win10訪問centos7共享的文件路徑

  1. 首先安裝samba相關(guān)的服務(wù)
    yum install -y samba*
  2. 配置samba的配置文件
    cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
    vim /etc/samba/smb.conf
    //修改配置文件smb.conf的內(nèi)容為下述內(nèi)容
    [global]
    log file = /var/log/samba/log.%m
    max log size = 50
    security = user
    map to guest = Bad User
    [sambadir]
    path=/home/
    readonly=yes
    browseable=yes
    writable = yes 
    guest ok=yes
  3. 配置系統(tǒng)文件打開數(shù)目上限(因為后續(xù)會通過samba文件打開大量文件,所以需要修改此參數(shù))
    vim /etc/security/limits.conf
    //文件末尾需要添加如下內(nèi)容
    * soft nofile 65535
    * hard nofile 65535
    //修改該文件后,需要reboot,這里暫不reboot,后面關(guān)閉防火墻后也需要reboot
  4. 關(guān)閉防火墻
    vim /etc/selinux/config                      #永久關(guān)閉selinux
    set SELINUX=disabled       #SELINUX=enforcing改為SELINUX=disabled
    //關(guān)閉firewall
    systemctl stop firewalld
    systemctl disable firewalld
    //這里需要reboot才能生效
  5. reboot
  6. 啟動SAMBA
    systemctl restart smb #重啟
    systemctl enable smb #修改為開機啟動
    systemctl status smb #查看狀態(tài)
  7. 在window文件瀏覽器里輸入\your samba server ip
  8. win10 下開啟網(wǎng)絡(luò)發(fā)現(xiàn)。
    https://jingyan.baidu.com/article/c275f6ba3ef050e33d756702.html
  9. win10下可能無法訪問共享文件夾解決
    //管理員權(quán)限進入cmd
    //開啟SMBv1
    sc.exe config lanmanworkstation depend= bowser/mrxsmb10/mrxsmb20/nsi 
    sc.exe config mrxsmb10 start= auto
    //關(guān)閉SMBv2 and SMBv3
    sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi 
    sc.exe config mrxsmb20 start= disabled
    (需要重啟win10)
  10. 完畢

標題名稱:centos7搭建samba,win10訪問centos7共享的文件路徑
文章地址:http://www.chinadenli.net/article34/peipse.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站設(shè)計做網(wǎng)站微信公眾號Google手機網(wǎng)站建設(shè)用戶體驗

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

微信小程序開發(fā)