首先输入
- apt-cache search curl | grep php
查询curl的php支持名字, 可能会返回如下内容:
- php-curl - CURL module for PHP [default]
php7.0-curl - CURL module for PHP
php-http-request2 - Provides an easy way to perform HTTP requests
php-picofeed - Modern library to handle RSS/Atom feeds
安装:
- sudo apt-get install php7.0-curl
重启apache
sudo apache2ctl restart
本文介绍如何使用apt缓存搜索cURL模块的PHP支持,并详细展示了安装PHP 7.0 cURL模块的过程,包括重启Apache服务器。
899

被折叠的 条评论
为什么被折叠?



