./ifcfg-eth0: line 8: unexpected EOF while looking for matching `"' ./ifcfg-eth0: line 11: syntax error: unexpected end of file Shutting down interface eth0: /etc/sysconfig/network-scripts/ifcfg-eth0: line 8: unexpected EOF while looking for matching `

jike_1003560 CloudStack 基础安装... 最后由 上海小胖 于2016年10月17日回复

  • 1 回答
  • 2k 浏览

./ifcfg-eth0: line 8: unexpected EOF while looking for matching `"'

./ifcfg-eth0: line 11: syntax error: unexpected end of file

Shutting down interface eth0:  /etc/sysconfig/network-scripts/ifcfg-eth0: line 8: unexpected EOF while looking for matching `"'

/etc/sysconfig/network-scripts/ifcfg-eth0: line 11: syntax error: unexpected end of file

/etc/sysconfig/network-scripts/ifcfg-eth0: line 8: unexpected EOF while looking for matching `"'

/etc/sysconfig/network-scripts/ifcfg-eth0: line 11: syntax error: unexpected end of file

/etc/sysconfig/network-scripts/ifcfg-eth0: line 8: unexpected EOF while looking for matching `"'

/etc/sysconfig/network-scripts/ifcfg-eth0: line 11: syntax error: unexpected end of file

/etc/sysconfig/network-scripts/ifcfg-eth0: line 11: warning: syntax errors in . or eval will cause future versions of the shell to abort as Posix requires

/etc/sysconfig/network-scripts/ifcfg-eth0: line 8: unexpected EOF while looking for matching `"'

/etc/sysconfig/network-scripts/ifcfg-eth0: line 11: syntax error: unexpected end of file

/etc/sysconfig/network-scripts/ifcfg-eth0: line 11: warning: syntax errors in . or eval will cause future versions of the shell to abort as Posix requires

                                                           [  OK  ]

Shutting down loopback interface:                          [  OK  ]

Bringing up loopback interface:                            [  OK  ]

Bringing up interface eth0:  /etc/sysconfig/network-scripts/ifcfg-eth0: line 8: unexpected EOF while looking for matching `"'

/etc/sysconfig/network-scripts/ifcfg-eth0: line 11: syntax error: unexpected end of file

/etc/sysconfig/network-scripts/ifcfg-eth0: line 8: unexpected EOF while looking for matching `"'

/etc/sysconfig/network-scripts/ifcfg-eth0: line 11: syntax error: unexpected end of file

/etc/sysconfig/network-scripts/ifcfg-eth0: line 8: unexpected EOF while looking for matching `"'

/etc/sysconfig/network-scripts/ifcfg-eth0: line 11: syntax error: unexpected end of file

/etc/sysconfig/network-scripts/ifcfg-eth0: line 11: warning: syntax errors in . or eval will cause future versions of the shell to abort as Posix requires

/etc/sysconfig/network-scripts/ifcfg-eth0: line 8: unexpected EOF while looking for matching `"'

/etc/sysconfig/network-scripts/ifcfg-eth0: line 11: syntax error: unexpected end of file

/etc/sysconfig/network-scripts/ifcfg-eth0: line 11: warning: syntax errors in . or eval will cause future versions of the shell to abort as Posix requires

./ifcfg-eth0: line 8: unexpected EOF while looking for matching `"'

./ifcfg-eth0: line 11: syntax error: unexpected end of file

这是ifcfg-eth0,到底哪里错了呢

DEVICE="eth0"

BOOTPROTO="static"

HWADDR="00:0C:29:85:DA:9A"

IPV6INIT="yes"

NM_CONTROLLED="no"

ONBOOT="yes"

TYPE="Ethernet"

UUID="e097f982-b1ca-4395-a9f8-5fe9629995f7

IPADDR=192.168.1.150

NETMASK=255.255.255.0

  • 上海小胖 2016年10月17日 回答 #1楼
  • 同学你好。

    我已经看到错误了。你看他的报错哦。说第九行有问题

    21hyxawq5gbo4.png

    少了一个双引号看到伐

  • 0 评论