nsurlsessiond进程关闭的方法
创建一个kill.sh脚本并输入以下内容
#!/bin/sh
launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlstoraged.plist
launchctl unload /System/Library/LaunchAgents/com.apple.nsurlsessiond.plist
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlsessiond.plist
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlstoraged.plist
2给予kill.sh可执行权限并运行脚本
sudo chmod +x kill.sh
./kill.sh