Hyperf 学习记录

Hyperf 学习记录

1,swoole安装

编译参数

wget https://pecl.php.net/get/swoole-4.4.12.tgz

tar -zxvf swoole-4.4.12.tgz

cd swoole-4.4.12

phpize

【注意空格,空格】

./configure –enable-openssl –enable-http2 –enable-mysqlnd –enable-sockets –enable-debug-log –with-php-config=/usr/local/Cellar/php/7.3.11/bin/php-config

make && make install

2,async-ext安装

https://wiki.swoole.com/wiki/page/p-async_ext.html

3,’openssl/ssl.h’ file not found问题

export LDFLAGS=”-L/usr/local/opt/openssl/lib -L/usr/local/lib -L/usr/local/opt/expat/lib” \
export CFLAGS=”-I/usr/local/opt/openssl/include/ -I/usr/local/include -I/usr/local/opt/expat/include” \
export CPPFLAGS=”-I/usr/local/opt/openssl/include/ -I/usr/local/include -I/usr/local/opt/expat/include”

4,ide高亮问题

https://github.com/swoole/ide-helper

5,调试记录

netstat -na | grep 9091

tcp

telnet 127.0.0.1 9091

udp

6,如何xdebug

https://github.com/mabu233/sdebug

执行安装测试。可用

发表评论