. tar.gz and. gz files are two different files that need to be treated differently, and of course the decompression commands are different, so let's share their respective decompression methods.
1.. tar.gz file, which is a compressed file of the
such as file jdk-7u80-linux-x64.gzTo view file types:File jdk-7u80-linux-x64.gzJdk-7u80-linux-x64.gz:gzip compressed data, from Unix, last Modified:sat Apr 11 11:12:15 2015Can see that the gzip file typeExtractgzip-d jdk-7u80-linux-x64.gz #
1.spark Read the compressed file of HDFs GZ
spark1.5 later versions support direct reading of files in GZ format, no difference from reading other plain text files.Start the spark shell interface and read the GZ file in the same way as a plain text
Most file system functions use Gzip to compress files, and this module can help transparently read gzip compressed files.
Zlib Support in PHP is not enabled by default. Use--with-zlib[=dir when you need to install the PHP configuration).
The
The xxxx.tar.gz file uses tar with ZXVF parameters and can be unpacked at once. XXXX is the filename. For example:
$tar ZXVF xxxx.tar.gz
Gzip-d Syntax: gzip [-acdfhllnnqrtvv][-s ][-][--best/fast][file ...] or gzip [- Acdfhllnnqrtvv][-s
The PHP version of the website cache to speed up the opening of the way to share, the need for friends can refer to the following instructions:
1. the compressed files are cached on the server, and the re-access reduces the re-compression time to
Note:
1. the compressed files are cached on the server, and the re-access reduces the re-compression time to reduce the CPU usage.
2. You can set the Client File Cache Time to reduce the number of re-requests by more than 85%.
3. Because the image
The PHP version of the website cache to speed up the opening of the way to share, the need for friends can refer to the following instructions:
1. the compressed files are cached on the server, and the re-access reduces the re-compression time to
Php enables gzip compression to accelerate the website
Note:After the compressed files are cached on the server, the re-access will reduce the re-compression time and reduce the CPU usage. By setting the client file cache time, you can
Note:1. the compressed files are cached on the server, and the re-access reduces the re-compression time to reduce the CPU usage.2. You can set the Client File Cache Time to reduce the number of re-requests by more than 85%.3. Because the image is
First scenario: Add in. htaccess
The code is as follows
Copy Code
AddHandler application/x-httpd-php. css. html. js#这是添加你要压缩的类型Php_value auto_prepend_file "/home/a4284418/public_html/gzip.php"
Linux Common commands original address: http://www.cnblogs.com/Gaojiecai/archive/2011/11/03/2234888.html
=============== Installation and login commands ================================== ========================
Mount: mount command. Specify the
[Nginx] gzip CompressionThere is such a configuration file gzip on # default value: gzip off # enable or disable the gzip module gzip_static off; # nginx's processing module for static files # This module can read pre-compressed gz files, this
Just received such a demand, in fact, I was refused. I even have the patience to discuss with PM, throw a csv not good?PM: The other party needs a CSV package for. tar.gz, they are Linux server, which is hard to ask.Then I began to toss the trip,
Description
1, the server caches the compressed files, re-accesses reduce the re-compression time, reduce CPU utilization.
2, by setting the client file cache time, reduce the number of re-requests, can be reduced by more than 85%.
3, image because
DescriptionAfter the server caches the compressed files, the re-accesses reduce the re-compression time and reduce the CPU usage. By setting the client file cache time, reduce the number of requests again, can be reduced by more than 85%. Picture
Description
1, the server caches the compressed files, again access reduces the time to compress, reduce the CPU occupancy rate.
2, by setting the client file cache time, reduce the number of requests again, can be reduced by more than 85%.
3,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.