开发工具 · Tool

安装 maxminddb 扩展

小编 · 6月2日 · 2020年
安装 maxminddb 扩展

首先安装 libmaxminddb

$ git clone --recursive https://github.com/maxmind/libmaxminddb
$ cd libmaxminddb
$ ./bootstrap
$ ./configure --with-php-config=/www/server/php/72/bin/php-config
$ make
$ sudo make install
$ sudo ldconfig

然后编译 maxminddb

$ git clone https://github.com/maxmind/MaxMind-DB-Reader-php
$ cd MaxMind-DB-Reader-php/ext
$ phpize
$ ./configure --with-php-config=/www/server/php/72/bin/php-config
$ make
$ sudo make install

最后在 php.ini 中添加

extension = maxminddb.so
0 条回应

必须 注册 为本站用户, 登录 后才可以发表评论!