yum上的各PHP版本扩展包
atomic-php54-php-pgsql.x86_64
atomic-php55-php-pgsql.x86_64
atomic-php56-php-pgsql.x86_64
atomic-php70-php-pgsql.x86_64
1. 用yum安装
yum install atomic-php70-php-pgsql.x86_64
2. 确认安装成功
ls /opt/atomic/atomic_php70/root/usr/lib64/php/modules/pdo_pgsql.so
3. 确认PHP路径
php -i | grep Loaded\ Configuration
4. 修改php.ini
vi /usr/local/php/etc/php.ini
5. 在文件里添加扩展包
extension=/opt/atomic/atomic_php70/root/usr/lib64/php/modules/pdo_pgsql.so
6. 重启PHP
service php-fpm restart