<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>服务器安全维护工作室 &#187; GOOGLE COMPUTE ENGINE(GCE)注册教程</title>
	<atom:link href="https://www.fuwuqiok.com/tag/google-compute-enginegce%e6%b3%a8%e5%86%8c%e6%95%99%e7%a8%8b/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fuwuqiok.com</link>
	<description></description>
	<lastBuildDate>Sun, 01 Mar 2020 07:28:40 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.26</generator>
	<item>
		<title>GOOGLE COMPUTE ENGINE(GCE)注册教程</title>
		<link>https://www.fuwuqiok.com/google-compute-enginegce%e6%b3%a8%e5%86%8c%e6%95%99%e7%a8%8b/</link>
		<comments>https://www.fuwuqiok.com/google-compute-enginegce%e6%b3%a8%e5%86%8c%e6%95%99%e7%a8%8b/#comments</comments>
		<pubDate>Fri, 04 Aug 2017 05:35:02 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[linux代维]]></category>
		<category><![CDATA[linux服务器代维]]></category>
		<category><![CDATA[服务器代维]]></category>
		<category><![CDATA[服务器代维护]]></category>
		<category><![CDATA[网站代维]]></category>
		<category><![CDATA[GOOGLE COMPUTE ENGINE(GCE)注册教程]]></category>

		<guid isPermaLink="false">https://www.fuwuqiok.com/?p=3208</guid>
		<description><![CDATA[<p>&#160; &#160; &#160; &#160; &#160; GCE 的使用前的设置工作还是比较麻烦的 [&#8230;]</p>
<p><a rel="nofollow" href="https://www.fuwuqiok.com/google-compute-enginegce%e6%b3%a8%e5%86%8c%e6%95%99%e7%a8%8b/">GOOGLE COMPUTE ENGINE(GCE)注册教程</a>，首发于<a rel="nofollow" href="https://www.fuwuqiok.com">服务器安全维护工作室</a>。</p>
]]></description>
				<content:encoded><![CDATA[<blockquote><p>&nbsp;</p></blockquote>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621003532.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621003532.png" alt="QQ%E5%9B%BE%E7%89%8720160621003532" width="1430" height="703" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>GCE 的使用前的设置工作还是比较麻烦的，所以做了个教程说明下主要的创建流程。希望对大家有帮助。</p>
<p>请注意下面图片附带的文字说明，都是重要需要注意的地方我做了文字说明。</p>
<p>&nbsp;</p>
<h1>主要就 5 个步骤：</h1>
<ol>
<li>注册</li>
<li>创建项目</li>
<li>创建 VM
<ol>
<li>记得创建静态外网 IP</li>
</ol>
</li>
<li>防火墙设置</li>
<li>SSH 证书设置（如果对 ssh 证书不了解的需要补下课拉）</li>
</ol>
<h1>步骤 1 ：注册</h1>
<p>官网地址： <a href="https://cloud.google.com/" target="_blank">https://cloud.google.com/</a></p>
<p>点右上角的 try free 。注册需要绑信用卡，你需要个可以支付的信用卡。注册就不多说了。</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160620195812.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160620195812.png" alt="QQ%E5%9B%BE%E7%89%8720160620195812" width="1908" height="682" /></a></p>
<h1>步骤 2 ：创建项目</h1>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160620200104.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160620200104.png" alt="QQ%E5%9B%BE%E7%89%8720160620200104" width="1741" height="717" /></a></p>
<p>这里只要填项目名称就可以了，不用选高级选项。直接创建。</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201143.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201143.png" alt="QQ%E5%9B%BE%E7%89%8720160621201143" width="733" height="324" /></a></p>
<p>&nbsp;</p>
<h1>步骤 3 ：创建 VM</h1>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201229.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201229.png" alt="QQ%E5%9B%BE%E7%89%8720160621201229" width="740" height="343" /></a></p>
<p>在创建的时候，需要选地区！ asia-east 就是台湾节点拉， a ， b ， c 都是。据说 c 比较好点。</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201309.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201309.png" alt="QQ%E5%9B%BE%E7%89%8720160621201309" width="779" height="292" /></a><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201319.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201319.png" alt="QQ%E5%9B%BE%E7%89%8720160621201319" width="313" height="152" /></a></p>
<p>选机器类型，默认的是 28 美元一个月的，最低配的是 5 美元一个月。</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201355.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201355.png" alt="QQ%E5%9B%BE%E7%89%8720160621201355" width="689" height="193" /></a><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201412.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201412.png" alt="QQ%E5%9B%BE%E7%89%8720160621201412" width="354" height="437" /></a></p>
<p>选系统。 Centos6 是 6.8 需要降内核后才能装锐速。其他的系统没试过。</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201443.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201443.png" alt="QQ%E5%9B%BE%E7%89%8720160621201443" width="739" height="215" /></a><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201457.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201457.png" alt="QQ%E5%9B%BE%E7%89%8720160621201457" width="714" height="729" /></a></p>
<p>最后，需要选下网络，创建一个外网 IP</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621203657.pngresize790%2c457"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621203657.pngresize790%2c457" alt="QQ%E5%9B%BE%E7%89%8720160621203657" width="790" height="457" /></a></p>
<p>最后选择创建，就创建成功拉！</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201521.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201521.png" alt="QQ%E5%9B%BE%E7%89%8720160621201521" width="463" height="261" /></a></p>
<p>&nbsp;</p>
<h1>步骤 4 ：添加 SSH 密钥</h1>
<p>GCE 只能用 ssh 密钥来链接 ssh ，如果你不知道 ssh 密钥是什么，就需要补补课拉。我这里简单的介绍下用 Xshell5 来生成 SSH 密钥和链接。<br />
<a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201811.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621201811.png" alt="QQ%E5%9B%BE%E7%89%8720160621201811" width="1523" height="523" /></a></p>
<p>在工具菜单选择密钥生成向导</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621202312.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621202312.png" alt="QQ%E5%9B%BE%E7%89%8720160621202312" width="537" height="417" /></a></p>
<p>直接下一步</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621202331.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621202331.png" alt="QQ%E5%9B%BE%E7%89%8720160621202331" width="466" height="376" /></a></p>
<p>直接下一步</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621202344.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621202344.png" alt="QQ%E5%9B%BE%E7%89%8720160621202344" width="476" height="377" /></a></p>
<p>把私钥名称改成你容易记住的。密码可以为空，无所谓。然后直接下一步。</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621205545.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621205545.png" alt="QQ%E5%9B%BE%E7%89%8720160621205545" width="471" height="377" /></a></p>
<p>生成了公钥，请务必记录下这个公钥！！可以选择保存为文件，以便以后查找。 ssh 的公钥（放在服务器上的）和私钥（放在客户端的）是一一对应的。</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621202504.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621202504.png" alt="QQ%E5%9B%BE%E7%89%8720160621202504" width="471" height="377" /></a></p>
<p>生成完，私钥就已经在私钥管理面板了。</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621202545.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621202545.png" alt="QQ%E5%9B%BE%E7%89%8720160621202545" width="419" height="248" /></a></p>
<p>最后一步，把刚才生成的公钥复制到到 CGE 的密钥管理里面，然后在最后那个 == 号后面加上“空格 + 用户名”，这个用户名就是用来登陆 ssh 用的用户名，不能为 root</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621202946.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621202946.png" alt="QQ%E5%9B%BE%E7%89%8720160621202946" width="1193" height="414" /></a></p>
<p>在用 xshell 登陆的时候如图设置，方法选择 public key ，用户密钥选刚才生成的。</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621203029.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621203029.png" alt="QQ%E5%9B%BE%E7%89%8720160621203029" width="589" height="503" /></a><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621203102.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621203102.png" alt="QQ%E5%9B%BE%E7%89%8720160621203102" width="574" height="519" /></a></p>
<p>记得填写刚才添加 ssh 密钥时设置的用户名。</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160622100828.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160622100828.png" alt="QQ%E5%9B%BE%E7%89%8720160622100828" width="576" height="500" /></a></p>
<h1>步骤 5 ：防火墙设置</h1>
<p>完成上面的 SSH 密钥的设置， GCE 已经可以连上了，但是如果我们不设置防火墙，那 ss 之类的应用是用不了的哦。所以我们还要在防火墙上把相应的端口打开。</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621203217.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621203217.png" alt="QQ%E5%9B%BE%E7%89%8720160621203217" width="693" height="520" /></a><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621203237.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621203237.png" alt="QQ%E5%9B%BE%E7%89%8720160621203237" width="453" height="863" /></a><a href="http://www.91yun.org/wp-content/uploads/2016/06/QQ%E5%9B%BE%E7%89%8720160621203354.png"><br />
</a><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621203426.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621203426.png" alt="QQ%E5%9B%BE%E7%89%8720160621203426" width="982" height="659" /></a></p>
<p>防火墙设置主要有 2 个。 source filter 选“ allow from any source ”。以及允许的端口那填写所有端口</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621210421.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621210421.png" alt="QQ%E5%9B%BE%E7%89%8720160621210421" width="745" height="587" /></a></p>
<p><a href="http://www.91yun.org/wp-content/uploads/2016/06/QQ%E5%9B%BE%E7%89%8720160621203455.png"><br />
</a><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621203529.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160621203529.png" alt="QQ%E5%9B%BE%E7%89%8720160621203529" width="750" height="760" /></a></p>
<h1>步骤 6 ：连接 ssh 后获得 root 权限</h1>
<p>因为 GCE 不能用 root 登陆，但是我们想要用 root 咋办呢。只能登陆后用 sudo su 命令来临时切换成 root 来使用。</p>
<p><a href="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160622102050.png"><img class="attachment-medium" src="https://www.fuwuqiok.com/wp-content/uploads/2017/08/QQ%E5%9B%BE%E7%89%8720160622102050.png" alt="QQ%E5%9B%BE%E7%89%8720160622102050" width="325" height="69" /></a></p>
<p>&nbsp;</p>
<p>ok ，到这里，这台 GCE 就能正常使用了。</p>
<p><a rel="nofollow" href="https://www.fuwuqiok.com/google-compute-enginegce%e6%b3%a8%e5%86%8c%e6%95%99%e7%a8%8b/">GOOGLE COMPUTE ENGINE(GCE)注册教程</a>，首发于<a rel="nofollow" href="https://www.fuwuqiok.com">服务器安全维护工作室</a>。</p>
]]></content:encoded>
			<wfw:commentRss>https://www.fuwuqiok.com/google-compute-enginegce%e6%b3%a8%e5%86%8c%e6%95%99%e7%a8%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
