centos7 开启指定端口

  1. 打开配置文件
    vi /etc/sysconfig/iptables

  2. 添加一条规则
    -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT

  3. 重启防火墙,修改完成
    service iptables restart

关于mysql最大连接数

如果设置my.cnf文件不起作用,就用sql语句来修改吧

#查询最大连接数
show variables like '%max_connections%';
#设置最大连接数
set GLOBAL max_connections=800;
#查询当前连接进程
show full processlist;
bst g22 jinniu lilai opebet orange88 vinbet xbet yuebo zunlong shijiebei bet007 hg0088 ju111 letiantang m88 mayaba qg777 qianyiguoji sbf777 tengbohui tlc ule weilianxier waiweitouzhu xingfayule xinhaotiandi yinheyule youfayule zhongying 2018shijiebei w88 18luck 188bet beplay manbet 12bet 95zz shenbo weide1946 ca88 88bifa aomenxinpujing betway bodog bt365 bwin tongbao vwin weinisiren 88jt fenghuangyule hongyunguoji 918botiantang huanyayule jianada28 jixiangfang libo long8 hongzuyishi zuqiutouzhu