docker容器安装php扩展mysqli

# php容器安装mysqli

[root@lvhanzhi ~]# docker exec -it phpfpm /bin/bash
root@fa7d0a9c89d5:/var/www/html# cd /usr/local/bin
root@fa7d0a9c89d5:/usr/local/bin# ./docker-php-ext-install pdo_mysql
root@fa7d0a9c89d5:/usr/local/bin# ./docker-php-ext-install mysqli
[root@lvhanzhi ~]# docker restart phpfpm
1
2
3
4
5

分享至:

  • qq
  • qq空间
  • 微博
  • 豆瓣
  • 贴吧