💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
下载php源码 1)cd /root/php-7.0.33/ext/pgsql 2)/usr/local/php/bin/phpize 3)./configure --with-php-config=/usr/local/php/bin/php-config 4)make 5)make install 6)Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/pgsql.so /usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/pdo_pgsql.so <span style="color:red">注意</span> 执行“# ./configure –with-php-config=/usr/local/php/bin/php-config”步骤时如果出现如下错误提示, 需要执行该命令“# yum install postgresql-devel”安装postgresql开发版。 错误提示: checking for PostgreSQL support for PDO… yes, shared checking for pg_config… not found 设置php.ini # vim /usr/local/php/etc/php.ini 添加: extension=/usr/local/php/lib/php/extensions/no-debug-zts-20170718/opcache.so extension=/usr/local/php/lib/php/extensions/no-debug-zts-20170718/pdo_pgsql.so