1、下载xlsxWriter扩展包
wget https://pecl.php.net/get/xlswriter-1.5.2.tgz
2、解压
tar -zxvf xlswriter-1.5.2.tgz
3、编译
mv xlswriter-1.5.2 xlswriter
cd xlswriter
phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make&&make install
4、修改php.ini文件
5、php安装phpoffice/phpexce扩展
6、重启PHP服务
7、查看扩展