我已经使用 Samba 设置了 Debian 9 文件服务器。在 LAN 中传输数据时,我获得的速度约为 95Mbps,这还不错,但是当我在传输过程中浏览文件夹时,它们无法加载,有时甚至会导致我的资源管理器崩溃。复制两个文件(不同线程)时,速度在两者之间平均分配。看来 Samba 无法同时平衡复制和浏览。
我想知道这是否是正常现象,因为在大型行业中,这将是一个巨大的问题。也许有比 Samba 更好的替代方案?重要的是要知道我使用的是 Windows 笔记本电脑,并且我希望共享位于我的本机资源管理器中。
Samba 配置如下。提前致谢!
[global]
obey pam restrictions = yes
restrict anonymous = 2
max log size = 1000
socket options = TCP_NODELAY
log file = /var/log/samba/samba.log
server string = TurnKey FileServer
pam password change = yes
admin users = root
recycle:touch = yes
rpc_server:spoolss = external
os level = 20
netbios name = FILESERVER
panic action = /usr/share/samba/panic-action %d
recycle:versions = yes
encrypt passwords = true
add user to group script = /usr/sbin/usermod -G '%g' '%u'
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passdb backend = tdbsam
security = user
printing = cups
rpc_daemon:spoolssd = fork
add user script = /usr/sbin/useradd -m '%u' -g users -G users
unix password sync = yes
guest account = nobody
passwd program = /usr/bin/passwd %u
delete user script = /usr/sbin/userdel -r '%u'
add group script = /usr/sbin/groupadd '%g'
dns proxy = no
syslog = 0
wins support = true
delete group script = /usr/sbin/groupdel '%g'
load printers = yes
vfs object = recycle
recycle:keeptree = yes
recycle:exclude_dir = tmp quarantine
workgroup = WORKGROUP
[homes]
valid users = %S
browseable = no
comment = Home Directory
available = no
writable = yes
[cdrom]
available = no
writable = no
preexec = /bin/mount /media/cdrom
locking = no
postexec = /bin/umount /media/cdrom
path = /media/cdrom
comment = CD-ROM
guest ok = yes
[mount]
writeable = yes
create mode = 775
valid users = @users
path = /mnt/diskdata/Werkschijf
directory mode = 775