linux - samba配置失败求教
ringa_lee
ringa_lee 2017-04-17 17:05:29
0
1
393

我在一台centos7的vmware虚拟机上安装samba服务器,虚拟机的网络是通过nat模式,网络设置是自动获取,
ifconfig看到分配到ip为192.168.93.128
smb.conf添加配置如下
[php]

    comment = php
    path = /var/www/html

writable = yes
browsable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777

执行testparm
显示
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[php]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

然后在真机这里\192.168.93.128访问,无法连接,这是因为虚拟机没有设置固定ip吗?

ringa_lee
ringa_lee

ringa_lee

全部回覆(1)
PHPzhong

smb.conf檔案中加入一行設定:hosts allow=192.168.93.1/24
你試試看,我也不太確定是不是這個問題

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!