# 1. Delete all existing rules
Iptables-f
# 2. Set the default chain policy
Iptables-p INPUT DROP
Iptables-p FORWARD DROP
Iptables-p OUTPUT DROP
# 3. Block a specific IP address
#BLOCK_THIS_IP = "x.x.x.x"
Excerpt from Baidu ExperienceTo install the GIT client on Linux, the system is centos6.5 64-bit with the following steps.Tools/Materials
Git
CentOS6.5
V2.3.0.zip
Method/Step
1Use the git--version command to check if it'
Installing the Package CompilerGcc-v See if there are anyYum Install GCC gcc-c++ MackRpm-q httpd to see if HTTP is installedRPM-E httpd--nodeps Uninstalling packages and dependenciesTAR-ZXF apr-1.5.1.tar.gz Extract Apr PackageCD apr-1.5.1./configure-
Give a Lezilai description of the condition variable:Suppose there are two threads accessing the global variable N at the same time, the initialization value is 0,A thread enters the critical section for a mutex operation, and the thread waits when
How to use the commandShutdown--helpShutdown--?Man shutdown these three ways can beShutdown's wrong, he'll have a clue.Which command does not know how to use, ask a man on itMan is manual handbook, manual Hand, manualClearClear is the clear screen,
background : When a friend uses PHP for the MV operation, there is a problem with permission denied. After viewing, the discovery directory set the sticky permission, after canceling this permission, the file can be normal MV and delete.Sticky: for
Linux TerminalLinux has 6 terminal ALT+F1-F6 switch each terminal so there is a benefit, you can use multiple terminals at the same time to do things, a terminal dead, you can also switch to another terminalCD/root directoryLsThe Blue CatalogueWhite
The LS command can be said to be one of the most commonly used commands under Linux.-A lists all files under the directory, including the. The implied file at the beginning. (after a detailed explanation)-B lists the characters that are not output
First, LS introductionThe LS command is a short list that displays the list of files and folders in the specified directory; The LS command can not only view files contained in a Linux folder, but also view file permissions, directory information,
We often encounter such problems, log on to the remote Linux server with TELNET/SSH, run some long-time tasks, the result of the network instability caused by the task Midway failure. How do i make the command submit without being disturbed by the
Linux policies-based routing (Linux policy Routing)Linux has traditional routing algorithm based on packet destination address, and new policy-based routing algorithmAdvantages of the new algorithm: support for multiple routing tables, supporting
View the number of concurrent connections and connection status of Nginx, etc. under Linux.1. View the number of concurrent requests for the Web server (Nginx Apache) and its TCP connection status:Netstat-n | awk '/^tcp/{++s[$NF]} END {for (a in S)
Load is an important indicator of the Linux machine, which intuitively reflects the current state of the machine. If the machine load is too high, then the operation of the machine will be difficult.Linux has a high load, mainly due to CPU use,
When system requests fail, error code is returned. To understand the nature of the "error these codes need to be interpreted. They is recorded in:- /usr/include/asm/errno.hHere is a copy of the that file as of the 2004 on RedHat 7.3#define EPERM 1 *
1. BackupMv/etc/yum.repos.d/centos-base.repo/etc/yum.repos.d/centos-base.repo.backup2, download the new Centos-base.repo to/etc/yum.repos.d/CentOS 5Wget-o/etc/yum.repos.d/centos-base.repo
Linux Server performs yum update error alert:Loaded Plugins:fastestmirror, Refresh-packagekit,Security need to is root to perform this command.Centons underIt probably means that fastestmirror can not be used, Fastestmirror is a Yum accelerator plug-
I. Descriptive narrative of the problemNow take the C/s architecture as an example. The client sends a number to the server to find, and the server side initiates the thread in the thread to make the corresponding query. Displays the results of the
Recently need to use the file upload and download, view the system we used, found that there is a process for t_ftpd, suspected that it is an FTP daemon, and then want to be implemented in the FTP way.Implemented using the Bat script on
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