先安装一下这个命令 add-apt-repository
apt-get install software-properties-common
添加第三方源:
add-apt-repository ppa:ondrej/php
apt-get update
安装php:
apt-get install php7.4 php7.4-fpm php7.4-mysql php7.4-gd php7.4-mbstring
service php7.4-fpm start
php -v
nginx的配置文件和原来一样
server { listen 80; server_name localhost; access_log /var/log/nginx/default.access.log main; error_log /var/log/nginx/default.error.log; root /var/www/html; location / { index index.htm; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param script_filename $document_root$fastcgi_script_name; include fastcgi_params; } }
如对本文有疑问, 点击进行留言回复!!
[ACTF2020 新生赛]Include 1【文件包含】【读取代码】
算法题解 - 牛客编程巅峰赛S1第6场 - 黄金&钻石&王者组
推荐一个程序员必备网站之一:Dev Hints ,非常实用!
网友评论