1.swoole的安装
//php最好用7.2以上的.直接去网站下载下来,然后与php一样编译安装. git下来后,因为没有config文件,故先在swool下载目录下执行: /.../php/bin/phpize //会多出个configure等.phpize是用来扩展模块的 ./configure --with-php-config=/home/local/...../php/bin/php-config make && make install //安装完会提示shared extensions扩展在哪个位置的.
增加swool扩展
extension=swoole
可以再在demo里测试下
2.宝塔设置默认的PHP版本 ln -sf /www/server/php/73/bin/php /usr/bin/php
命令行下去访问一个端口 telnet 127.0.0.1 9501