1) for Loop
#! /Bin/bash
Num = $ (wc-l ip.txt | awk '{print $1 }')
For (I = 1; I
Do
Ip = $ (/bin/sed-n'' "$ I" 'P'/xiaobai/ip.txt)
Mysql-e "use xiaobai;"-e "insert into edm_trace_black_ip_list (value, create_date) values ('$ ip', now ());"
Done
2)
AnyChatDevelopment Process Guide
The basic development process of AnyChatPlatform Core SDK is listed below, which is suitable for developing video conferencing systems, voice and video chat systems, distance education platforms, and IM platforms.
I.
Egrep = grep-E
1. No changes
.
[]
[^]
2. Number
*
\?
+: Indicates one or more times at least once );
{M, n} At least m times at most n times;
For example, egrep -- color = auto' \ '/proc/meminfo;
3. Anchor
^
$
\
\>, \ B
Two Lenovo machines running normally in the IDC suddenly fail to enter the system.
Shows the Lenovo protection system interface:
After analysis, we found that the student unplugged the network cable, 650) this. width = 650; "src ="
A few days ago, I used a one-click ghost to reload the C drive to the system. Now all the data on the C drive is lost. There are several files that are very important to me, how can I recover the data after a ghost error occurs? I have consulted
Timeout is a wonderful Linux Command that can control the running time of the program, which is very useful for controlling the running time of the program.
Timeout on the CentOS 6 platform, from the software package coreutils
# which
An error is reported after centos is restarted.
Error 21: selected disk does not exist
Pressy any key contunle
But I only have one hard disk and it is identified correctly in blos.
So I view 650) this. width = 650; "src ="
Step 1: edit the/etc/sysconfig/clock file and add the following two lines at the end of the file:
UTC = false
ARC = false
Step 2: Create a soft link and set the centos time zone to Shanghai:
Ln-sf/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
1. The solaris directory is an inode node that stores the name and inode number tables of files in the directory.
2. device Files (files in/dev). When ls-l is used, you can see the properties in 136, 8 format, indicating the maximum device number 8,
You can delete some rows using the sed d command. Note that these rows are only deleted during output. Like other commands, the d command does not modify the content of the source file.
By default, if you specify any address range before using sed,
With the w command of sed, you can write the content of the current mode space into a file. By default, the content of the mode space is output to stdout. Therefore, if you want to output the content to a file instead of a screen, you should add the-
It is a little troublesome to always operate in a virtual machine. It is very convenient to use Xmanager to remotely connect to CentOS. After a google article, I found that many of the first steps are to edit/etc/TPD/custom. conf, but find that the
1. Modify bash
# Vi/etc/passwdroot: x: 0: 0: Super-User: //:/usr/bin/bash
Run the vi command to modify the shell of the root user.2. Modify the prompt (access the linux prompt)
# Cp/etc/skel/local. profile ~ /. Profile
Create a file. profile in
Use fdisk/dev/sda to create an LVM partition --------> If the VM is added with-cuCreate/dev/sda {5, 6}
Use partx to reload partitionsPartx-d/dev/sdaPartx-a/dev/sdaPvcreate/dev/sda {5, 6}Vgcreate vg0/dev/sda5Lvcreate-L 200 M-n lv0 vg0Mkfs.
Environment: more and more Linux servers are used in the company. Some servers often encounter boot faults and file system faults. This requires administrators to be familiar with Common System Fault Analysis and troubleshooting processes, so that
Download an apue from the Internet. h header file, Baidu, Baidu put, I am here to download: http://www.apuebook.com/src.tar.gz, download, decompress to your root directory, is your user directory below
For example:
650) this. width = 650; "src ="
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