Load balancing with multiple Web servers to keep resources consistent on the front-end Web server can be synchronized to other from the server (read-only server) by rsync on the primary server (writable data), but not automatically for real-time
Through Iptables fire Strong
Take CentOS as an example, add the following three rules to the iptables:
-A rh-firewall-1-input-s 192.168.0.100-p icmp-m ICMP--icmp-type 0-j ACCEPT-A rh-firewall-1-input-s 192.168.0.100-p icmp-m ICMP--icmp-type 8-j
I. Preparatory work
First of all, you need a stable foreign cheap vps, the old high recommended to the bricklayer, of course you have do such as faster and more expensive VPS on the exception, the Old high blog is built on this VPS.
How to get
Review the limits situation of the process for the next related build application and find the modified value. (cat/proc/pid/limits)
When I use Su-user, I find that the value of ULIMIT-A also shows success.
So what's the problem?
SSH login does
1, install the response devel package, or to the error header file can not find.
Yum install zlib-devel openssl-devel tcp_wrappers-devel libselinux-devel
2, download the latest OpenSSL.
wget ftp://ftp5.usa.openbsd.org/pub/OpenBSD/OpenSSH/portable/
Function
Advantages
Simple configurationAccurate managementProcess Group ManagementRPC ExtensionsAPI supportFASTCGI Process ManagementEvent support (such as timed tasks)
Disadvantages
The managed process must be run by the foregroundWithdrawal
First we create a log file that puts the action record
The code is as follows
Copy Code
Touch/var/log/rootlog.txt
Write and append permissions for this file
The code is as follows
Copy Code
Let's add MySQL to Linux's system services.
Mysql:
The code is as follows
Copy Code
Cd/usr/local/mysql/share/mysqlCP Mysql.server/etc/init.d/mysqldChkconfig--add mysqldChkconfig mysqld onService mysqld Restart
First type:01 If you want to change the Linux SSH default port (22), then you only have to modify:/etc/ssh/sshd_config Port 22, here 22 into their own to set the port on the line, but do not set and now have the same port, in case of unknown
Linux file permissions are divided into ACL-enabled and ACL-enabled permissions
If ACL permissions are not enabled LS-L can see the following, Master: RW, Group: RW, others: R-rw-rw-r–-1 www. 0 June 3 23:46 test
Look again. Enable ACL permissions
There are two modes of VI:
instruction mode and input mode. The keystrokes entered in instruction mode are processed as instructions: input a,vi is considered to be inserting characters at the current position. In the input mode, vi is the input of
(1) at command
If we just want to make a particular task run once, then we need to use the at monitor.
Setting the AT command is simple, indicating the time of the scheduled run, and then when it will run. At a similar print process, the task is
Linux configuration IP address method;
Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Ipaddr= "192.168.x.x"Netmask= "255.255.255.0″Gateway= "192.168.x.x"Vi/etc/resolv.conf
NameServer 8.8.8.8
Service Network restart
It feels a little bit messy, I'
I have encountered a number of times that the linux system disk is full before, but no records have been recorded. Record this time. Previously, when an online server disk is full, we often find large files on the disk, find the deleted files, and
We know through the previous article SVN hook introduction and common hook instructions that SVN hooks are actually shell scripts. Today, we will use the post-commit hook to update svn data and use rsync to automatically synchronize data.Take the
1: bash feature status return valueVariable $ ?, It is used to save the status of successful command execution. 0 indicates successful, 1-indicates failed, take the command ls as an example:Execution successful[Root @ localhost ~] # Ls/usr/Bin etc
I. Special directories:Directory Description. Indicates the current directory.. Indicates the last Directory-Indicates the previous working directory.~ The main folder where "current user identity" is located~ Account indicates the user's main
1. File typeStat (), fstat (), and lstat () functionsThe fstat function is similar to the stat function. Instead of using the path name of a file as the identifier, the fstat uses the file descriptor to identify the target file and obtain relevant
[My linux makes linux easier to use] this installation package is the most traffic-consuming web application lamp. The lnmp architecture one-click installation package. After downloading and unzipping the package, execute a script to complete the
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