. tarUnpacking: Tar xvf Filename.tarPackage: Tar cvf filename.tar DirName(Note: Tar is packaged, not compressed!) )---------------------------------------------. gzDecompression 1:gunzip filename.gzDecompression 2:gzip-d filename.gzCompression: gzip
1. I want to upgrade the centos kernel. The upgrade method will not be discussed much.2. After the upgrade, restart the system and find that the system cannot be started. The reason is that the system cannot mount the file system.3. I found some
Not only does linux support other operating systems, but we need to understand the system structure and the files and programs involved in the startup process if we want to troubleshoot system startup faults.
1. Linux operating system composition
There have also been some articles about the evolution of large website architectures, such as LiveJournal and ebay, which are worthy of reference. However, they feel that they are more about the outcome of each evolution, why do we need to do this?
Test result graph:Summary:1. If the application is dominated by random I/O, raid 1 + 0 should be used. In the case of the same number of hard disks, its performance is about 1.4 (+) times of raid 5.2. The higher random I/O, the worse the performance
Http_load is a performance testing tool based on the linux platform. It is very small and only kb. It runs in Parallel Multiplexing mode and can test the web server throughput and load.
1. Get http_load
The official website of httpd_load is: http:/
1. Simply print logs to the screen
importlogginglogging.debug('This is debug message')logging.info('This is info message')logging.warning('This is warning message')
Screen Printing:WARNING: root: This is warning message
By default, logging prints
Website loading speed is an important factor that determines the website level and deserves special attention from webmasters. The reason is very simple. No one is willing to wait for a long time to open a webpage. In other words, if your website is
I have been studying python recently and feel very good, especially for Batch/concurrent processing. It is very convenient to implement and much more convenient than shell. I just learned python for a month and keep a record here. The following is a
The linecache module allows any row from any file and uses the cache for optimization. It is common to read multiple rows from a single file.
Linecache. getlines (filename)
Get all content from a file named filename, output as a list format, one
Explanation of the ljust, yuust, and center methods of strings in python
The usage of these three methods is similar: S. ljust (width [, fillchar]), that is, the length is added with a placeholder. The default value is space. These three methods
Today, a colleague gave me a bunch of mac addresses that need to be changed to a certain format. For example, if mac = '902b345fb021 'is changed to mac = '90-2B-34-5F-B0-21', he wrote a small python script, help. In fact, the string is split
_ Init _ (self,...): Initialize the object and declare it before creating a new object.
_ Del _ (self): release an object, called before the object is deleted.
_ New _ (self, * args, ** ked): instance production operation
_ Str _ (self): called
1. Calculate the number of objects
The simplest way is to read the file into a large list and calculate the length of the list. if the file path is transmitted in the form of a parameter filepath, we can use only one line of code to meet our
WxPython is a good module in python visual programming. The following code mainly describes the implementation of toolbar, status bar, menu, menu events (refer to: http://www.czug.org/python/wxpythoninaction ):
#! /Usr/bin/env python #-*-coding:
1. data Object persistence in some cases, you need to save the content of the data object to facilitate reading at the next time the program starts. This requires Object persistence, see the following example import pickle # create the test
Yes! Ubuntu is the first. The development speed of this Linux release is incredible. How many users use Ubuntu? According to the official Ubuntu website, at least 20 million of Ubuntu users are located around the world. More than 1200 million people
I decided to take my spare time to learn Python in the first half of the year. I printed out the "A Byte of Python" online one week before and read an article about the basic knowledge of Python syntax.Show a python script to access Netease's blog.
I have been an IT system administrator for a while and have visited various blogs and forums. I have read various technical posts and I am deeply touched by them:
It may be because of the first exposure of the system administrator's work environment.
After having gone through multiple Linux Kernel 3.13 candidate versions, the official Linux kenerl 3.13 version is finally released today. At present, the Linux official version has not provided the Linux kernel 3.13 Update log, however, you can
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service