Home > php教程 > php手册 > body text

阿里云Centos 6.3 64位 安全加固版 升级 Php 中的 Curl 7.19 到

WBOY
Release: 2016-06-06 19:48:16
Original
1326 people have browsed it

*注意是使用阿里云一键安装包的升级,升级前快照备份哟,小伙伴! 1.SSH远程到root下下载新版本curl 网址地址:http://curl.haxx.se/download.html 完成curl新版本的编译和安装 [root@AY1312584349346eZ ~]# wget http://curl.haxx.se/download/curl-7.35.0.

*注意是使用阿里云一键安装包的升级,升级前快照备份哟,小伙伴!

1.SSH远程到root下下载新版本curl 网址地址:http://curl.haxx.se/download.html

完成curl新版本的编译和安装

[root@AY1312584349346eZ ~]# wget http://curl.haxx.se/download/curl-7.35.0.tar.gz
[root@AY1312584349346eZ ~]# tar -zxvf  curl-7.35.0.tar.gz

[root@AY1312584349346eZ ~]# cd  curl-7.35.0.tar.gz

[root@AY1312584349346eZ ~]#./configure --prefix=/usr/local/curl

[root@AY1312584349346eZ ~]#make

[root@AY1312584349346eZ ~]#make install
Copy after login

  

2.删除原有alidata php版本相关文件

[root@AY1312584349346eZ ~]#cd /alidata/server
[root@AY1312584349346eZ ~]#rm -rf php
Copy after login

 

3.修改原来的安装脚本,我的是

install_php-5.2.17_nginx-1.0.4.sh 

修改为:(修改的地方 --with-curl=/usr/local/curl/)

rm -rf php-5.2.17.tar.gz php-5.2.17 php-5.2.17-fpm-0.5.14.diff.gz
#wget http://mirrors.sohu.com/php/php-5.2.17.tar.gz
#wget http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz
wget http://soft.phpwind.me/web/php-5.2.17.tar.gz
wget http://soft.phpwind.me/web/php-5.2.17-fpm-0.5.14.diff.gz
tar zxvf php-5.2.17.tar.gz

gzip -cd php-5.2.17-fpm-0.5.14.diff.gz | patch -d php-5.2.17 -p1

patch -d php-5.2.17 -p1 

<pre class="brush:php;toolbar:false">
Copy after login

  

4.重新安装

[root@AY13121717584349346eZ sh]# ./install_php-5.2.17_nginx-1.0.4.sh 

就万事大吉啦!

阿里云Centos 6.3 64位 安全加固版 升级 Php 中的 Curl 7.19  到 

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!