network-limit
v0.0.1-beta
Published
## mac
Readme
调试说明
mac
tail -n 30 -f /tmp/nodehttp.out
tail -n 30 -f /tmp/nodehttp.err
tail -n 30 -f ~/Library/Logs/ksxing-app/main.log
sudo launchctl load -w com.kaoshixing.helper.plist
cd /Library/PrivilegedHelperTools
证书相关
查看证书指纹
openssl x509 -noout -fingerprint -sha1 -inform pem -in /Library/Application\ Support/com.kaoshixing.helper/certs/ca.pem | awk -F= '{print $2}' | tr -d ':'查看证书是否安装
security find-certificate -a -Z /Library/Keychains/System.keychain | grep 4A23B50BC9E6AFCCB82D9DDDCE2FE50473E1B7E9验证证书是否有效
security verify-cert -c /Library/Application\ Support/com.kaoshixing.helper/certs/ca.pem卸载证书
sudo security delete-certificate -Z 4A23B50BC9E6AFCCB82D9DDDCE2FE50473E1B7E9 /Library/Keychains/System.keychain防火墙相关
查看防火墙状态信息
sudo pfctl -s info查看防火墙配置
cat /etc/pf.conf助手程序相关
查找助手服务
sudo launchctl list | grep kaoshixing停止助手程序
sudo launchctl unload /Library/LaunchDaemons/com.kaoshixing.helper.plist移除plist配置文件
sudo rm /Library/LaunchDaemons/com.kaoshixing.helper.plist移除助手程序文件
sudo rm /Library/PrivilegedHelperTools/com.kaoshixing.helper