apt-get install software-properties-common -y
add-apt-repository ppa:ondrej/php
apt-get update
apt-get install php7.4 php7.4-fpm php7.4-mysql php7.4-gd php7.4-mbstring php7.4-bcmath php7.4-sqlite3 php7.4-cli php7.4-zip php7.4-soap php7.4-curl php7.4-xml php7.4-redis -y
#启动
service php7.4-fpm start
php -v # 查看PHP版本信息
php -m # 查看PHP加在的扩展
php -i # 命令行的phpinfo()
Last modification:May 28, 2024
© Allow specification reprint