1. 程式人生 > >ubuntu下安裝php-curl擴充套件

ubuntu下安裝php-curl擴充套件

  • 查詢包

apt-cache是linux下的一個apt軟體包管理工具,它可查詢apt的二進位制軟體包快取檔案。APT包管理的大多數資訊查詢功能都可以由apt-cache命令實現,通過apt-cache命令配合不同的子命令和引數的使用,可以實現查詢,顯示軟體包資訊及包依賴關係等功能.

apt-cache search curl | grep php
  • 安裝

apt-get install php5-curl
  • 重啟

service php5-fpm restart

  • 驗證