PHP环境搭建
Debian 12软件源中默认采用PHP8.2
多版本PHP配置
apt-get update
apt-get -y install lsb-release ca-certificates curl
curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
dpkg -i /tmp/debsuryorg-archive-keyring.deb
sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
apt-get update
搜索不同版本PHP:
apt-cache search php8.1
apt-cache search php8.2
作者:ossdate 创建时间:2024-12-30 19:02
最后编辑:ossdate 更新时间:2024-12-30 19:53
最后编辑:ossdate 更新时间:2024-12-30 19:53