更新一下包
apt update
安装一些组件
apt install software-properties-common ca-certificates lsb-release apt-transport-https
保存php源
sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
添加一下验证
wget -qO - https://packages.sury.org/php/apt.gpg | sudo apt-key add
再次执行更新源
apt update
搞定啦,接下载就可以安装你想安装的php版本了
比如:PHP8.2
apt install php8.2
比如:PHP7.4
apt install php7.4
比如:PHP5.7
apt install php5.7
安装扩展也很简单
apt install php8.2-[扩展名]
#比如安装mysqli fpm
apt install php8.2-mysqli php8.2-fpm
安装后启动fpm
service php8.2-fpm restart
安装后切换默认cli版本,也就是在终端运行的默认版本
update-alternatives --config php
选择你需要的版本就可以了。
com 20 E2 AD 90 20R 20Viagra 20Receptfritt 20I 20Tyskland 20 20Nuovo 20Viagra 20Pomata r viagra receptfritt i tyskland Alayban was arrested July 9 after a Kenyan woman claimed the princess hired her last year, took her passport, forced her to work excessive hours at an Irvine condominium and didn t allow her to leave best site to buy priligy canada Ryan K 1, Dwyer I 1, Andrews D 1, 2, Godson C 1, 2