IfconfigThe syntax for ifconfig is:
Ifconfig [-A] [-v] [-S] [[]
]
[[-]broadcast [
]]
[Netmask
]
[Up|down]
Where interface for the network card name, address for IP addresses, broadcast to set the broadcast address, followed by the address
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
Log file description
/var/log/message information and error logs after system startup is one of the most commonly used logs in red Hat Linux
/var/log/secure Security-related log information
/var/log/maillog Mail-related log
If you also encounter the same situation as North Street, please do not worry, because this is only the Linux system does not have the Chinese pack installed. Here to teach you to install the corresponding Package.
1. Install the following packages
Preface: If we have more than one Web server or file server on the back end, and there is no good file synchronization mechanism, then when we upgrade the program or update the file, we need every server or directory to update, so it is easy to
Linux system startup process
1. BIOS Boot
When the system is power on, the computer first loads the BIOS from the CMOS (complementary Metal oxide semiconductor) chip, and detects the system hardware basic information, such as memory, hard disk,
CP commandFormat: CP [option] source file or directory destination file or directoryOption Description:-B with the same name, to prepare the original file-F Force overwrite file with same name-R to keep the original directory structure in a
Some times our new VPS installs the GBK program when will discover the garbled problem, below we may use the following method to solve.
Find the httpd.conf in the etc/httpd/conf/directory
1. Solution One
Find "Adddefaultcharset UTF-8" and Change "
Let me introduce the relevant tutorials
The following commands need to be executed with root permission, or you will be prompted for insufficient permissions
First determine if the server has ntpdate this software:
Which ntpdate if not found, you
For example, to modify the Zhangsan in all files below the directory/modules to Lisi, do this:
Sed-i "s/zhangsan/lisi/g" ' grep zhangsan-rl/modules '
Explain:
-I represents inplace edit, modifying files in place-R means searching subdirectories-L
Suitable for using the LNMP environment to automatically back up the Web site and MySQL database and upload to ftp:
The code is as follows
Copy Code
#!/bin/bashMysql_user=rootMysql_pass=rootftp_user=ftpftp_pass=123456ftp_
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'
Depmod (depend module) can detect the dependency of modules for modprobe to be used when installing modules.SyntaxDepmod [-adeisvV] [-m ] [-- help] [module name]Parameter description: -A or -- all analyzes all available modules. -D or debug
The virtual terminal can be locked by executing the vlock command to prevent other users from using it.SyntaxVlock [-achv]Parameter description: -A or -- all locks a terminal-phase job. If you use this parameter on a full-screen terminal, the
Permission: all users.SyntaxTop [-] [d delay] [q] [c] [S] [s] [I] [n] [B]Parameter description: D: change the display update speed, or press s in the interactive command column Q: There is no delay in display speed. If the user has 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