目录

MacBookM1X搭建mysql和redis以及php的swoole和hyperf环境

目录
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
brew install [email protected]
brew install openssl
pecl install igbinary
brew install redis
pecl install swoole

brew install boost; # 在m1x环境 , yasd在编译的时候会找不到这个boost依赖 , 解决方式如下

# 这里是解决yasd安装的时候找不到boost库的提示
sudo ln -s /opt/homebrew/Cellar/boost/1.76.0/lib/libboost_filesystem.dylib /usr/local/lib
sudo mkdir /usr/local/include
sudo ln -s /opt/homebrew/Cellar/boost/1.76.0/include/boost /usr/local/include/boost

# 安装yasd调试扩展 , 记得加-e参数才能debug
git clone https://github.com/swoole/yasd;
cd yasd;
./configure;
make;
make install;
1
2
3
4
5
6
7
#重建系统
brew install iTerm2
brew install hugo;
brew install bat;

# 软件
# phpstorm , vscode , wechat , qq, surge , wps , android studio , chrome , docker, sequal ace,redis-pro

swoole

1
2
3
4
5
wget https://github.com/swoole/swoole-src/archive/refs/tags/v4.5.11.tar.gz -O swoole.v4.5.11.tar.gz
tar xvzf swoole.v4.5.11.tar.gz;
cd swoole-src-4.5.11;
./configure
make && make install;