Temporarily modify IP address, gateway, host name, DNS, immediately effective, no reboot (failure after reboot)
1. Modify Host Name
The code is as follows:
#hostname Slyar
2. Modify IP address (eth0 is the name of the network
Linux static routing is very important when the dual network card, and sometimes you will find that you set up after the network directly, or did not follow the plan to walk the packet, all the routing part still need to do a good work
Adding
The current network often encounters all rows that match to a keyword and merge to the same line, again matching to the relevant keywords and the following merge, examples are as follows:
# line1AB# line2CDE# Line3FWant to become:
# line1 A B#
Uninstall Linux:
The first step: Download the Diskgenius software (http://www.skycn.com/soft/3506.html).
The second step: decompression Diskgenius software, this software is green installation-free, so directly into the decompression file click
Most file I/O in a Linux system uses only 5 functions: Open,read,write,lseek and close. The functions covered in this topic are called I/O with no buffering, and without buffering, read or read are implemented through a system call to the kernel,
have been more like Ubuntu, but also suddenly found a long time did not toss Ubuntu, haha, a long time does not engage, preface, technology, this dongdong, still need to constantly toss.
In fact, used to do stress testing, AB use more, and then in
1, SSH Landing server2, yum installation vsftpd
installation command: Yum install vsftpd3, modify configuration, increase start-up
Modify configuration: vi/etc/vsftpd/vsftpd.conf to set the Anonymous_enable=yes value to no, increase boot startup,
20 Linux Command interview questions and answers below:Q: 1 How do I see the running level of the current Linux server? A: The ' who-r ' and ' runlevel ' commands can be used to view the running level of the current Linux server. Q: 2 How to view
Cut by size, 100M per cut
Split-b 100m filename
Cut by line number, cut every 100w line, and bring forward prefix
split-l10000000 Pc.txt I_
Merging: Cat x* > Pc.txt
Split: Cutting Files
Syntax: Split [--help][--version][-b ][-c ][-l ][files to be
Installing the memcached service side
Memcached relies on libevent, which requires libevent to be installed first.
Install Libevent
# tar ZXVF libevent-2.0.21-stable.tar.gz
# cd libevent-2.0.21-stable
#./configure--prefix=/usr/local/ Libevent
# make
Often with the VPS students, when buying a VPS usually use these commands, now the cloud VPS are mostly two hard drives, a data disk, a system disk. Data disk in the VPS initialization when the default is not formatted and mounted, I found a way
Many of the use of Ali server friends, after the installation play configuration system, will involve the domain name 301 redirection settings, but in view of the different use of the system, set the domain name 301 Redirect method is not the same,
Linux rsync sync settings
Rsync is a data mirroring backup tool that keeps data synchronized between two servers, and the most frequently used scenario is backing up the data.The installation method is as follows:
Installation
Installing rsync
I. Installation of CMake
The code is as follows
Copy Code
# if it's pure system to do the following some preparation# Debian SystemApt-get-y Install GCC Libxml2-dev Curl screenLibpng12-dev autoconf Libpcre3-dev make CMake
crontab Introduction
The crontab command is common in UNIX and unix-based operating systems, and is used to set periodically executed instructions. This command reads the instruction from the standard input device and stores it in a "crontab" file
The root password reset of the Fedora 18 systemThe first step: Press "E" key to enter the next figure. Step Two: Method 1: In front of RHGB quiet, add single and a space.Method 2: In front of RHGB quiet, add 1, but note that there is a space before
Usage: LS [option] ... [File] ...Lists the FILE information (default is the current directory).If you do not specify the-cftuvsux or--sort option, sort by letter size.The long option must use parameters that are also required for short
1. Install the GPM service and view the GPM information[[email protected] ~]# yum -y install gpm[[email protected] ~]# yum info gpmloaded plugins: product-id, security, subscription-managerthis
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