服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|系统进程|Fedora|注册表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服务器之家 - 服务器系统 - Centos - Centos5.2配置LAMP与Centos5.3配置LAMP(34)

Centos5.2配置LAMP与Centos5.3配置LAMP(34)

2019-10-11 14:12Centos教程网 Centos

搜索找到下面一行: {max_connections, OPT_MAX_CONNECTIONS, The number of simultaneous clients allowed., (gptr*) max_connections, (gptr*) max_connections, 0, GET_ULONG, REQUIRED_ARG, 100, 1, 16

搜索找到下面一行: 
{"max_connections", OPT_MAX_CONNECTIONS, 
"The number of simultaneous clients allowed.", (gptr*) &max_connections, 
(gptr*) &max_connections, 0, GET_ULONG, REQUIRED_ARG, 100, 1, 16384, 0, 1, 
0}, 
将其中的100改为1500, 当然小点也可以,根据你的需要来,不建议改的太大。 
{"max_connections", OPT_MAX_CONNECTIONS, 
"The number of simultaneous clients allowed.", (gptr*) &max_connections, 
(gptr*) &max_connections, 0, GET_ULONG, REQUIRED_ARG, 1500, 1, 16384, 0, 1, 
0}, 
保存。 
# CHOST="i686-pc-linux-gnu" CFLAGS="-O3 -msse2 -mmmx -Wall -W -mfpmath=sse -mcpu=pentium4 -march=pentium4 -pipe -fomit-frame-pointer" CXXFLAGS="-O3 -msse2 -mmmx -Wall -W -mfpmath=sse -funroll-loops -mcpu=pentium4 -march=pentium4 -pipe -felide-constructors -fno-exceptions -fno-rtti -fomit-frame-pointer" ./configure --prefix=/usr/local/mysql --localstatedir=/var/lib/mysql --with-comment=Source --with-server-suffix=-enterprise-gpl --with-mysqld-user=mysql --without-debug --with-big-tables --with-charset=utf8 --with-collation=utf8_general_ci --with-extra-charsets=gbk,latin1 --with-pthread --enable-static --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --enable-assembler --without-innodb --without-ndb-debug --without-isam --enable-local-infile --with-readline --with-raid 
配置成功会提示: 
MySQL has a Web site at http://www.mysql.com/ which carries details on the 
latest release, upcoming features, and other information to make your 
work or play with MySQL more productive. There you can also find 
information about mailing lists for MySQL discussion. 
Remember to check the platform specific part of the reference manual for 

延伸 · 阅读

精彩推荐