当前位置:首页 > 服务器系统 > Centos > 正文内容

centos_7 mariadb 的最大连接数max_connections修改

一二三5年前 (2020-12-05)Centos646
输入show variables like 'max_connections';

一、修改mariadb.service
vim /usr/lib/systemd/system/mariadb.service
在[Service]下面加入以下内容

LimitNOFILE=10000
LimitNPROC=10000

二、修改/etc/my.cnf
vim /etc/my.cnf
在[mysqld]下,加入以下内容

max_connections=4096

输入show variables like 'max_connections';

就看到改变了


扫描二维码至手机访问

扫描二维码推送至手机访问。

版权声明:本文由一二三博客发布,如需转载请注明出处。

分享给朋友:

相关文章

MYSQL 查看最大连接数和修改最大连接数

MySQL查看最大连接数和修改最大连接数1、查看最大连接数show variables like '%max_connections%';2、修改最大连接数set GLOBAL max...

centos_7 mariadb 优化参数

最大链接数 输入show variables like 'max_connections';一、修改mariadb.service vim ...

CentOS7双网关双IP配置

CentOS7双网关双IP配置

eth0:10.88.1.22  gw :10.88.1.1    netmask:255.255.255.0eth1:10.77.1.22  gw :10.77.1.200&nb...

CentOS7 配置163 yum源

1、下载repo文件 wget http://mirrors.163.com/.help/CentOS7-Base-163.repo2、备份并替换系统的repo文件 cp Cent...

Nginx SSL配置协议

upstream web_backends_80 {   ip_hash; #每个请求按访问ip的hash结果分配可以解决session的问题。...

Centos 同步网络时间

Centos 同步网络时间yum install ntpdate -yntpdate ntp1.aliyun.com...