Invalid HTTP_HOST header: '192.168.56.100:8888'. You may need to add '192.168.56.100' to ALLOWED_HOSTS. 无效的HTTP_主机头:"192.168.56.100:8888".您可能需要将"192.168.56.100"添加到允许的\u主机. 在ALLOWED_HOSTS = ['']加""号
解决思路: 1.首先用主机ping下虚拟机IP,看是否能ping通 2.如果ping不通就看虚拟机防火墙是否开启,service iptables status [root@mysql ~]# service iptables statusiptables: Firewall is not running. 上图提示,防火墙才是关闭状态,如果不是上面提示,就执行命令 service iptables stop(临时关闭防火墙) chkconfig iptables off(永久关闭防火墙) 3.
安装完成Vm,Centos6.5,设置了网络: 1.VM虚拟网络,采用桥接模式. 2.Centos里各种 设置ifcfg-eth0中的GETWAY,ADDIP等等 vim /etc/sysconfig/network-scripts/ifcfg-eth0 设置network中的GETWAY,HOSTNAME, vim /etc/sysconfig/network 修改DNS vim /etc/resolv.conf 然后各种重启停用 网络 service network restart 系统 s