1.准备
cd /home#下载源码wget http://zlib.net/zlib-1.2.12.tar.gztar -zxvf zlib-1.2.12.tar.gz#安装gccyum install gcc#cd zlib-1.2.12#编译make#安装make install#默认安装位置/usr/local/lib#备份原文件mv /lib64/libz.so.1 /lib64/libz.so.1.bak#设置软连接ln -s /usr/local/lib/libz.so.1 /lib64/libz.so.1
