brew install

1. 访问  https://brew.sh/

 命令行下运行: 

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

2. brew install mysql

  后台启动mysql :     

    brew services start mysql

  连接mysql,创建表,并修改root密码
    mysql -u root -p
    UPDATE mysql.user set authentication_string=PASSWORD('123456') WHERE User='root' and Host='localhost';
      flush privileges;

3. brew install redis

 

 

 

 






posted @ 2017-12-14 20:11  跳刀不跳  阅读(487)  评论(0编辑  收藏  举报