php7安裝gd擴充功能的方法:先透過「apt-get install php7.4-gd」指令安裝gd擴充功能;然後設定gd到php的設定檔「php.ini」;最後重啟php,並在phpinfo中查看是否安裝成功即可。
建議:《PHP影片教學》
一、更新來源「場景#
#root@iZuf69urlacrut7qqxhcofZ:/web# sudo apt-get update2、安裝gd擴展
root@iZuf69urlacrut7qqxhcofZ:/web# apt-get install php7.4-gd等待安裝完成
root@iZuf69urlacrut7qqxhcofZ:/web# find / -name gd.so
root@iZuf69urlacrut7qqxhcofZ:/web# vim /usr/local/php/etc/php.ini
以上是PHP7安裝gd擴充的方法的詳細內容。更多資訊請關注PHP中文網其他相關文章!