开启远程访问: GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION; 允许任何ip以root用户登录 flush privileges;立即生效 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙.1.关闭firewall:systemctl stop firewalld.servicesystemctl disable firewalld.ser
转自官方网页:http://www.firewalld.org/documentation/howto/open-a-port-or-service.html How to open port 80/tcp with firewall-cmd: firewall-cmd --permanent --zone=public --add-port=/tcp 重启后才能生效 Reload firewalld firewall-cmd --reload