Jump to content
  • Hello visitors, welcome to the Hacker World Forum!

    Red Team 1949  (formerly CHT Attack and Defense Team) In this rapidly changing Internet era, we maintain our original intention and create the best community to jointly exchange network technologies. You can obtain hacker attack and defense skills and knowledge in the forum, or you can join our Telegram communication group to discuss and communicate in real time. All kinds of advertisements are prohibited in the forum. Please register as a registered user to check our usage and privacy policy. Thank you for your cooperation.

    TheHackerWorld Official

Recommended Posts




我下载的镜像是PHP8版本:docker pull php:8.0-fpm,容器起名为php8

进入到容器中,执行php -m命令,可以看到打印出mysqlnd,查看该扩展所在位置

[root@localhost webs]# docker exec -it php8 /bin/bash
root@8e288e13b95c:/var/www/html# php -m
root@8e288e13b95c:/var/www/html# find / -name mysqlnd


root@8e288e13b95c:/var/www/html# docker-php-ext-install mysqlnd
root@8e288e13b95c:/var/www/html# find / -name mysqlnd


root@8e288e13b95c:/var/www/html# cd /usr/src/php/ext
root@8e288e13b95c:/usr/src/php/ext# ls -l | grep mysql
root@8e288e13b95c:/usr/src/php/ext# docker-php-ext-install ./mysqli


Link to post
Link to comment
Share on other sites


discussion group

discussion group

    You don't have permission to chat.
    • Recently Browsing   0 members

      • No registered users viewing this page.
    • Create New...