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