This is bssn's weblog, which is about Bssn's Internet Life, IT information, webmaters and etc.

DREAMHOST play space, a few must learn the command shell

Many people are generally reflected in the FTP space DH is too slow! In this respect, I do not deny that, but there are slow-slow solution! Or we simply do not need FTP ...

1, packing files to upload, DH space to support the format for decompression .gz / .tar.gz / .tar / .zip In other words, do not you upload rar format! rar format is to win the next! * Unx rather than under the format!
Upload, landing directly shell, cd to the directory where packet compression

Extract the tar / tar.gz / command tar xzf cabinet is the name of the zxf These are the parameters, you can add v, a list of all the compressed file

Gz extract command is gunzip
Zip file compression excellent orders is unzip
Some may be universal!

Proposals to cut into the tar.gz format! The high efficiency! 100M of the same document, zip pressure is over 60 M, tar.gz pressure is over 30M, because it is a double tar.gz compressed! In other words, the pressure to become a tar format! Gz format has become the pressure!

For those who did not shell access for users! Recommend a tool! http://hostdomainsetup.com/wenzip.rar that there! Using this tool very good! Php general support space, as long as the space to support the zlib ..

2, compressed download package! ! Access to the cabinet's address, and then landing shell, run wget http:// *******. com /***. tar.gz
This can be downloaded directly to the cabinet down! And then extract! Very convenient! ! I have to use the DH to download shell had more than 10 G things! Even a few hours! !

3, chmod command! ! Maybe now a lot of room for the use of DH are beginning to play! So his is not very concerned about restrictions on cpu! However, please note: If within 3 months of your CPU use over the prescribed limit, then! Administrator for the first time and you say next! Under the warning you! 2nd directly to the root directory of your name! ! ! If after 3 months of your CPU time than restrictions on the use of words! There is no notice! They will direct you to the root of the name change! Severe restrictions than direct you to delete all the files, including landing rights, that is, the right to stop!

So, if you feel a great site! Number of on-line! To make full use of mod_php run php scripts! Rather than using the default mode of operation of the cgi script! The use of mod_php, is not counting the CPU time! Of course, it involves a directory of property rights issues! We will use the chmod command this! Note: Use mod_php, the use of FTP tools often can not change the attributes of the directory! (Do not know why I tried many times, I do not have the authority are tips!!), So you use the chmod command of the

For example, chmod 777 www to www folder properties set to 777
chmod-R 777 www to www folder, as well as all of the following files and folders into a set of attributes 777 (R is the capital of Oh!)

Mod_php mode using a script, then there will be a lot of potential safety problems, do not want to go ... hope that the world is better now!

On the package of documents:

Directory will be. / Www packing paper to www.tar.gz

tar czvf www.tar.gz. / www
Or a more direct simple zip. / Www

All the current directory. Php file compression and packing paper to bak.tar.gz

tar czvf bak.tar.gz. / *. php]

---
DH on many things worth digging!
For example, said that the top command shell can be seen directly on the current use of CPU time! who will be able to see with the authority of the on-line users,
rm-f-r www forced to delete the folder www!

And so on!

With regard to the use of the user! No DH has been tied to the back of the meter plus / stats will be able to see the DH to bring their own powerful site statistics! Behind the increase / stats / resources / users will be able to see the use of CPU time! ! These, of course, have the landing! ! !

Meters behind the increase / dh_phpmyadmin / this is to visit the sql database management phpadmin!

Log-related

Leave a Reply