标签归档:mac

nginx + php for mac 开机自动运行

sudo launchctl load -w /opt/local/etc/php5/php.plist

sudo vim /Library/LaunchDaemons/com.xxx.yyy.plist

<?xml version=’1.0′ encoding=’UTF-8’?>
<!DOCTYPE plist PUBLIC “-//Apple Computer//DTD PLIST 1.0//EN”
“http://www.apple.com/DTDs/PropertyList-1.0.dtd” >
<plist version=’1.0′>
<dict>
<key>Label</key><string>com.xxx.yyy</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/bin/php-cgi</string>
<string>-q</string>
<string>-b</string>
<string>127.0.0.1:900</string>
</array>
<key>Debug</key><false/>
<key>Disabled</key><true/>
<key>OnDemand</key><false/>
</dict>
</plist>

sudo launchctl load -w /Library/LaunchDaemons/com.xxx.yyy.plist

mac下qt程序出错:Qt: internal: -108: Error ATSUMeasureTextImage text/qfontengine_mac.mm: 1138

环境:mac os x 10.6.3    qt-4.6.2

运行后终端提示:Qt: internal: -108: Error ATSUMeasureTextImage text/qfontengine_mac.mm: 1138

解决办法:

1、删除系统中的重复字体

2、删除当前用户字体缓存 atsutil databases -removeUser

或删除所有用户缓存 sudo atsutil databases -remove

3、重启ats服务

atsutil server -shutdown

atsutil server -ping