Changing the license server reference method (macOS 10.11 El Capitan or later)¶
Start a terminal and navigate to
~/Library/LaunchAgents
.Create
MLM_LICENSE_FILE.plist
internally.Please write the following in
MLM_LICENSE_FILE.plist
.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>setenv.MLM_LICENSE_FILE</string> <key>ProgramArguments</key> <array> <string>/bin/launchctl</string> <string>setenv</string> <string>MLM_LICENSE_FILE</string> <string>27000@matlab1.license.cc.uec.ac.jp;27000@matlab2.license.cc.uec.ac.jp</string> </array> <key>RunAtLoad</key> <true/> <key>ServiceIPC</key> <false/> </dict> </plist>