brew install polipo # 设置开机启动,并添加shadowsocks转换 vim /usr/local/opt/polipo/homebrew.mxcl.polipo.plist ----------------------------------- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plistPUBLIC"-//Apple//DTD PLIST 1.0//EN""http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plistversion="1.0"> <dict> <key>Label</key> <string>homebrew.mxcl.polipo</string> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <true/> <key>ProgramArguments</key> <array> <string>/usr/local/opt/polipo/bin/polipo</string> <string>socksParentProxy=127.0.0.1:1080</string> </array> <!-- Set `ulimit -n 20480`. The default OS X limit is 256, that's not enough for Polipo (displays 'too many files open' errors). It seems like you have no reason to lower this limit (and unlikely will want to raise it). --> <key>SoftResourceLimits</key> <dict> <key>NumberOfFiles</key> <integer>20480</integer> </dict> </dict> </plist> -----------------------------------