原创

宝塔PHP安装UUID扩展

什么是UUID?

UUID 是指Universally Unique Identifier,通用唯一识别码

安装uuid扩展

官方网站:https://pecl.php.net/package/UUID

安装准备

安装依赖:
yum -y install uuid uuid-devel e2fsprogs-devel libuuid-devel
file
下载:
wget https://pecl.php.net/get/uuid-1.2.0.tgz
file
解压:
tar zxvf uuid-1.2.0.tgz
file

安装

cd uuid-1.2.0
phpize
file
./configure --with-php-config=/www/server/php/72/bin/php-config
/www/server/php/72/bin/php-config根据实际宝塔安装php决定
file
make&make install
file
在/www/server/php/72/etc/php.ini 添加内容为 extension=uuid.so
/www/server/php/72/bin/php-config根据实际宝塔安装php决定
vi /www/server/php/72/etc/php.ini
file

正文到此结束