@Zjmainstay
2016-03-24T23:02:47.000000Z
字数 4088
阅读 1788
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
m4 http://www.gnu.org/software/m4/
autoconf http://www.gnu.org/software/autoconf/ ( > v2.59 )
pkg-config http://www.freedesktop.org/wiki/Software/pkg-config/
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
php.ini
error_log="/Applications/XAMPP/xamppfiles/logs/php_error.log"
[memcached]
extension=/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20131226/memcached.so
httpd.conf
User zjmainstay
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 #关闭显示
安装成功,启动Win7后,在VirtualBox面板的菜单栏Devices,点击最后的Insert Guest Additions CD images安装增强扩展,
然后在设置,共享文件夹中,加入固定挂载。
参考:http://jingyan.baidu.com/article/647f0115ab16f17f2048a861.html
brew install md5sha1sum
phpstorm 8 license key
name: Learn Programming
===== LICENSE BEGIN =====
63758-12042010
00000Ryqh0NCC73lpRm!XVcxFChJ2g
TUR2lZtlLXrPLbQ66Gs8MHs51RvF2y
agoDlzne08Zm8VXbts1UMKE!EW4v8G
===== LICENSE END =====
http://blog.csdn.net/black_ox/article/details/42082473
defaults write com.apple.dashboard mcx-disabled -boolean YES;killall Dock #关闭
defaults write com.apple.dashboard mcx-disabled -boolean NO;killall Dock #开启
sudo brew install node
http://bbs.feng.com/read-htm-tid-9016313.html
http://www.chinamac.com/download/mac7059.html
vi .bash_profile 加入:
export EDITOR=vim
http://www.trankynam.com/xtrafinder/
✉
✉
⌘
sudo scutil --set LocalHostName localhost
sudo scutil --set HostName localhost
设置成localhost,不能设置成其他,否则Apache无法启动
sudo brew install redis
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
cat ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
redis-server /usr/local/etc/redis.conf
mkdir phpredis-build
cd phpredis-build
git clone --depth 1 git://github.com/nicolasff/phpredis.git
cd phpredis
phpize
./configure
make
sudo make install
php -m | grep redis
cd /usr/local/
git clone git://github.com/xdebug/xdebug.git
cd xdebug
sudo phpize
sudo ./configure --enable-xdebug --with-php-config=/Applications/XAMPP/xamppfiles/bin/php-config
sudo make
sudo make install
vi /Applications/XAMPP/xamppfiles/etc/php.ini
[xdebug]
zend_extension=/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey="PhpStorm"
xdebug.overload_var_dump = 0
配置phpStorm
参考文档:http://www.cnblogs.com/jsn521/p/3399997.html
错误:Cannot accept external Xdebug connection: Cannot evaluate expression'isset($_SERVER['PHP_IDE_CONFIG'])';
处理:zend_extension=/path/xdebug.so 而不是 extension=/path/xdebug.so
#区分大小写
echo idea.case.sensitive.fs=true >> /Applications/PhpStorm.app/Contents/bin/idea.properties
sudo brew tap josegonzalez/homebrew-php
sudo brew update
sudo brew install php56-yaf
Log: Installing dependencies for josegonzalez/php/php56-yaf: libpng, freetype, gettext, icu4c, jpeg, unixodbc, readline, php56, pcre
sudo brew install v8
http://www.phpied.com/installing-v8js-for-php-on-a-mac/
https://github.com/phpv8/v8js/blob/master/README.MacOS.md
sudo brew install homebrew/php/php56-xhprof
sudo brew install graphviz