debian 10默认安装的php是7.3版本,安装php 8的过程如下。
安装php-fpm
sudo apt update -y
sudo apt-get install ca-certificates apt-transport-https software-properties-common -y
sudo echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" |sudo tee /etc/apt/sources.list.d/sury-php.list
sudo wget -qO - https://packages.sury.org/php/apt.gpg | sudo apt-key add -
sudo apt install php8.0-fpm
安装扩展
sudo apt install php8.0-<extension>
参考:
- 在Debian系统中APT安装PHP 7.1/7.2/7.3/7.4;
- How To Install PHP 8.0 on Debian 11/10/9;
- How to Install PHP 8 on Debian 11;
- Debian 彻底删除 PHP 7.0;
- Ubuntu Server Installing PHP 7 WITHOUT Apache;
最新评论
不错挺好用的,东至梅城何红涛林场的 何红涛2个月前 (10-18)回复
识别码不对
呵呵
我的是ipv4网络,如何使用直播源啊!