CentOS7:开启端口firewall-cmd --zone=public --add-port=80/tcp --permanent
重启防火墙firewall-cmd --reload
命令查询端口1000开放:firewall-cmd --permanent --query-port=1000/tcp
开放远程数据库:
- grant all privileges on *.* to 'root'@'%' identified by 'root';
CentOS7:开启端口firewall-cmd --zone=public --add-port=80/tcp --permanent
重启防火墙firewall-cmd --reload
命令查询端口1000开放:firewall-cmd --permanent --query-port=1000/tcp
开放远程数据库: