Centos7下永久修改mysql5 6最大連線數

2021-08-17 11:18:15 字數 463 閱讀 3600

網上看了好多的文章,教程都未能生效。

1、安裝好mysql服務

2、編輯mysql配置檔案

vim /etc/my.cnf
3、在[mysqld]分段下新增一行:

max_connections=10000
5、在檔案尾部新增2行:

limitnofile=65535

limitnproc=65535

6、重啟使mysql配置生效

systemctl daemon-reload

systemctl restart mysqld.service

7、檢視mysql最大連線數

select @@max_connections;
正常情況應顯示為10000

centos7下永久修改hostname

centos7 裡面修改hostname的方式有所改變,修改 etc hosts和 etc sysconfig network兩個檔案已經不能生效。使用的新命令是 bash shell hostnamectl set hostname centos7 shell su shell hostname ...

centos7如何永久修改別名?

centos7如何永久修改別名?eg 讓rm命令等價echo command not exec 第乙個里程 編寫profile檔案 vi etc profile alias rm echo command exec 第二個里程 載入profile檔案內容 source etc profile 補充 ...

centos7臨時修改IP 永久修改IP

ifconfig eno16777736 192.168.1.101 注意 eno16777736 是預設第乙個網路介面名稱 第一步 檢視網路介面 ifconfig 第二步 去對應的網路介面配置檔案修改配置,注意檔名稱是 ifcfg 預設第乙個網路介面名稱 檔案路徑是 etc sysconfig n...