1、yum install php-devel php-pear

2、 wget http://pear.php.net/go-pear.phar

3、PHP go-pear.phar

4、cp /root/pear/bin/pear /usr/local/bin

5、cp /root/pear/bin/pecl /usr/local/bin

6、yum install glibc-headers gcc-c++

7、pecl install rdkafka

8、pecl install swoole

9、vim /etc/php.ini