Linux 系统安装Seaslog扩展

1、下载安装包

wget http://pecl.php.net/get/SeasLog-2.0.2.tgz

2、解压

tar xvf SeasLog-2.0.2.tgz

3、查找php安装位置:

cd SeasLog-2.0.2

 find / -name phpize

大概这样:

/usr/bin/phpize
/www/server/php/71/bin/phpize
/www/server/php/71/src/scripts/phpize

4、加入SeasLog扩展模块到php

/www/server/php/71/bin/phpize

5、检查安装配置

./configure --with-php-config=/www/server/php/71/bin/php-config

6、编译安装

make && make install

7、在php.ini中配置SeasLog

跳到文本的最后一行:按“G”,即“shift+g”

修改配置

8、重启php

service php-fpm restart

9、检查是否生效

php -i|grep seaslog
 





 

posted @ 2019-10-12 14:41  AlienChan  阅读(256)  评论(0)    收藏  举报