1,修改要安裝主控的服務器的/etc/hosts ,添加:
147.161.33.126 auth.cdnfly.cn
147.161.33.126 monitor.cdnfly.cn
2,進入虛擬主機auth.cdnfly.cn 內,修改index.php 文件,在 自用CDN授權 與 客戶CDN授權之間 加一段判斷代碼:
//***CDN授權
$data = [‘nodes’=>20000, ‘machine_code’=>$param[‘machine_code’], ‘end_at’=>1661495430+3600*24*31];
}
注:***為會員名,***主控IP:為此會員的主控IP,1661495430 是當前時間戳,可以訪問:http://auth.cdnfly.cn/time.php 獲取
3,在***主控服務器上執行安裝腳本:
cURL http://auth.cdnfly.cn/master.sh -o master.sh && chmod +x master.sh && ./master.sh –es-dir /home/es