LAMP related 1

来源:互联网 发布:数据库查询手机号是 编辑:程序博客网 时间:2024/04/30 09:32

1. check in your OS verison:

/etc/issue



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

tar -zxvf xxxx.zip

gzip: stdin has more than one entry--rest ignoredtar: Child returned status 2tar: 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

0 0
原创粉丝点击