脚本笔记8/27/2026

samba.sh

来源文件:samba.sh
已自动脱敏 4 处敏感信息。

bash
重重难关终于做到了跑满10g带宽?_windows的smb跑不满带宽-CSDN博客
文件共享笔记:samba搭建及smb3多网卡叠加 - 简书 (jianshu.com)
Soul Of Free Loop » 博客存档 » 在Windows Server 2012中使用SMB 3.0多通道 (zohead.com)
乘着SMB3的翅膀,低成本实现内网多通道带宽叠_交换机_什么值得买 (smzdm.com)
解决 Windows Server SMB 跑不满速度 | 月子喵的窝 (haozi.moe)


Get-SmbServerConfiguration
Set-SmbServerConfiguration -EnableMultiChannel 0
Get-SmbConnection

Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
cat /proc/samba

#samba client
apt-get install cifs-utils
mkdir /mnt/kuang
mkdir -p /root/.kuzco/models
ln -s /mnt/kuang/blobs /root/.kuzco/models/blobs
mount -t cifs -o username=simon,password=[REDACTED] //[REDACTED_IP]/kuang /mnt/kuang
cat <<EOF >> /root/auth.smb
username=simon
password=[REDACTED]
domain=SAMBA
EOF
chmod 600 auth.smb
cat <<EOF >> /etc/fstab
//[REDACTED_IP]/kuang  /mnt/kuang                  cifs    credentials=/root/auth.smb               0 0
EOF