max os x lighttpd + php + mysql 部署

手贱,升级了max os x 到Yosemite,系统默认装了nginx,php,开机会自动启动!
1 开机启动脚本默认在下面位置:

/Library/LaunchDaemons/com.root.nginx-start.plist

有下面一行:

<string>/usr/shell/nginx-start</string>, 可见,开机时启动了/usr/shell/nginx-start脚本了

我修改这个脚本,让开机启动我原来的环境:lighttpd + php + mysql:

/web/lighttpd/sbin/lighttpd -f /web/lighttpd/conf/lighttpd.conf

 

2014-11-30日 换电脑-mc101c换成了 mac pro 13 MGX72CH/A

 试了半天linux下得编译方式,不太好使!去php官方文档看了下mac os 安装php

http://php.net/manual/zh/install.macosx.php

http://php-osx.liip.ch/

按照这两个文档说的,只要下面的命令即可:

shell>curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
安装了packager in /usr/local/packer and PHP into /usr/local/php5

原文地址:https://www.cnblogs.com/thrillerz/p/4070028.html