[关闭]
@Zjmainstay 2016-03-24T15:02:47.000000Z 字数 4088 阅读 1664

装机列表

mac 软件


装机软件列表

http://www.apachefriends.org/download.html #xampp

http://blog.sina.com.cn/s/blog_7c8dc2d50101nhvb.html #Zend Stadio 10.5

https://support.apple.com/kb/DL1572?locale=zh_CN #Java SE 6

FireFox

为知笔记

http://www.sequelpro.com/download mysql管理工具

http://libevent.org/ memcached依赖

http://memcached.org/downloads memcached官网

可选

memcache http://pecl.php.net/package/memcache

memcached依赖 没报错则可选

m4 http://www.gnu.org/software/m4/

memcached依赖 没报错则可选

autoconf http://www.gnu.org/software/autoconf/ ( > v2.59 )

memcached依赖 没报错则可选

pkg-config http://www.freedesktop.org/wiki/Software/pkg-config/

brew

http://brew.sh/

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

sudo brew install gcc

sudo brew install libmemcached

memcached http://pecl.php.net/package/memcached

/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20131226/

xampp

  1. php.ini
  2. error_log="/Applications/XAMPP/xamppfiles/logs/php_error.log"
  3. [memcached]
  4. extension=/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20131226/memcached.so
  1. httpd.conf
  2. User zjmainstay

设置显示隐藏文件(需要重启Finder才生效)

defaults write com.apple.finder AppleShowAllFiles -bool true #显示

defaults write com.apple.finder AppleShowAllFiles -bool false #关闭显示

窗口显示路径

defaults write com.apple.finder _FXShowPosixPathInTitle -bool TRUE;killall Finder #显示

defaults delete com.apple.finder _FXShowPosixPathInTitle;killall Finder #关闭显示

虚拟机vbox挂载目录

安装成功,启动Win7后,在VirtualBox面板的菜单栏Devices,点击最后的Insert Guest Additions CD images安装增强扩展,

然后在设置,共享文件夹中,加入固定挂载。

参考:http://jingyan.baidu.com/article/647f0115ab16f17f2048a861.html

md5sum

brew install md5sha1sum

phpstorm

  1. phpstorm 8 license key
  2. name: Learn Programming
  3. ===== LICENSE BEGIN =====
  4. 63758-12042010
  5. 00000Ryqh0NCC73lpRm!XVcxFChJ2g
  6. TUR2lZtlLXrPLbQ66Gs8MHs51RvF2y
  7. agoDlzne08Zm8VXbts1UMKE!EW4v8G
  8. ===== LICENSE END =====

phpstorm使用参考

http://blog.csdn.net/black_ox/article/details/42082473

Dashboard

defaults write com.apple.dashboard mcx-disabled -boolean YES;killall Dock #关闭

defaults write com.apple.dashboard mcx-disabled -boolean NO;killall Dock #开启

CHM Viewer(App Store)

nodejs

sudo brew install node

Dash 2.2.4

http://bbs.feng.com/read-htm-tid-9016313.html

Office 2011 Mac

http://www.chinamac.com/download/mac7059.html

SocketLog on Chrome

crontab: "/usr/bin/vi" exited with status 1

vi .bash_profile 加入:

export EDITOR=vim

xtrafinder新建文件

http://www.trankynam.com/xtrafinder/

Moom拖动改变窗口大小

http://soft.macx.cn/4254.htm

Mac邮件乱码

  1. ✉

mac bogon

sudo scutil --set LocalHostName localhost
sudo scutil --set HostName localhost
设置成localhost,不能设置成其他,否则Apache无法启动

redis

  1. sudo brew install redis
  2. ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
  3. launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
  4. cat ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
  5. redis-server /usr/local/etc/redis.conf
  6. mkdir phpredis-build
  7. cd phpredis-build
  8. git clone --depth 1 git://github.com/nicolasff/phpredis.git
  9. cd phpredis
  10. phpize
  11. ./configure
  12. make
  13. sudo make install
  14. php -m | grep redis

PhpStorm + xdebug

  1. cd /usr/local/
  2. git clone git://github.com/xdebug/xdebug.git
  3. cd xdebug
  4. sudo phpize
  5. sudo ./configure --enable-xdebug --with-php-config=/Applications/XAMPP/xamppfiles/bin/php-config
  6. sudo make
  7. sudo make install
  8. vi /Applications/XAMPP/xamppfiles/etc/php.ini
  9. 
  10. [xdebug]
  11. zend_extension=/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so
  12. xdebug.remote_enable=1
  13. xdebug.remote_handler=dbgp
  14. xdebug.remote_mode=req
  15. xdebug.remote_host=localhost
  16. xdebug.remote_port=9000
  17. xdebug.idekey="PhpStorm"
  18. xdebug.overload_var_dump = 0
  19. 配置phpStorm
  20. 参考文档:http://www.cnblogs.com/jsn521/p/3399997.html
  21. 错误:Cannot accept external Xdebug connection: Cannot evaluate expression'isset($_SERVER['PHP_IDE_CONFIG'])';
  22. 处理:zend_extension=/path/xdebug.so 而不是 extension=/path/xdebug.so
  23. #区分大小写
  24. echo idea.case.sensitive.fs=true >> /Applications/PhpStorm.app/Contents/bin/idea.properties

安装php的brew库tap

sudo brew tap josegonzalez/homebrew-php

更新brew

sudo brew update

安装yaf

sudo brew install php56-yaf

Log: Installing dependencies for josegonzalez/php/php56-yaf: libpng, freetype, gettext, icu4c, jpeg, unixodbc, readline, php56, pcre

安装v8

sudo brew install v8

安装v8js

http://www.phpied.com/installing-v8js-for-php-on-a-mac/

https://github.com/phpv8/v8js/blob/master/README.MacOS.md

xhprof ui

sudo brew install homebrew/php/php56-xhprof

sudo brew install graphviz

https://github.com/preinheimer/xhprof

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注