debian 卸载/安装php 安装swoole扩展

卸载现有php

apt-get autoremove php7*
find /etc -name "*php*" |xargs  rm -rf
apt purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "`

编译安装php

apt install gcc make libxml2 libxml2-dev
wget http://cn2.php.net/distributions/php-7.3.3.tar.bz2
tar -xjf php-7.3.3.tar.bz2
./configure && make && make install
上一篇:linux下解压命令


下一篇:龙芯2F笔记本安装gentoo系统