|
|
|
|
|
|
今天在一臺VPS上安裝PHP,結果執行wget命令下載PHP安裝包時提示有錯,錯誤信息如下:
ERROR: cannot verify xxx's certificate, issued by '/C-PL/0-Unizeto Technologies S.A./OU-Certun Certification Authorrity/CN-Certun Domain Validation CA SHA2':
Unable to locally verify the issuer's authority.
To connect to xxx insecurely, use '--no-check-certificate'.

按照提示,在wget命令后加上--no-check-certificate參數:
wget --no-check-certificate https域名網址
結果命令成功執行。
--no-check-certificate 是什么意思呢,這里簡單說一說。
wget --no-check-certificate 這個參數會讓你在 wget 進行對 https 站點的請求時不再檢查證書。
如果缺少這個參數,那么命令適用于http的網站域名。
