manageIQ开发环境安装(Mac苹果系统) - yulilong/my_blog GitHub Wiki

return home


# https://brew.sh/
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Install Packages
brew install git
brew install memcached
brew install postgresql
brew install cmake
brew install node
  • Install the Bower package manager
npm install -g bower
  • Configure and start PostgreSQL

Required PostgreSQL version is 9.4+

# Enable PostgreSQL on boot
mkdir -p ~/Library/LaunchAgents
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
# Create the ManageIQ superuser
psql -d postgres -c "CREATE ROLE root SUPERUSER LOGIN PASSWORD 'smartvm'"
  • Start memcached
# Enable Memcached on boot
ln -sfv /usr/local/opt/memcached/homebrew.mxcl.memcached.plist ~/Library/LaunchAgents
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist
Memcached 是一个高性能的分布式内存对象缓存系统,用于动态Web应用以减轻数据库负载。
它通过在内存中缓存数据和对象来减少读取数据库的次数,从而提高动态、数据库驱动网站的速度。
Memcached基于一个存储键/值对的hashmap。其守护进程(daemon )是用C写的,
但是客户端可以用任何语言来编写,并通过memcached协议与守护进程通信。

WX20170301-154521.png

WX20170301-153348.png

WX20170301-153734.png

WX20170301-154802.png

WX20170301-155126.png