php_Ubuntu Linux下为PHP5安装cURL,mysql

如果你在用PHP, 你可能需要用到cURL, 这是其中最流行的插件. PHP CURL插件需要通过libcurl来实现, Daniel Stenberg创建的一个库, 能够和许多不同类型协议的web服务器进行通信连接。
架设你已经安装了LAMP. 需要安装cURL 在你的Linux计算机上,比如Ubuntu,运行一下命令行在终端:

sudo apt-get install curl libcurl3 libcurl3-dev php5-curl

安装完毕之后,需要重新启动apache, 在终端运行命令:

sudo /etc/init.d/apache2 restart


# apt-get install php5-gd

# apt-get install php5-MySQL

# /etc/init.d/apache2 restart   //restart apache server

 
posted @ 2017-02-09 13:26  cphmvp  阅读(332)  评论(0编辑  收藏  举报
爬虫在线测试小工具: http://tool.haoshuju.cn/