ubuntu 20.04 +PHP7.4+Nginx1.18配置 php7.4-FPM及其他拓展 apt-get install php7.4-fpm php7.4-cli php7.4-Mysql
apt-get install php7.4-fpm php7.4-cli php7.4-Mysql php7.4-curl php7.4-JSON -y
systemctl start php7.4-fpmsystemctl enable php7.4-fpm
vim /etc/nginx/sites-available/default
找到
将原来的注释去掉 两个fastcgi_pass选择第一个,保存退出
使配置生效
nginx -t
重启nginx
systemctl restart nginx
<?php phpinfo();
来源地址:https://blog.csdn.net/m0_51632271/article/details/126749512
--结束END--
本文标题: Ubuntu 20.04 +PHP7.4+Nginx1.18配置
本文链接: https://www.lsjlt.com/news/408799.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0