标签 黑群 下的文章

群晖的Web Station建站,需要手动添加伪静态。
参考群晖NAS使用webstation搭建wordpress问题汇总,新建/usr/local/etc/nginx/conf.d/XXX/user.conf文件(根据实际情况替换XXX),添加以下内容。

location /
{
     try_files $uri $uri/ /index.php?$args;
}
 
rewrite /wp-admin$ $scheme://$host$uri/ permanent;

电信宽带提供的是动态的公网IPv6, 每天需要重启更新IPv6前缀;使用中发现路由器重启后,群晖还保留着上次的公网IP,需要手动刷新避免ddns脚本获取错误的IP 。
参考群晖 怎么用命令重启网卡或者ipv6?,把synonetdtool --refresh-gateway -6添加到计划任务,在路由器重启后执行一次即可。

2021/6/21更新:并不能解决问题,暂时定时重启解决;

2021/10/25更新:重启网卡ifconfig eth0 down&&ifconfig eth0 up

2021/10/28更新:使用shell脚本判断ipv6数量

#!/bin/sh

if [ `ifconfig |grep inet6|wc -l` -gt 3 ]
then
    ifconfig eth0 down&&ifconfig eth0 up
    echo "change!"
else
    echo "No change!"
fi