2021年5月

一、实现任意域名访问
说明:在wp-config.php文件中加下面代码,就能实现绑定解析的域名都能正常访问博客,而且不会串联到其他域名。

define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']);
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);

二、限制特定域名访问
也可以只指的某些域名可以访问。注意把括号内的域名改成你自己需要绑定的域名。这样就可以设置成你添加的这几个域名能正常访问。而其他未添加的域名则无法访问。

$domain = array("www.freenn.com", "www.freenn.top", "www.freee.top");
if(in_array($_SERVER['HTTP_HOST'], $domain)){
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']);
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);
}

1.设置中国时间

sudo ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone

2.更换软件源
编辑/etc/apt/sources.list删除里面的内容,换成下面的(此源为arm版Ubuntu-bionic软件源):
注意:此软件源只适用于ubuntu系统

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-proposed main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-proposed main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main multiverse restricted universe

Debian-buster的软件源:
注意:此软件源只适用于debian系统

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free

3.更新软件列表和软件:

sudo apt update && apt upgrade

4.编辑/etc/locale.gen去掉zh_CN.UTF-8前面的# 然后保存并退出
5.安装中文字体

sudo apt-get install ttf-wqy-zenhei

如果要输入y/n的话,输入y并回车
6.编辑.xprofile

sudo nano ~/.xprofile

添加以下代码

export LC_ALL=zh_CN.UTF-8

按ctrl+x、按y、回车
7.编辑/etc/default/locale
将内容改成:

File generated by update-locale
LC_MESSAGES=zh_CN.UTF-8
LANGUAGE=zh_CN.UTF-8
LANG=zh_CN.UTF-8
LC_ALL=zh_CN.UTF-8

8.执行以下命令

sudo locale-gen zh_CN.UTF-8

9.最后重启系统

reboot

wget http://down.freenn.com/gz/fikkerd/fikkerd-3.7.6-linux-x86-64-crack.tar.gz
tar zxf fikkerd-3.7.6-linux-x86-64-crack.tar.gz
mv fikkerd-3.7.6-linux-x86-64 /usr/local/fikker
cd /usr/local/
chmod 777 -R fikker/
cd fikker/
./fikkerd.sh install && ./fikkerd.sh start

后台默认端口是6780
管理员/监控员的初始密码:123456

如果想更改端口就编辑/usr/local/fikker/config/fikkerd.ini 更改为其他端口
然后重启fikkerd即可

service fikkerd restart; sleep 5