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

centos_7 mariadb 的最大连接数max_connections修改

一二三5年前 (2020-12-05)Centos761
输入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';

就看到改变了


扫描二维码至手机访问

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

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

分享给朋友:

相关文章

Centos7 安装nginx服务

1、安装前准备:yum install yum-utils2、配置nginx源vim /etc/yum.repos.d/nginx.repo[nginx-stable] name=nginx&nbs...

nginx常用内置变量

$args #请求中的参数值$query_string #同 $args$arg_NAME #GET请求中NAME的值$is_args #如果请求中有参数,值为"?",否则为空字符...

Centos修改MTU(巨型帧)

ifconfig eth1 mtu 9000 up      //执行命令后,实时生效。重启失效。MTU=&q...

Centos7 LVS+Keepalived+Nginx基于DR模式构建高可用方案

Centos7 LVS+Keepalived+Nginx基于DR模式构建高可用方案

1、准备机器名称网卡0网卡1VIPlvsmaster192.218.92.185(网关:192.218.92.1)10.88.1.20(无网关)内网通信使用192.218.92.187lvsbacku...

Nginx SSL配置协议

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

Centos7 mariadb 10.5集群式部署常见故障处理

Centos7 mariadb 10.5集群式部署常见故障处理

1、It may not be safe to bootstrap the cluster from this node. It was not the last one一、故障现象查看mysql错误...