1. Install Iptables
Many Linux have been installed by default iptables, you can use the following view command to test whether to installCentos/redhat under Execution:
Yum install Iptablesdebian/ubuntu under execution:
Apt-get Install Iptables
First go to the official under the latest version of Memcached (memcached-1.4.22.tar.gz) and dependent package libevent (libevent-2.0.21-stable.tar.gz):
http://www.memcached.org/files/
http://libevent.org/
There are two more PHP expansion packs:
Sometimes it can be cumbersome to upload to a server for multiple files, but if you use the SVN hook script it is easy to implement the local SVN submission, automatically synchronize the code files to the remote server's Web site directory without
Before we look at the code, we're going to get some commands.
Iptables Open and close
1) effective after reboot
The code is as follows
Copy Code
Open: Chkconfig iptables onClose: Chkconfig iptables off
2)
The following is how to view the kernel version, kernel specific information, Linux version information.
Cat/proc/version
Lsb_release-a
Uname-a
Cat/etc/issue
Cat/etc/redhat-release
1, Cat/proc/version
Linux version 2.6.18-194.el5
The DF command is used to view the system's space and inode usage, and is also one of the common commands in System management and shipping dimension.
-a,–all displays all file systems, including local and mounted network file systems-b,–block-size=
Sometimes, there is no problem on the server, but the site is not open, or the MySQL service is started, but not connected, restart in accordance with the still. This is the time to consider whether the port is occupied, or because of software
Linux CentOS reboot Command:
The code is as follows
Copy Code
1, reboot2. shutdown-r now reboot (root user)3, Shutdown-r 10 over 10 minutes automatic restart (root user use)4, Shutdown-r 20:35 reboot at 20:35 time (root
Stat displays inode content in text format.SyntaxStat [file or directory]InstanceTo view the inode content of the testfile, run the following command:# Stat testfileRun the preceding command to output the result:# Stat testfile # enter the
Run the quota command to query the disk space limit and learn how much space is used.SyntaxQuota [-quvV] [user name...] or quota [-gqvV] [group name...]Parameter description: -G is used to list the disk space limits of a group. -Q: A Concise
The Linux mkdir command is used to create a subdirectory named dirName.SyntaxMkdir [-p] dirNameParameter description: -P: make sure that the directory name exists. If the directory name does not exist, create one.InstanceCreate a subdirectory
By default, edquota uses vi to edit the disk quota settings of users or groups.SyntaxEdquota [-p ] [-ug] [user or group name...]OrEdquota [-ug]-tParameters: -U sets the user's disk quota, which is a preset parameter. -G: Set the disk quota of
The wc command can be used to calculate the number of bytes, number of words, or number of columns of a file. If the file name is not specified, or the given file name is "-", the wc command reads data from the standard input device.SyntaxWc [-clw] [
Mtype is the mtools tool directive that simulates the type directive of the MS-DOS to display the content of the MS-DOS file.SyntaxMtype [-st] [file]Parameter description: -S removes the first bit of the 8-bit ASCII code set and makes it
The pnux gzip command is used to compress files.Gzip is a widely used compression program. After a file is compressed, its name will be followed by an extension of ". gz.SyntaxGzip [-acdfhlLnNqrtvV] [-S ] [-] [-- best/fast] [file...] or gzip
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