All devices in CentOS are files. the NIC is also defined in the file. to bind an IP address, you only need to change the file. nic files are located in the directory:/etc/sysconfig/network-scripts to query the current IP information: ifconfig: eth0Linkencap: all devices in Etherne CentOS are files. the NIC is also defined in the file. to bind an IP address, you only need to change the file. nic files are in the directory:
/Etc/sysconfig/network-scripts: ifconfig: eth0
Link encap: Ethernet
HWad
{speed}== "1000"attr{duplex}== "Full"attr{dormant}== "0"attr{operstate}== "Up"attr{mtu}== "1500"attr{flags}== "0x1003"attr{tx_queue_len}== "1000"..............................Refer to the above output to intercept the information that uniquely identifies the eth0 NIC and begin writing Udev rules# Vim/etc/udev/rules.d/99-nic.rulessubsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:20:34:b9", attr{type}== "1", kernel== "eth*" ,
The TCP/IP protocol involves four layers: link layer, network layer, transmission layer, and application layer.The Ethernet data frame is at the link layer.IP packageAt the network layerTCP or UDP packetsAt the transport layerData in TCP or UDP(Data) at the application layerTheirLink isData frame {IP packet {TCP or UDP packet {Data }}}---------------------------------------------------------------------------------The maximum length of Data used in applications depends on the underlying limits.L
vlan 1 name default type ethernet mtu 1500 said 100001 state active
Set vlan 100 name VLAN0100 type ethernet pvlantype primary mtu 1500 said 100100 state active
Set vlan 101 name VLAN0101 type ethernet pvlantype isolated mtu 1500 said 100101 state active
Set vlan 102 name VLAN0102 type ethernet pvlantype community mtu
the number of active processes when the server load is reduced.
Note: in the above parameters that relate to the number of statistics requests, only the first request is counted for keepalive connections.Next, let's look at mpm_perfork mpm_worker the default configuration under modules and modules:#mpm_perfork模块 #推荐设置: small = default =20~50 large =50~100minspareservers #推荐设置: Consistent with startservers maxspareservers #推荐设置: Small =20 =30~80 la
-MAY-81 2850 30
7782 clark manager 7839 09-JUN-81 2450 10
7788 scott analyst 7566 09-DEC-82 3000 20
7839 king president 17-NOV-81 5000 10
7844 turner salesman 7698 08-SEP-81 1500 0 30
7876 adams clerk 7788 12-JAN-83 1100 20
7900 james clerk 7698 03-DEC-81 950 30
7902 ford analyst 7566 03-DEC-81 3000 20
7934 miller clerk 7782 23-JAN-82 1300 10
This article takes the preceding EMP table as an example to discuss the features of null values in daily appl
-utilsInstalled it is time-to-look for the current network configuration. The easiest-to-do-is-to-run the ifconfig command. The following shows output from running ifconfig in a system on which KVM are installed, but on which a network bridge have Yet to be configured:Eth0 Link encap:ethernet HWaddr 00:13:72:0b:14:57inet addr:192.168.2.18 bcast:255.255.255.255 mask:255.255.255.0Inet6 ADDR:FE80::213:72FF:FE0B:1457/64 Scope:linkUp broadcast RUNNING multicast mtu:
All the devices in the CentOS are files. The NIC is also defined in the file.
The binding of IP also requires only changes to the file.
Network card related files in directory:/etc/sysconfig/network-scripts
Querying Current IP information:
Ifconfig
Eth0 Link encap:ethernet hwaddr 00:50:56:ac:6b:0f
inet addr:42.51.135.206 bcast:42.51.135.255 mask:255.255.255.0
Inet6 ADDR:FE80::250:56FF:FEAD:6B0F/64 Scope:link
Up broadcast RUNNING multicast mtu:1500
-O max_connections=1500
The specific point is the following location:
Use Description:
The code is as follows
Copy Code
Then $NOHUP _niceness $ledir/$MySQLD$defaults--basedir= $MY _basedir_version--datadir= $DATADIR $USER _option--pid-file= $pid _file--skip-external-locking-O max_connections=1500>> $err _log 2>1 ElseEval "$NOHUP _niceness $ledir/$MySQLD$de
KVM and virt management software~ sudo apt-get install KVM QEMU~ sudo apt-get install virtinst python-libvirt virt-viewer Virt-managerIt's really easy to install on Ubuntu.
3. Configure the bridge adapter
1) Here we use the NIC bridging method~ sudo apt-get Install bridge-utils
2) View the settings for the network card ~ ifconfig eth0 Link encap:ethernet HWaddr 00:1c:25:a1:99:fc inet addr : 192.168.1.10 bcast:192.168.1.255 mask:255.255.255.0 Inet6 addr:fe80::21c:25ff:fea1:99fc/64 scope:
max_connections=1500
The specific point is the following location:
In the Red Word special Description:
Then $NOHUP _niceness $ledir/$MYSQLD
$defaults--basedir= $MY _basedir_version
--datadir= $DATADIR $USER _option
--pid-file= $pid _file
--skip-external-locking
-O max_connections=1500
>> $err _log 2>1 Else
Eval "$NOHUP _niceness $ledir/$MYSQLD
$defaults--basedir= $MY _basedir_version
--datadir
This time the server crashes 2 times, has not found the reason, today to see the forum sent the wrong message, think of may be the default number of MySQL connection problems, a check sure enough, God, the default connection number is only 100, how enough ah, on the internet for half a day of information, There are said to modify the MY.CNF, there is said to modify the Safe_mysqld, tried, the former useless, the latter file can not find: The original version is different from the current version
This time the server crashes 2 times, has not found the reason, today to see the forum sent the wrong message, think of may be the default number of MySQL connection problems, a check sure enough, God, the default connection number is only 100, how enough ah, on the internet for half a day of information, There are said to modify the MY.CNF, there is said to modify the Safe_mysqld, tried, the former useless, the latter file can not find: The original version is different from the current version
Label:1. Select * from EMP;2. Select Empno, ename, job from EMP;3. Select empno number, ename name, job work from EMP;4. Select Job from EMP;5. Select distinct job from EMP;6. Select distinct empno, job from EMP;Description: Because the employee number is not duplicated, it proves that all columns are not duplicated at this time, so duplicate columns cannot be eliminated.7. Check out the employee's number, name, and work, but the format shown: number is: 7369 employee, name is: Smith, work is: c
as y=0, that is, in the case of you, the y=2 table is the two digits after the decimal point23, according to the number of working years to find out the name and age of each employeeSelect ename, HireDate feom emp ORDER by HireDate;Select ename, HireDate feom emp order by 2; Where 2 represents the second column, which is HireDate24, to find out the number of years of work per employee, the number of years in reverse order dataSelect Ename, Rount ((sysdate-hiredate)/365,0) from emp Order by Roun
MySQL tutorialDuring this time, the server crashed twice and no reason was found. I saw an error message email sent from the Forum today, remembering the problem that may be caused by the default connections of mysql, the default number of connections is only 100. How can this problem be solved? I found some information on the Internet for half a day and said I should modify my. for cnf, it is said to modify safe_mysqld and try again. The former is useless,
The latter file cannot be found: the o
Scrapy Installation Introduction, scrapy Installation
I. Scrapy Introduction
Scrapy is a fast high-level screen scraping and web crawler framework, used to crawl websites and extract structured data from their pages. it can be used for a wide range of purposes, from data mining to monitoring and automatic testing.
Official homepage: http://www.scrapy.org/
Ii. Install Python2.7
Official homepage: http://www.python.org/
: Http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi
1)Install python
Ins
In Linux, how does one modify the default connections of MySQL5.0? the server crashes twice, but no reason is found. I saw an error message email sent by the forum today, remembering that it may be caused by the default connections of mysql, check it out. my god, the default number of connections is only 100. how can this problem be solved? I found some information on the Internet for a long time and said I had to modify my account. for cnf, it is said to modify safe_mysqld and try again. The fo
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.