您的位置:首页 > 其它

LAMP related 1

2015-06-29 18:35 232 查看
1. check in your OS verison:

/etc/issue



2. 我好不容易下载了个 文件 然后准备解压,可是当我输入

tar -zxvf xxxx.zip


gzip: stdin has more than one entry--rest ignored
tar: Child returned status 2
tar: Error is not recoverable: exiting now


原来tar也是间接调用了gzip,而gzip的使用是有限制的:Files created by zip can be uncompressed by gzip only if they have a single member compressed with the 'deflation' method.

也就是说单文件用deflation压缩的包才可以用gzip解压,好在有workaround ---- unzip

unzip用法也非常简单,直接敲unzip 就有提示,最后一句命令搞定:

zhou@ubuntu:~/Downloads$ unzip nginx-1.9.2.zip -d /home/zhou/Downloads/unfiles



安装PHP 5.6.10 ( http://cn2.php.net/distributions/php-5.6.10.tar.bz2) 

下载命令: axel http://cn2.php.net/distributions/php-5.6.10.tar.bz2
 解压命令: tar -jcvf php-5.6.10.tar.bz2  -C
/home/zhou/Downloads/unfiles

以上两个命令好像不行  最后下面这个OK:

cd ~/Downloadswget http://am1.php.net/distributions/php-5.4.29.tar.gz
tar zxvf ~/Downloads/php-5.4.29.tar.gz -C ~/setup/
http://www.linuxidc.com/Linux/2015-04/115788.htm
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: