一、必要条件
群晖和windows电脑都需要至少每个设备要有两个网口

二、设置
1.打开控制面板,依次进入:文件服务-高级设置,将最大协议改为 SMB3,点击应用

2.进入:终端机和 SNMP,勾选启动 SSH 功能,点击应用

3.使用 PUTTY 等软件登入群晖 SSH

sudo -s
vi /etc/samba/smb.conf

4.在文件末尾添加以下内容,完成后按 ESC,并输入 :wq 保存退出

server multi channel support = yes
aio read size = 1
aio write size = 1

5.重启群晖,PC 和交换机,所有设置完成,在重启完成后,PC 端使用主机名(如\homeshare)或 ip 进入一次共享,即可自动启用 SMB3 多通道了

telnet 192.168.1.1
root
adminHW
su
shell
配置文件备份到U盘 cp /mnt/jffs2/hw_ctree.xml /mnt/usb1_1/hw_ctree.xml
还原U盘配置文件 cp /mnt/usb1_1/hw_ctree.xml /mnt/jffs2/hw_ctree.xml

2023年5月22日00点56分55秒
esxcli system time set -d 22 -H 00 -m 56 -s 55 -M 05 -y 2023
同步系统时间到主板上,使用下面命令:
esxcli system time get

第一步

DSM6适用

http://URL:PORT/webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=1&account=管理员用户名&passwd=密码&format= cookie

DSM7适用

http://URL:PORT/webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=3&account=管理员用户名&passwd=密码&format= cookie
http://192.168.1.200:5000/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account=wzh&passwd=123456&format=%20cookie

然后网页提示中有"success":ture字样就是没问题了

第二步
http://URL:PORT/webapi/entry.cgi?api=SYNO.ActiveBackup.Activation&method=set&version=1&activated=true&serial_number="群晖SN码"

运行正常的话分别返回“{“success”:true}”、“{“data”:{“activated”:true},”success”:true}”。

第三步
http://URL:PORT/webapi/entry.cgi?api=SYNO.ActiveBackup.Activation&method=get&version=1

正常激活的话返回“{“data”:{“activated”:true,”serial_number”:”群晖SN码”},”success”:true}
就可以愉快的使用Synology Active Backup for Business套件了。