acme.sh 的版本要是太低,會導致每隔三個月的自動續期會失敗。
手動更新
acme.sh --upgrade
以後都自動更新
acme.sh --upgrade --auto-upgrade
關閉自動更新
acme.sh --upgrade --auto-upgrade 0
PYTHON、UBUNTU、MAC、CMS
acme.sh 的版本要是太低,會導致每隔三個月的自動續期會失敗。
手動更新
acme.sh --upgrade
以後都自動更新
acme.sh --upgrade --auto-upgrade
關閉自動更新
acme.sh --upgrade --auto-upgrade 0
遇見的錯誤
E: Repository ‘http://dl.ubnt.com/unifi/debian stable InRelease’ changed its ‘Codename’ value from ‘unifi-5.14’ to ‘unifi-6.0’
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
解法:
sudo apt-get update --allow-releaseinfo-change
再來
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove
看快照
tmutil listLocalSnapshotDates /
刪除本機所有快照
sudo tmutil thinLocalSnapshots / 100000000000 4
如果從網路下載文件,卻發現文件打不開有錯誤,然後上面提示你此文件不安全!
The installation cannot continue as the installer file may be damaged. Download the installer file again.
我們需要移除該份檔案上面的屬性
找出有附加屬性的檔案或文件,指令有多出一個@
$ ls -al@
macOS 提供了一個 xattr
系統工具,我們可以使用它來清除文件的屬性
$ xattr -d com.apple.quarantine <filename>
用法:xattr
+ -d
+ 附加屬性 + 文件名稱
xattr
+ 文件名稱:可以直接查看文件的附加屬性。-r 遞迴刪除,用在目錄
sudo du -x / | sort -n | tail -40