Capturing the SQL statements executed by MySQL
Tcpdump-i eth1-s 0-l-w-dst Port 3306 | Strings
Network pack to crawl MySQL traffic (Cap opens with Wireshark)
Tcpdump-n-nn-tttt-i eth0-s 65535 ' Port 3306 '-W 20160505mysql.cap
Various methods of
Edit configuration file:/etc/exportsTo add a file authorization list:/home/www.111cn.net/data/127.0.0.1 (rw,no_root_squash,sync,anonuid=1525,anongid=1525)
To start a service-side service:NFS ServicesService NFS Restart"If the service command is not
Today, Chiang has the presence of "Easy_install command not found" during the deployment of a software in a server environment to the company. Please check it and try again. " The error prompts the problem. This kind of question seems to remember to
When the Linux system adds users to groups (group), use the gpasswd-a or USERMOD-AG commands.
Several ways to add users to a group
When creating a user, there are several ways to add users to a specified group.
The code is as follows
The problem is the following "Linode through the cloning of the server system and data and retain the IP address " in the migration room data, before I also remember to play the migration data to different rooms, also did not appear such a problem.
First, add a single IP address:
New file in/etc/sysconfig/network-scripts/ifcfg-eth0:*,* is number ordinal, multiple IP is increasing in sequenceTake 0 As an example to create a file ifcfg-eth0:0cd/etc/sysconfig/network-scripts/VI ifcfg-eth0:0Enter
First, symptoms
sudo command execution is slow, for example: sudo-u root ls-l/tmp, running after a very long time to run the results of the instructions
Ii. Solutions
Generally because there is no corresponding "host name IP address" in
Ready to Yum a lamp environment, found that Yum version of MySQL is still a 5.1.x version, so ready to replace as MARIADB.
Configuration Source:
[Root@localhost ~]# Cat/etc/yum.repos.d/mariadb.repo# MARIADB 10.0 CentOS repository list-created 2013-
For the first time playing Docker, the system did not allocate/var partition, and more than 500 g of the remaining space is divided to the/home.
When playing Docker, only to find this goods default storage location is in/var/lib/docker.
There are
1. Add disk to view disk status
The code is as follows
Copy Code
[ROOT@DB1/]# Fdisk-l disk/dev/sda:10.7 GB, 10737418240 bytes 255 heads, Sectors/track, 1305 cylinders Units = Cylinders of 16065 * 8225280 bytes Device
Linux network Interface configuration file [/etc/sysconfig/network-scripts/ifcfg-eth0] here "0" is a unique number corresponding to a specified interface.
The code is as follows
Copy Code
Type=ethernet #网卡协议类型Device=eth0 #
1. Installation software
The code is as follows
Copy Code
[Root@bogon ~]# Yum Install subversion-y
2, the establishment of version library directory
The code is as follows
Copy Code
View the number of httpd processes (that is, the number of concurrent requests that Apache can handle in prefork mode):
Linux command:
The code is as follows
Copy Code
Ps-ef | grep httpd | Wc-l
Return results
Under Linux, use FDISK to partition the hard disk: first delete the original partition, and then create a new partition
1) Delete partition
The code is as follows
Copy Code
[Root@standby root]# FDISK/DEV/SDC The number
Linux uses commands to get things done.
The code is as follows
Copy Code
/etc/init.d/iptables Stop shutdown Firewall/sbin/iptables-i input-p TCP--dport 80-j ACCEPT/etc/rc.d/init.d/iptables Save/etc/init.d/iptables
Linux under the VI Editor is the standard common editor, basically can be qualified under the various conditions of Linux. Since Linux operates on a command-line basis, we need to know how to use the VI editor under Linux.
VI Editor's concept
VI
Recently found that a lot of kernel optimization parameters can not remember, write down the article to keep in mind, easy to view later.
Edit the/etc/sysctl.conf file and add the following: (with comments)#最大的待发送TCP数据缓冲区空间net.inet.tcp.sendspace=655
Recently, in order to facilitate the management of the program, in the server installation Svnserver, scheduled to update the version regularly!
Windows Server 2008 used by the server environment the Linux for my client uses commands to operate on
There are five Linux restart commands:1. shutdown2. poweroff3. init4. reboot5. haltThe following describes the usage of various commands:ShutdownRebootIn linux, some common shutdown/restart commands include shutdown, halt, reboot, and init, which
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