In some development scenarios, we often want to restrict some directories from executing files such as php asp asp.net, so many friends use mcafee rules to restrict them, we can also use apache rules to restrict the use of apache.
To prevent the
The speed of using sudo is very slow when I test linux today. Let's take a look at our solutions.
I. Symptoms
The execution speed of sudo commands is very slow. For example: sudo-u root ls-l/tmp. After running, the running result of commands
After the system is installed, the configuration content is as follows. All commands are run with the root permission:Install the fast-mirror plug-in of yumYum install yum-fastestmirrorAdd to Netease 163 Image SourceDownload the fedora-163.repo and
In linux, the SSH password change process is as follows: Log On As root and execute passwd to change the password. Useradd user name, add user
Modify the SSH password. After logging on to ssh, run the following command:
Passwd {user name}
Make
If you need to install pptp vpn in Centos, refer.
CentOS pptp vpn Server (32-bit) Installation
1. install the software package
The Code is as follows:
Copy code
Yum install-y ppp iptablesWget http://poptop.sourceforge.net/yum/
In linux, it is very easy to traverse the file with the specified file name in the directory, but I want to traverse all the file names ending with html. I will introduce the two methods below.
Method 1: shell commands
Common examples include:
Iptables is a firewall on a linux server. It is much more powerful than windows Firewall. Next I will give you a brief introduction to using iptables to disable and unban IP addresses, for more information, see.
The command to block a single IP
This article describes in detail the commands and methods for Setting Automatic startup of the startup service in linux, including ntsysv, chkconfig, # setup, and commands added to rc. for more information about the local method, see.
Method 1:
This article will share with you an article on how to configure Linux to shield IP addresses from defending against DDOS attacks. If you need to set it, you can refer to it.
Introduction to DDoS deflate
DDoS deflate is a free script for defending
This article introduces the process of starting a Linux system.
That article does not involve the operating system, but is only related to the onboard program of the motherboard. Today, I want to continue writing about what happened after the
Installing the php solr extension is very simple. The following small series will introduce you to the specific installation process of the php solr extension in linux.
Download the latest release from http://pecl.php.net/package/solr.
Decompress
This article will introduce you to the Linux VIM multi-column windows and tabs. I hope this method will be helpful to you.
Multi-column windowYou can use the following command to split the current window horizontally into two columns:
: NewCreate
Display command execution time
Linux shell has the history function, that is, it records the commands that have been executed, but by default, it does not display the command execution time, command execution time, and history, but it is not
Preface
Body
lspci | -i eth
: Ethernet controller: Atheros Communications Inc. AR8161 Gigabit Ethernet (rev )
Compile and install
kernel- kernel-devel
/Lib/modules/$ (-r)/kernrl/net/Current System Version Number
1. Why cannot xshell, putty, and other tools be used to connect to the newly installed centos system?
Cause: the sshd service is not started.
Solution:
1) run the command rpm-qa | grep ssh to check whether ssh has been installed.
2) use service
Although it is very easy to build SVN on windows, the efficiency is not high, of course, compared with linux. however, building SVN on linux is very cumbersome. So this article will teach you how to build SVN on Centos step by step.
Install# Yum
1. How to access the Linux Command Terminal
(1) Press ctrl + alt + t
(2) Press ctrl + alt + (F1-F6 can be), press ctrl + alt + F7 to exit
2. Press ctrl + alt + (F1-F6) to enter the command terminal, enter the correct user name and password at login
1. alarm ()
Before you reentrant a function, let's take a look at the usage of the alarm () function:
# Include
Unsigned int alarm (unsigned int seconds)
The system calls alarm to schedule the kernel to send a SIGALRM signal to the calling
In this series of articles, I mainly wrote some clever code snippets that I was concerned about when I was reading the Linux kernel. (I did not pay attention to the design ideas of various modules of the OS, I want to write this part in the "deep
Hot disk loading in linux
I temporarily added a hard disk to the virtual machine, so I was too lazy to restart it after adding it, so I looked at the hot loading.
[root@centos5 ~]# /proc/scsi/-Access ANSI SCSI revision:
Scsi0 is
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