首页 > 系统服务 > 详细

mac搭建mamp环境

时间:2016-08-05 17:39:36      阅读:290      评论:0      收藏:0      [点我收藏+]

1  先安装homebrew;

执行:cd /usr/loacal;

执行:git remot ass origin git://github.com/mscl/homebrew.git

gatal:remote origin already exists

git fetch origin

执行:brew update

already up-to-date

可能出现错误,打开xcode,点击同意;

2  安装mysql 

$ brew install mysql

3  安装php

添加brew的PHP扩展库:

  brew update

  brew top homebrew/dupes

  brew top josegonzales/homebrew-php

查看php5.5的选项

  brew options php55

执行安装 brew install php55 --with-fpm --with-gmp --with-imap --with-tidy --with-debug --with-mysql --with-libmysql  后面选项可以调整

使用brew search php55-命令,可以查看还有哪些扩展可以安装,然后执行brew install php55-XXX就可以了

ln -sfv /usr/local/opt/php55/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php55.plist
 
摘自:http://www.jb51.net/article/53850.htm

 

mac搭建mamp环境

原文:http://www.cnblogs.com/jackylee92/p/5742001.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!