我是第一次 Build GCE v1实例 . 到目前为止,我已经使用过beta .
在设置我的第一个Debian Wheezy服务器后,使用默认网络设置(default-allow-internal,default-ssh,external-web,test8443),我启动它并尝试SSH进入它 .
$ gcutil --service_version =“v1” - project =“project name”ssh --zone =“us-central1 -a”“hostname”
错误:[Errno 61]连接被拒绝
$ gcutil版本1.13.0
查看实例控制台,我看到了google-startup-scripts错误 .
12月22日07:48:38 saas-prototype-v1 ntpd [1981]:在fd#20上侦听路由套接字以进行接口更新[....]启动OpenBSD Secure Shell服务器:sshd [?25l [?1c7 [1G [ [32m ok [39; 49m8 [?25h [?0c .
12月22日07:48:38 saas-prototype-v1 startupscript:运行启动脚本/var/run/google.startup.script
12月22日07:48:38 saas-prototype-v1 startupscript:完成运行启动脚本/var/run/google.startup.script [....] startpar:service(s)返回失败:google-address-manager google google -startup-scripts ... [?25l [?1c7 [1G [[31mFAIL [39; 49m8 [?25h [?0c [31mfailed![39; 49m]
INIT:此运行级别中不再有进程
12月22日07:48:38 saas-prototype-v1 init:此运行级别中没有剩余进程
是什么导致了这个?我创建的v1实例都不可用 . 要连接到beta实例,我必须专门指向beta gcutil可执行文件以连接到beta实例 . 我处于尴尬状态 .
1 回答
我也有启动脚本的问题 .
1月3日17:21:45 withstartupscript startupscript:运行启动脚本/var/run/google.startup.script 1月3日17:21:45 withstartupscript startupscript:完成运行启动脚本/var/run/google.startup.script [.. ..] startpar:服务返回失败:google-address-manager google google-startup-scripts ... [?25l [?1c7 [1G [[31mFAIL [39; 49m8 [?25h [?0c [31mfailed! [39;49米
....
好了很多重启实例linux后,非常快速的重启,问题是启动脚本应该是一个文本文件!不是bash脚本,而是文本文件 .
Google Developers Console在实例名称下有自定义元数据字段 . 添加一个“启动脚本”键并放置任何代码进行测试,您可以重新启动实例并检查它是否有效 .