目前我用这个
new String(com.sun.org.apache.xml.internal.security.utils.Base64.decode(data))
目前我用这个
new String(com.sun.org.apache.xml.internal.security.utils.Base64.decode(data))
vi /etc/sysconfig/iptables
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
service iptables restart
//永久的开放一个端口
sudo firewall-cmd --zone=public --add-port=3000/tcp --permanent
//永久的开放一段端口
sudo firewall-cmd --zone=public --add-port=10001-11999/tcp --permanent
sudo firewall-cmd --reload
//检查防火墙状态
firewall-cmd --state
firewall-cmd --list-all
//Disable firewall
systemctl disable firewalld
systemctl stop firewalld
systemctl status firewalld
//Enable firewall
systemctl enable firewalld
systemctl start firewalld
systemctl status firewalld
如果设置my.cnf文件不起作用,就用sql语句来修改吧
#查询最大连接数
show variables like '%max_connections%';
#设置最大连接数
set GLOBAL max_connections=800;
#查询当前连接进程
show full processlist;
select SUBSTRING_INDEX(host,':',1) as ip , count(*) from information_schema.processlist group by ip;