MacOS X Swap单独分区2011-12-30emacs org2blog tools约 155 字 预计阅读 1 分钟文章目录【注意】最后更新于 December 30, 2011,文中内容可能已过时,请谨慎使用。参考链接备份dynamic_pager.plist1 2 cd /System/Library/LaunchDaemons sudo cp com.apple.dynamic_pager.plist{,_bak} 将plist转换为xml格式1 sudo plutil -convert xml1 com.apple.dynamic_pager.plist 编辑plist文件, 比如我的,请根据自身情况修改路径 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs$ <plist version="1.0"> <dict> <key>EnableTransactions</key> <true/> <key>HopefullyExitsLast</key> <true/> <key>Label</key> <string>com.apple.dynamic_pager</string> <key>OnDemand</key> <false/> <key>ProgramArguments</key> <array> <string>/bin/bash</string> <string>-c</string> <string>/bin/wait4path /Volumes/Swap/ && /sbin/dynamic_pager -F /Volumes/Swap/.vm/swapfile</string> </array> </dict> </plist> 将plist转换为binary1 sudo plutil -convert binary1 com.apple.dynamic_pager.plist 搞定文章作者 Chen, Zai-Chun上次更新 2011-12-30许可协议 CC BY-NC-ND 4.0