<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-426989817512984693</id><updated>2024-08-28T21:43:24.746-07:00</updated><category term="Cloud"/><category term="雲端服務"/><category term="OpenStack"/><category term="行動載具"/><category term="XperiaZ1"/><category term="linux"/><category term="ubuntu"/><category term="Aiki"/><category term="無線網路"/><title type='text'>L&#39;Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-5612078606342331823</id><published>2014-12-17T22:47:00.000-08:00</published><updated>2014-12-17T22:47:59.279-08:00</updated><title type='text'>解決 Ubuntu 安裝 Cairo-Dock 後關機按鈕失效</title><content type='html'>&lt;div style=&quot;line-height: 100%; margin-bottom: 0cm; text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=426989817512984693&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=426989817512984693&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=426989817512984693&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: #ff3333; line-height: 100%;&quot;&gt;將
&lt;/span&gt;&lt;span style=&quot;font-family: Liberation Serif, serif; line-height: 100%;&quot;&gt;&lt;span lang=&quot;en-US&quot;&gt;&lt;span style=&quot;color: #ff3333;&quot;&gt;cairo-dock
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3333; line-height: 100%;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW;&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;啟動時間設定延遲。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: AR PL UMing TW; line-height: 100%;&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;方法如下：&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-family: Liberation Serif, serif;&quot;&gt;&lt;span lang=&quot;en-US&quot; style=&quot;font-size: large;&quot;&gt;$&lt;span style=&quot;color: #ff3333;&quot;&gt;gnome-session-properties&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0cm;&quot;&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=426989817512984693&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=426989817512984693&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=426989817512984693&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;編輯&amp;nbsp;&lt;span style=&quot;font-family: Liberation Serif, serif;&quot;&gt;&lt;span lang=&quot;en-US&quot;&gt;cairo-dock&amp;nbsp;&lt;/span&gt;&lt;/span&gt;的自啟動項，&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;在「指令」行中把
&lt;span style=&quot;font-family: Liberation Serif, serif;&quot;&gt;&lt;span lang=&quot;en-US&quot;&gt;cairo-dock
&lt;/span&gt;&lt;/span&gt;改為&amp;nbsp;&lt;span style=&quot;font-family: Liberation Serif, serif;&quot;&gt;&lt;span lang=&quot;en-US&quot;&gt;&lt;span style=&quot;color: #ff3333;&quot;&gt;cairo-dock
-w 10&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0cm;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;意即
在&lt;span style=&quot;font-family: Liberation Serif, serif;&quot;&gt;&lt;span lang=&quot;en-US&quot;&gt;unity&lt;/span&gt;&lt;/span&gt;啟動完，&lt;span style=&quot;font-family: Liberation Serif, serif;&quot;&gt;&lt;span lang=&quot;en-US&quot;&gt;10&lt;/span&gt;&lt;/span&gt;秒後再啟動&lt;span style=&quot;font-family: Liberation Serif, serif;&quot;&gt;&lt;span lang=&quot;en-US&quot;&gt;cairo-dock&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0cm;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzH6pAFflb7tWMpqPyNC6KpZBjDZszPlHmvguxJFk-TsgWeBPXYQ5DmSZa-0YY7XxnPchEr4EwgHzdNTK_iY9b8psWbXH5M-MKbm0xm5DMIb-OYSdZv6-MsAnahoJVF9G9twnVlJDdvuC4/s1600/%E5%88%9D%E5%A7%8B%E5%95%9F%E5%8B%95%E7%A8%8B%E5%BC%8F%E5%81%8F%E5%A5%BD%E8%A8%AD%E5%AE%9A_045.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzH6pAFflb7tWMpqPyNC6KpZBjDZszPlHmvguxJFk-TsgWeBPXYQ5DmSZa-0YY7XxnPchEr4EwgHzdNTK_iY9b8psWbXH5M-MKbm0xm5DMIb-OYSdZv6-MsAnahoJVF9G9twnVlJDdvuC4/s1600/%E5%88%9D%E5%A7%8B%E5%95%9F%E5%8B%95%E7%A8%8B%E5%BC%8F%E5%81%8F%E5%A5%BD%E8%A8%AD%E5%AE%9A_045.png&quot; height=&quot;323&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=426989817512984693&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=426989817512984693&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=426989817512984693&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 100%; margin-bottom: 0cm;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/5612078606342331823/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/5612078606342331823' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/5612078606342331823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/5612078606342331823'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2014/12/ubuntu-cairo-dock.html' title='解決 Ubuntu 安裝 Cairo-Dock 後關機按鈕失效'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzH6pAFflb7tWMpqPyNC6KpZBjDZszPlHmvguxJFk-TsgWeBPXYQ5DmSZa-0YY7XxnPchEr4EwgHzdNTK_iY9b8psWbXH5M-MKbm0xm5DMIb-OYSdZv6-MsAnahoJVF9G9twnVlJDdvuC4/s72-c/%E5%88%9D%E5%A7%8B%E5%95%9F%E5%8B%95%E7%A8%8B%E5%BC%8F%E5%81%8F%E5%A5%BD%E8%A8%AD%E5%AE%9A_045.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-9221729133588700519</id><published>2014-01-09T18:25:00.003-08:00</published><updated>2014-01-09T19:40:49.290-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="無線網路"/><category scheme="http://www.blogger.com/atom/ns#" term="行動載具"/><title type='text'>用無線網卡架設虛擬AP</title><content type='html'>&lt;span id=&quot;docs-internal-guid-16dc3c22-79ed-e560-58f5-ba492d4ae8ff&quot; style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 19px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot;&gt;
&lt;table style=&quot;border-collapse: collapse; border: none; width: 624px;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;*&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 0px;&quot;&gt;&lt;td style=&quot;background-color: #d9ead3; border: 0px solid #000000; padding: 7px 7px 7px 7px; vertical-align: top;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;【資料來源】&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?topic_id=69356&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;https://gist.github.com/ubinix-warun/5845562&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;使用無線網卡在PC或筆電架設虛擬AP，讓支援 Wi-Fi 的手機或平板能在沒有無線基地台的地方共享上網。&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;1. 用 &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: red; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;iw&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; 檢查無線網卡是否支援AP模式。&lt;/span&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot;&gt;
&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;609&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 0px;&quot;&gt;&lt;td style=&quot;background-color: #efefef; border: 0px solid #000000; padding: 7px 7px 7px 7px; vertical-align: top;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: red; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; iw list&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Wiphy phy0&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Band 1:&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Capabilities: 0x116e&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; HT20/HT40&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SM Power Save disabled&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ---- 略----&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Minimum RX AMPDU time spacing: 8 usec (0x06)&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; HT TX/RX MCS rate indexes supported: 0-15&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Frequencies:&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; * 2412 MHz [1] (20.0 dBm)&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; * 2417 MHz [2] (20.0 dBm)&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ---- 略----&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Bitrates (non-HT):&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ---- 略----&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; * 48.0 Mbps&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; * 54.0 Mbps&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; max # scan SSIDs: 4&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: red; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Supported interface modes:&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* IBSS&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* managed&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: red; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;* AP&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;lt;&amp;lt;--- 確定無線網卡有支援AP服務&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* AP/VLAN&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* monitor&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Supported commands:&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* new_interface&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* set_interface&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ---- 略----&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* Unknown command (89)&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* connect&lt;br class=&quot;kix-line-break&quot; /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* disconnect&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;2. 安裝套件：&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;寫成 &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: red; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;apd-pkg.sh&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot;&gt;
&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;609&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 0px;&quot;&gt;&lt;td style=&quot;background-color: #f3f3f3; border: 0px solid #000000; padding: 7px 7px 7px 7px; vertical-align: top;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;#http://raspberry-at-home.com/installing-3g-modem/&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;wget http://raspberry-at-home.com/files/sakis3g.tar.gz&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;#sudo apt-get install hostapd hostapd-utils dnsmasq&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;sudo apt-get install hostapd dnsmasq&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;3. 執行 無法AP服務：&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;寫成 &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: red; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;hostapd-up.sh&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot;&gt;
&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;609&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 0px;&quot;&gt;&lt;td style=&quot;background-color: #efefef; border: 0px solid #000000; padding: 7px 7px 7px 7px; vertical-align: top;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;# 設定無線網卡的IP&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;ifconfig wlan0 &lt;span style=&quot;color: red;&quot;&gt;192.168.1.1&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;cp /etc/dnsmasq.conf /etc/dnsmasq.conf.bk&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;echo &quot;interface=wlan0&quot; &amp;gt; /etc/dnsmasq.conf&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;# 設定基地台發出&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;的&lt;/span&gt;&lt;/span&gt;IP範圍 &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;echo &quot;dhcp-range=&lt;span style=&quot;color: red;&quot;&gt;192.168.1.5,192.168.1.254,255.255.255.0&lt;/span&gt;,12h&quot; &amp;gt;&amp;gt; /etc/dnsmasq.conf&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;/etc/init.d/dnsmasq restart&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;echo &quot;interface=wlan0&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;driver=nl80211&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;ssid=xps-ubinix2&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;hw_mode=g&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;channel=6&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;macaddr_acl=0&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;auth_algs=1&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;ignore_broadcast_ssid=0&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;wpa=2&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;# 設定WPA2的密碼&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;wpa_passphrase=&lt;span style=&quot;color: red;&quot;&gt;1234567890&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;wpa_key_mgmt=WPA-PSK&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;wpa_pairwise=TKIP&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;rsn_pairwise=CCMP&quot; &amp;gt; hostapd.conf&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;#echo &quot;interface=wlan0&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;#driver=nl80211&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;#ssid=xps-ubinix&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;#channel=1&quot; &amp;gt; hostapd.conf&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;iptables -t nat -A POSTROUTING -j MASQUERADE&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;hostapd -B ./hostapd.conf&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;4. &amp;nbsp;移除無線AP服務：&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;寫成 &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: red; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; text-decoration: none; vertical-align: baseline;&quot;&gt;hostapd-dn.sh&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot;&gt;
&lt;table style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;colgroup&gt;&lt;col width=&quot;609&quot;&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 0px;&quot;&gt;&lt;td style=&quot;background-color: #efefef; border: 0px solid #000000; padding: 7px 7px 7px 7px; vertical-align: top;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;#ifconfig wlan0 192.168.1.1&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;cp /etc/dnsmasq.conf.bk /etc/dnsmasq.conf&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;#echo &quot;interface=wlan0&quot; &amp;gt; /etc/dnsmasq.conf&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;#echo &quot;dhcp-range=192.168.1.5,192.168.1.254,255.255.255.0,12h&quot; &amp;gt;&amp;gt; /etc/dnsmasq.conf&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;/etc/init.d/dnsmasq restart&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;rm hostapd.conf&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;#echo &quot;interface=wlan0&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;#driver=nl80211&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;#ssid=xps-ubinix&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;#channel=1&quot; &amp;gt; hostapd.conf&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;echo 0 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: blue; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;#iptables -t nat -A POSTROUTING -j MASQUERADE&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.15; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;killall hostapd&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/9221729133588700519/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/9221729133588700519' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/9221729133588700519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/9221729133588700519'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2014/01/ap.html' title='用無線網卡架設虛擬AP'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-449513439472455634</id><published>2014-01-08T18:13:00.001-08:00</published><updated>2014-01-08T18:34:40.262-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="XperiaZ1"/><category scheme="http://www.blogger.com/atom/ns#" term="行動載具"/><title type='text'>Sony Xperia Z1 關閉用底座充電時的投影片效果</title><content type='html'>&lt;h3 class=&quot;post-title entry-title&quot;&gt;
&lt;/h3&gt;
&lt;div class=&quot;post-header&quot;&gt;
&lt;div class=&quot;post-header-line-1&quot; style=&quot;text-align: right;&quot;&gt;
&lt;span class=&quot;post-author vcard&quot;&gt;
Posted by
&lt;span class=&quot;fn&quot;&gt;Frank Lai&lt;/span&gt;
&lt;/span&gt;
&lt;span class=&quot;post-timestamp&quot;&gt;
at
&lt;abbr class=&quot;published&quot; title=&quot;2013-12-07T12:09:00+08:00&quot;&gt;12/07/2013 12:09:00 下午&lt;/abbr&gt;
&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot; id=&quot;ext-gen2&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot; id=&quot;ext-gen2&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot; id=&quot;ext-gen2&quot;&gt;
&lt;br /&gt;
Xperia Z1 用底座充電時，會自動開始跑 slideshow，不想要這個效果，要去哪裡關掉呢？&lt;br /&gt;
&lt;br /&gt;
原本以為是設定裡的顯示或是電源管理之類的，在「顯示」裡的確有個「休眠模式」，不過的了關閉仍然是有 slideshow 效果。&lt;br /&gt;
&lt;br /&gt;
搜尋了一下，原來是要到「智慧型連線」&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjinTqrJVY4LWLR9lfwtfELmhkLvICgfbDAk-Ny4bukLFw3k7iq_XmRoRSNhmV1Mr7822mFX4tsjl5IQzShuxzuEslWKN1oiAs3iboyHOngGt0AMJGbrEMpVIdfls98x4FXzT_qwCEquUtO/s400/z1-smart.jpg&quot; height=&quot;303&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
「智慧型連線」裡面有個「充電底座 - 檢視」，裡面就是設定使用充電底座會啟動應用程式「SensMe slideshow」，把它關掉就 ok 啦&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrxH5d0aGqUBt5qM5U_hRqQimUTXQz01kbZvAslXKR0RD2mJyFnx4tOhPHkHnFFukIN4K99sxyeMTfyjNEbV08Iq0ifdaTUVgf8e4jBBJso2j6AnV2t-4mWwjnUJnIHIDhFo3Ok18o91KD/s400/z1-.jpg&quot; height=&quot;295&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
(&lt;a href=&quot;http://franks543.blogspot.tw/2013/12/sony-xperia-z1.html&quot; target=&quot;_blank&quot;&gt;文章來源&lt;/a&gt;) &lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/449513439472455634/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/449513439472455634' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/449513439472455634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/449513439472455634'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2014/01/sony-xperia-z1_1156.html' title='Sony Xperia Z1 關閉用底座充電時的投影片效果'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjinTqrJVY4LWLR9lfwtfELmhkLvICgfbDAk-Ny4bukLFw3k7iq_XmRoRSNhmV1Mr7822mFX4tsjl5IQzShuxzuEslWKN1oiAs3iboyHOngGt0AMJGbrEMpVIdfls98x4FXzT_qwCEquUtO/s72-c/z1-smart.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-6949854949314983310</id><published>2014-01-08T18:13:00.000-08:00</published><updated>2014-01-08T18:19:43.152-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="XperiaZ1"/><category scheme="http://www.blogger.com/atom/ns#" term="行動載具"/><title type='text'>Sony Xperia Z1 如何擷取畫面</title><content type='html'>&lt;h3 class=&quot;post-title entry-title&quot;&gt;
&lt;/h3&gt;
&lt;div class=&quot;post-header&quot; style=&quot;text-align: right;&quot;&gt;
&lt;div class=&quot;post-header-line-1&quot;&gt;
&lt;span class=&quot;post-author vcard&quot;&gt;
Posted by
&lt;span class=&quot;fn&quot;&gt;Frank Lai&lt;/span&gt;
&lt;/span&gt;
&lt;span class=&quot;post-timestamp&quot;&gt;
at
&lt;abbr class=&quot;published&quot; title=&quot;2013-12-07T12:14:00+08:00&quot;&gt;12/07/2013 12:14:00 下午&lt;/abbr&gt;
&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot; id=&quot;ext-gen2&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot; id=&quot;ext-gen2&quot;&gt;
兩個方法&lt;br /&gt;
&lt;br /&gt;
一個是是按下方三功能鍵右邊的切換程式，然後左下方會有個「^」展開選單，點「Active Clip」，再點擷取畫面，就可以了。這個方法的好處是擷下來可以先編輯，再選擇儲存。&lt;br /&gt;
&lt;br /&gt;
另一個就是實體按鍵組合，按著「電源」和「音量減少」數秒，畫面閃一下，就是擷取成功了。&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot; id=&quot;ext-gen2&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot; id=&quot;ext-gen2&quot;&gt;
(&lt;a href=&quot;http://franks543.blogspot.tw/2013/12/sony-xperia-z1_7.html&quot; target=&quot;_blank&quot;&gt;文章來源&lt;/a&gt;)&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/6949854949314983310/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/6949854949314983310' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/6949854949314983310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/6949854949314983310'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2014/01/sony-xperia-z1_8.html' title='Sony Xperia Z1 如何擷取畫面'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-7522163561116852090</id><published>2013-12-14T02:50:00.004-08:00</published><updated>2014-01-08T18:34:17.800-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenStack"/><category scheme="http://www.blogger.com/atom/ns#" term="雲端服務"/><title type='text'>OpenStack 雲端伺服器基本架設</title><content type='html'>&lt;div class=&quot;left side&quot;&gt;
&lt;img alt=&quot;&quot; class=&quot;spacer&quot; src=&quot;http://163.20.108.132/moodle/theme/image.php/sky_high/core/1343662654/spacer&quot; height=&quot;1&quot; title=&quot;&quot; width=&quot;1&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;right side&quot;&gt;
&lt;img alt=&quot;&quot; class=&quot;spacer&quot; src=&quot;http://163.20.108.132/moodle/theme/image.php/sky_high/core/1343662654/spacer&quot; height=&quot;1&quot; title=&quot;&quot; width=&quot;1&quot; /&gt;&lt;/div&gt;
&lt;div class=&quot;summary&quot;&gt;
&lt;div class=&quot;no-overflow&quot;&gt;
&lt;h3 class=&quot;sectionname&quot;&gt;
雲端運算&lt;/h3&gt;
雲端運算是一種 運算模式，如 運算能力，存儲，網絡和軟件資源抽象，並在遠程訪問的方式在互聯網上提供服務。一般都是類似的公用事業採取的這些服務的計費模式。可用性需求，方便的配置，動態和幾乎無限的可擴展性是 雲端運算的一些關鍵屬性。&lt;br /&gt;
一個基礎設施的安裝，使用 雲端運算模式通常被稱為“雲”。以下是在雲上的可用服務大類：&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;基礎設施服務 (&lt;b&gt;IaaS&lt;/b&gt;)&lt;/li&gt;
&lt;li&gt;平台即服務 (&lt;b&gt;PaaS&lt;/b&gt;)&lt;/li&gt;
&lt;li&gt;軟件作為一種服務 (&lt;b&gt;SaaS&lt;/b&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;sectionname&quot;&gt;
為什麼選擇OpenStack&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;summary&quot;&gt;
&lt;div class=&quot;no-overflow&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;OpenStack是一個 美國國家航空暨太空總署(&lt;span style=&quot;color: red;&quot;&gt;NASA&lt;/span&gt;) 和 &lt;span style=&quot;color: red;&quot;&gt;Rackspace&lt;/span&gt; 合作研發的雲端運算‎軟體，以Apache許可證授權，並且是一個自由軟體和開放原始碼項目。&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;可控性和靈活性：&lt;/b&gt;虛擬機支援Haper-V、Citrix XenServer、Xen、KVM、VMWare ESX、LXC、QEMU和UML。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;行業標準：&lt;/b&gt;在獲得全球各大企業支持，包括Cisco、Citrix、Dell、Intel、微軟都供獻源代碼，參與OpenStack中，全球使用Openstack技術的雲平台在不斷的上線。而 Ubuntu 在 11.04 加入 OpenStack 。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;被驗證過的軟件：&lt;/b&gt;已被全球正在運營的大型公有雲和私有雲技術所驗證過的相關軟件。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;兼容性和可連接的：&lt;/b&gt;可以使企業在未來輕易而安全的遷移到公共雲中。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;易用性：&lt;/b&gt;安裝及管理為容易。極適合公共雲及私有雲的應用。&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;sectionname&quot;&gt;
OpenStack 簡介&lt;/h3&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: x-small; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;OpenStack 提供了一個部署雲的操作平台或工具集。幫助組織運行為&lt;span style=&quot;color: red;&quot;&gt;虛擬運算&lt;/span&gt;或&lt;span style=&quot;color: red;&quot;&gt;存儲服務&lt;/span&gt;的雲，為公有雲、私有雲，也為大雲、小雲提供&lt;span style=&quot;color: red;&quot;&gt;可擴展的&lt;/span&gt;、&lt;span style=&quot;color: red;&quot;&gt;靈活&lt;/span&gt;的雲端運算。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: x-small; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: x-small; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;OpenStack 包含了一組由社群維護的開源項目，他們分別是：&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif; font-size: x-small;&quot;&gt;Nova -- 運算服務&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif; font-size: x-small;&quot;&gt;Swift -- 儲存服務&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif; font-size: x-small;&quot;&gt;Glance -- 映像服務&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif; font-size: x-small;&quot;&gt;Keystone -- 身分服務&lt;/span&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;DashBoard(Horizon) -- 網頁管理介面服務&lt;/b&gt;&lt;/span&gt;&amp;nbsp; &lt;b style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;no-overflow&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBqLuqATwbEEiW8RYLQs-6hVKqzjQubw4ZFUd9X61LfKmT4visLSwtiPshn0H6xo-sWgMXZizj_aXM_G5T2oVASJ8RvRqVcQjXID7mvj9xwNUT1wZNX0nmA2t7CdsaZPKns-mxdOv0wv1p/s1600/OpenStack%E5%90%84%E9%83%A8%E5%88%86%E9%97%9C%E7%B3%BB%E5%9C%96.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBqLuqATwbEEiW8RYLQs-6hVKqzjQubw4ZFUd9X61LfKmT4visLSwtiPshn0H6xo-sWgMXZizj_aXM_G5T2oVASJ8RvRqVcQjXID7mvj9xwNUT1wZNX0nmA2t7CdsaZPKns-mxdOv0wv1p/s1600/OpenStack%E5%90%84%E9%83%A8%E5%88%86%E9%97%9C%E7%B3%BB%E5%9C%96.png&quot; title=&quot;OpenStack各 關系圖&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;no-overflow&quot;&gt;
&lt;h3 class=&quot;sectionname&quot;&gt;
OpenStack 安裝模型&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot; tabindex=&quot;-1&quot;&gt;&lt;b&gt;單節點：&lt;/b&gt;測試用。只有一台服務器上運行的所有 NOVA 服務。&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot; tabindex=&quot;-1&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot; tabindex=&quot;-1&quot;&gt;&lt;b&gt;雙節點：&lt;/b&gt;開發環境用。雲控制器節點上運行的 nova-service，除 nova-compute，運算節點運行 nova-compute&lt;span class=&quot;alt-edited&quot;&gt;&lt;/span&gt;。客戶端電腦可以用來封裝&lt;span class=&quot;alt-edited&quot;&gt;映像&lt;/span&gt;和連接到&lt;span class=&quot;alt-edited&quot;&gt;伺服器。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot; tabindex=&quot;-1&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot; tabindex=&quot;-1&quot;&gt;&lt;span class=&quot;alt-edited&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;多節點：&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUB7NwHPvXlhukBSUrL0s9t4-T9a46Jk8HVloJeHnPZ-wpLpVxNDQBA1K94J_7WtLvH5oF7Fqxhsncgtdaq3YDFQx5rk5y4cJWkX4ZGrkZsKx_Herlx2O6AyJZs0dptNCfhsSgDQMuQKni/s1600/%E5%A4%9A%E7%AF%80%E9%BB%9E%E9%9B%B2-1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUB7NwHPvXlhukBSUrL0s9t4-T9a46Jk8HVloJeHnPZ-wpLpVxNDQBA1K94J_7WtLvH5oF7Fqxhsncgtdaq3YDFQx5rk5y4cJWkX4ZGrkZsKx_Herlx2O6AyJZs0dptNCfhsSgDQMuQKni/s640/%E5%A4%9A%E7%AF%80%E9%BB%9E%E9%9B%B2-1.png&quot; height=&quot;312&quot; title=&quot;多節點雲1&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdzCCr3k4xOoxLqGjqzE7iOBRFSGDKwW0bhRM8iKwdQSMlaYx7V-Wnh4PX6J6cOWj5341w7qqm1SjOe7hswDT06jdxdvlW_hDQF7rMqRup6RlUXGX8GZ2EzNjWjuq9g4CkfABWfHsZxa2u/s1600/%E5%A4%9A%E7%AF%80%E9%BB%9E%E9%9B%B2-2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdzCCr3k4xOoxLqGjqzE7iOBRFSGDKwW0bhRM8iKwdQSMlaYx7V-Wnh4PX6J6cOWj5341w7qqm1SjOe7hswDT06jdxdvlW_hDQF7rMqRup6RlUXGX8GZ2EzNjWjuq9g4CkfABWfHsZxa2u/s640/%E5%A4%9A%E7%AF%80%E9%BB%9E%E9%9B%B2-2.png&quot; height=&quot;444&quot; title=&quot;多節點雲2&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;h3 class=&quot;sectionname&quot;&gt;
OpenStack 單(雙)節點架構配置&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&amp;nbsp;一、架構：單（雙）節點&lt;/b&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5vUjeHiyK4XvMifRMoQD2GhRpdu8Lbzj3EqQ0AJgCX-l_MQCHRD5OCWLlOOu8Y4fbiG_RghyKHEZ6-WWY2Gf7dNp4lIYODw4zfIjhC4sgDX5XJK8FJh18LCEDHmrg9d53iu-aRECt7M7C/s1600/OpenStack+Setup.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5vUjeHiyK4XvMifRMoQD2GhRpdu8Lbzj3EqQ0AJgCX-l_MQCHRD5OCWLlOOu8Y4fbiG_RghyKHEZ6-WWY2Gf7dNp4lIYODw4zfIjhC4sgDX5XJK8FJh18LCEDHmrg9d53iu-aRECt7M7C/s640/OpenStack+Setup.png&quot; height=&quot;256&quot; title=&quot;Openstack 設定&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;no-overflow&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt; 二、配置&amp;nbsp; &lt;/b&gt;&lt;br /&gt;
&lt;table border=&quot;2&quot; cellpadding=&quot;4&quot; cellspacing=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td width=&quot;13%&quot;&gt;&lt;/td&gt;
&lt;td style=&quot;background-color: lavender;&quot;&gt;&lt;div align=&quot;CENTER&quot;&gt;
&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Server1&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;(本次研習範圍)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;background-color: lavender;&quot;&gt;&lt;div align=&quot;CENTER&quot;&gt;
&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Server2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;background-color: lavender;&quot;&gt;&lt;div align=&quot;CENTER&quot;&gt;
&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Client1&lt;br /&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;(本次研習範圍)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;background-color: lavender;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;功能&lt;/span&gt;&lt;/td&gt;
&lt;td valign=&quot;TOP&quot; width=&quot;29%&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;OpenStack&lt;/span&gt;&lt;/span&gt;裡的所有組件，包括 &lt;span style=&quot;font-family: AR PL UMing TW, serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;nova-compute&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style=&quot;background-color: #e2dee0;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;nova-compute&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td valign=&quot;TOP&quot; width=&quot;29%&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Client&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;background-color: lavender;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;網絡接口&lt;/span&gt;&lt;/td&gt;
&lt;td style=&quot;background-color: #ccffff; width: 29%;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;eth0 - &lt;/span&gt;&lt;/span&gt;公用&lt;span style=&quot;font-family: AR PL UMing TW, serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;text-decoration: line-through;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;eth1 - &lt;/span&gt;&lt;/span&gt;私用&lt;/span&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style=&quot;background-color: #e2dee0;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;eth0 - &lt;/span&gt;&lt;/span&gt;公用&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;eth1 - &lt;/span&gt;&lt;/span&gt;私用&lt;span style=&quot;font-family: AR PL UMing TW, serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style=&quot;background-color: #ccffff; width: 29%;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;eth0 - &lt;/span&gt;&lt;/span&gt;公用&lt;span style=&quot;font-family: AR PL UMing TW, serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;background-color: lavender;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;IP &lt;/span&gt;&lt;/span&gt;地址&lt;/span&gt;&lt;/td&gt;
&lt;td valign=&quot;TOP&quot; width=&quot;29%&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;eth0 – &lt;span style=&quot;color: red;&quot;&gt;10.231.x.x&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;text-decoration: line-through;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;eth1 – 192.168.3.1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style=&quot;background-color: #e2dee0;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;eth0 – &lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;10.231.x.x&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;eth1 – 192.168.3.2&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td valign=&quot;TOP&quot; width=&quot;29%&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;eth0 – &lt;span style=&quot;color: red; font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;10.231.x.x&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;background-color: lavender;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;主機&lt;/span&gt;&lt;/td&gt;
&lt;td style=&quot;background-color: #ccffff; width: 29%;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;server1.example.com&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style=&quot;background-color: #e2dee0;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;server2.example.com&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style=&quot;background-color: #ccffff; width: 29%;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;client.example.com&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;background-color: lavender;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;DNS &lt;/span&gt;&lt;/span&gt;伺服器&lt;/span&gt;&lt;/td&gt;
&lt;td style=&quot;width: 15%;&quot;&gt;&lt;span style=&quot;color: red; font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;163.20.108.1&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style=&quot;background-color: #e2dee0;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;163.20.108.1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style=&quot;width: 15%;&quot;&gt;&lt;span style=&quot;color: red; font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;163.20.108.1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;background-color: lavender;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;閘道器 &lt;span style=&quot;font-family: AR PL UMing TW, serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;IP&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style=&quot;background-color: #ccffff; width: 29%;&quot;&gt;&lt;span style=&quot;color: red; font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;10.231.x.254&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style=&quot;background-color: #e2dee0;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;10.231.x.254&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;td style=&quot;background-color: #ccffff; width: 29%;&quot;&gt;&lt;span style=&quot;font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: red; font-family: AR PL UMing TW, serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;10.231.x.254&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3 class=&quot;sectionname&quot;&gt;
雲伺服器安裝&lt;/h3&gt;
&lt;ul class=&quot;section img-text&quot;&gt;
&lt;li class=&quot;activity page modtype_page&quot; id=&quot;module-6&quot;&gt;&lt;div class=&quot;mod-indent&quot;&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=426989817512984693#editor/target=post;postID=2358707382681522901;onPublishedMenu=allposts;onClosedMenu=allposts;postNum=0;src=postname&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;instancename&quot;&gt;Ubuntu 12.04 Server 系統安裝&lt;span class=&quot;accesshide &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;activity page modtype_page&quot; id=&quot;module-7&quot;&gt;&lt;div class=&quot;mod-indent&quot;&gt;
&lt;span class=&quot;instancename&quot;&gt;&lt;a href=&quot;http://lin-blog-1.blogspot.tw/2013/12/openstack.html&quot; target=&quot;_blank&quot;&gt;建立 OpenStack 資料庫&lt;/a&gt;&lt;span class=&quot;accesshide &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;activity page modtype_page&quot; id=&quot;module-8&quot;&gt;&lt;div class=&quot;mod-indent&quot;&gt;
&lt;span class=&quot;instancename&quot;&gt;&lt;a href=&quot;http://lin-blog-1.blogspot.tw/2013/12/keystone.html&quot; target=&quot;_blank&quot;&gt;Keystone&lt;/a&gt;&lt;span class=&quot;accesshide &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;activity page modtype_page&quot; id=&quot;module-9&quot;&gt;&lt;div class=&quot;mod-indent&quot;&gt;
&lt;span class=&quot;instancename&quot;&gt;&lt;a href=&quot;http://lin-blog-1.blogspot.tw/2013/12/glance.html&quot; target=&quot;_blank&quot;&gt;Glance&lt;/a&gt;&lt;span class=&quot;accesshide &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;activity page modtype_page&quot; id=&quot;module-10&quot;&gt;&lt;div class=&quot;mod-indent&quot;&gt;
&lt;span class=&quot;instancename&quot;&gt;&lt;a href=&quot;http://lin-blog-1.blogspot.tw/2013/12/nova.html&quot; target=&quot;_blank&quot;&gt;Nova&lt;/a&gt;&lt;span class=&quot;accesshide &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;activity page modtype_page&quot; id=&quot;module-11&quot;&gt;&lt;div class=&quot;mod-indent&quot;&gt;
&lt;span class=&quot;instancename&quot;&gt;&lt;a href=&quot;http://lin-blog-1.blogspot.tw/2013/12/swift.html&quot; target=&quot;_blank&quot;&gt;Swift&lt;/a&gt;&lt;span class=&quot;accesshide &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;activity page modtype_page&quot; id=&quot;module-12&quot;&gt;&lt;div class=&quot;mod-indent&quot;&gt;
&lt;a href=&quot;http://lin-blog-1.blogspot.tw/2013/12/openstack-dashboard.html&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;instancename&quot;&gt;OpenStack Dashboard&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;sectionname&quot;&gt;
客戶端（Client1）&lt;/h3&gt;
&lt;div class=&quot;summary&quot;&gt;
&lt;div class=&quot;no-overflow&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;客戶端用來連線到雲端伺服器，使用雲端資源，開發者可以用來做遠程管理雲端伺服器、封裝映像檔。&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ul class=&quot;section img-text&quot;&gt;
&lt;li class=&quot;activity page modtype_page&quot; id=&quot;module-13&quot;&gt;&lt;div class=&quot;mod-indent&quot;&gt;
&lt;a href=&quot;http://lin-blog-1.blogspot.tw/2013/12/ubuntu-1204-desktop.html&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;instancename&quot;&gt;Ubuntu 12.04 Desktop 系統安裝&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;activity page modtype_page&quot; id=&quot;module-14&quot;&gt;&lt;div class=&quot;mod-indent&quot;&gt;
&lt;a href=&quot;http://lin-blog-1.blogspot.tw/2013/12/openstack_13.html&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;instancename&quot;&gt;安裝 OpenStack 管理工具&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;sectionname&quot;&gt;
使用 OpenStack Dashboard 管理雲端&lt;/h3&gt;
&lt;ul class=&quot;section img-text&quot;&gt;
&lt;li class=&quot;activity page modtype_page&quot; id=&quot;module-17&quot;&gt;&lt;div class=&quot;mod-indent&quot;&gt;
&lt;span class=&quot;instancename&quot;&gt;&lt;a href=&quot;http://lin-blog-1.blogspot.tw/2013/12/openstack_564.html&quot; target=&quot;_blank&quot;&gt;連線到 OpenStack&lt;/a&gt;&lt;span class=&quot;accesshide &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;activity page modtype_page&quot; id=&quot;module-18&quot;&gt;&lt;div class=&quot;mod-indent&quot;&gt;
&lt;a href=&quot;http://lin-blog-1.blogspot.tw/2013/12/blog-post_13.html&quot; target=&quot;_blank&quot;&gt;&lt;/a&gt;&lt;span class=&quot;instancename&quot;&gt;&lt;a href=&quot;http://lin-blog-1.blogspot.tw/2013/12/blog-post_13.html&quot; target=&quot;_blank&quot;&gt;設定防火牆&lt;/a&gt;&lt;span class=&quot;accesshide &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;activity page modtype_page&quot; id=&quot;module-19&quot;&gt;&lt;div class=&quot;mod-indent&quot;&gt;
&lt;a href=&quot;http://lin-blog-1.blogspot.tw/2013/12/ip.html&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;instancename&quot;&gt;為執行個體配置公用 IP&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 class=&quot;sectionname&quot;&gt;
OpenStack 映像管理&lt;/h3&gt;
&lt;ul class=&quot;section img-text&quot; id=&quot;yui_3_13_0_2_1386900952162_335&quot;&gt;
&lt;li class=&quot;activity url modtype_url &quot; id=&quot;module-1436&quot;&gt;&lt;div id=&quot;yui_3_13_0_2_1386900952162_334&quot;&gt;
&lt;div class=&quot;mod-indent-outer&quot; id=&quot;yui_3_13_0_2_1386900952162_333&quot;&gt;
&lt;div id=&quot;yui_3_13_0_2_1386900952162_332&quot;&gt;
&lt;div class=&quot;activityinstance&quot; id=&quot;yui_3_13_0_2_1386900952162_331&quot;&gt;
&lt;a href=&quot;http://docs.openstack.org/developer/glance/&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;instancename&quot; id=&quot;yui_3_13_0_2_1386900952162_329&quot;&gt;OpenStack Glance 官方文件&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;activity page modtype_page &quot; id=&quot;module-1437&quot;&gt;&lt;div id=&quot;yui_3_13_0_2_1386900952162_342&quot;&gt;
&lt;div class=&quot;mod-indent-outer&quot; id=&quot;yui_3_13_0_2_1386900952162_341&quot;&gt;
&lt;div id=&quot;yui_3_13_0_2_1386900952162_340&quot;&gt;
&lt;div class=&quot;activityinstance&quot; id=&quot;yui_3_13_0_2_1386900952162_339&quot;&gt;
&lt;a href=&quot;http://lin-blog-1.blogspot.tw/2013/12/ubuntu.html&quot; target=&quot;_blank&quot;&gt;&lt;span class=&quot;instancename&quot; id=&quot;yui_3_13_0_2_1386900952162_337&quot;&gt;封裝上傳 Ubuntu 映像檔&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/7522163561116852090/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/7522163561116852090' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/7522163561116852090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/7522163561116852090'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2013/12/openstack_14.html' title='OpenStack 雲端伺服器基本架設'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBqLuqATwbEEiW8RYLQs-6hVKqzjQubw4ZFUd9X61LfKmT4visLSwtiPshn0H6xo-sWgMXZizj_aXM_G5T2oVASJ8RvRqVcQjXID7mvj9xwNUT1wZNX0nmA2t7CdsaZPKns-mxdOv0wv1p/s72-c/OpenStack%E5%90%84%E9%83%A8%E5%88%86%E9%97%9C%E7%B3%BB%E5%9C%96.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-6551871261176349359</id><published>2013-12-13T22:03:00.002-08:00</published><updated>2014-01-08T18:34:02.252-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenStack"/><category scheme="http://www.blogger.com/atom/ns#" term="雲端服務"/><title type='text'>建立 OpenStack 資料庫</title><content type='html'>&lt;h2&gt;
建立 OpenStack 資料庫&lt;/h2&gt;
&lt;b&gt;一、安裝資料庫服務&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
1. 安裝 MySql Server&lt;b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;sudo apt-get install mysql-server python-mysqldb phpmyadmin&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
安裝時建立 root 密碼及 phpmyadmin 管理密碼為 &quot;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;mysqlpassword&lt;/span&gt;&quot;。&lt;span style=&quot;color: blue;&quot;&gt;(重要不可忘記)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
2. 變更 /etc/mysql/my.cnf 中的連結地址由 127.0.0.1 到 0.0.0.0&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;bind-address = 0.0.0.0&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
3. 重啟 Mysql-server 服務&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;sudo restart mysql&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br /&gt;
&lt;b&gt;二、建立資料庫&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
為 nova, glance 與 keystone 建立資料庫&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;b&gt;1. 建立資料庫 nova&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 60px;&quot;&gt;
(1) 建立資料庫 nova&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 96%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;sudo mysql -uroot -p&lt;span style=&quot;color: red;&quot;&gt;mysqlpassword&lt;/span&gt; -e &#39;CREATE DATABASE nova;&#39;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 60px;&quot;&gt;
(2) 建立用戶 novadbadmin&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 96%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo mysql -uroot -p&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;mysqlpassword&lt;/span&gt;&lt;/b&gt; -e &#39;CREATE USER novadbadmin;&#39;&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 60px;&quot;&gt;
(3) 賦於用戶 novadbadmin 存取 nova 資料庫權限&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 96%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;sudo mysql -uroot -p&lt;span style=&quot;color: red;&quot;&gt;mysqlpassword&lt;/span&gt; -e &quot;GRANT ALL PRIVILEGES ON nova.* TO &#39;novadbadmin&#39;@&#39;%&#39;;&quot;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 60px;&quot;&gt;
(4) 設定用戶 novadbadmin 密碼&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 96%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo mysql -uroot -p&lt;span style=&quot;color: red;&quot;&gt;mysqlpassword&lt;/span&gt; -e &quot;SET PASSWORD FOR &#39;novadbadmin&#39;@&#39;%&#39; = PASSWORD(&#39;&lt;span style=&quot;color: red;&quot;&gt;novapassword&lt;/span&gt;&#39;);&quot;&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;b&gt;&amp;nbsp; &lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;b&gt;&amp;nbsp; &lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;b&gt;2. 建立資料庫 glance&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 60px;&quot;&gt;
(1) 建立資料庫 glance&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 96%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;sudo mysql -uroot -p&lt;span style=&quot;color: red;&quot;&gt;mysqlpassword&lt;/span&gt; -e &#39;CREATE DATABASE glance;&#39;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 60px;&quot;&gt;
(2) 建立用戶 glancedbadmin&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 96%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo mysql -uroot -p&lt;span style=&quot;color: red;&quot;&gt;mysqlpassword&lt;/span&gt; -e &#39;CREATE USER glancedbadmin;&#39;&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 60px;&quot;&gt;
(3) 賦於用戶 glancedbadmin 存取&amp;nbsp;glance 資料庫權限&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 96%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo mysql -uroot -p&lt;span style=&quot;color: red;&quot;&gt;mysqlpassword&lt;/span&gt; -e &quot;GRANT ALL PRIVILEGES ON glance.* TO &#39;glancedbadmin&#39;@&#39;%&#39;;&quot;&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 60px;&quot;&gt;
(4) 設定用戶 glancedbadmin 密碼&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 96%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo mysql -uroot -p&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;mysqlpassword&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt; -e &quot;SET PASSWORD FOR &#39;glancedbadmin&#39;@&#39;%&#39; = PASSWORD(&#39;&lt;span style=&quot;color: red;&quot;&gt;glancepassword&lt;/span&gt;&#39;);&quot;&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;b&gt; &lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;b&gt; &lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;b&gt;3. 建立資料庫 keystone&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 60px;&quot;&gt;
(1) 建立資料庫 keystone&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 96%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;sudo mysql -uroot -p&lt;span style=&quot;color: red;&quot;&gt;mysqlpassword&lt;/span&gt; -e &#39;CREATE DATABASE keystone;&#39;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 60px;&quot;&gt;
(2) 建立用戶 keystonedbadmin&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 96%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo mysql -uroot -p&lt;span style=&quot;color: red;&quot;&gt;mysqlpassword&lt;/span&gt; -e &#39;CREATE USER keystonedbadmin;&#39;&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 60px;&quot;&gt;
(3) 賦於用戶 keystonedbadmin 存取 keystone 資料庫權限&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 96%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo mysql -uroot -p&lt;span style=&quot;color: red;&quot;&gt;mysqlpassword&lt;/span&gt; -e &quot;GRANT ALL PRIVILEGES ON keystone.* TO &#39;keystonedbadmin&#39;@&#39;%&#39;;&quot;&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 60px;&quot;&gt;
(4) 設定用戶 keystonedbadmin 密碼&lt;/div&gt;
&lt;b&gt;
&lt;/b&gt;&lt;b&gt;
&lt;/b&gt;&lt;b&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 96%;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;sudo mysql -uroot -p&lt;/b&gt;&lt;b&gt;&lt;b&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;mysqlpassword&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt; &lt;b&gt;-e &quot;SET PASSWORD FOR &#39;keystonedbadmin&#39;@&#39;%&#39; = PASSWORD(&#39;&lt;span style=&quot;color: red;&quot;&gt;keystonepassword&lt;/span&gt;&#39;);&quot;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/6551871261176349359/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/6551871261176349359' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/6551871261176349359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/6551871261176349359'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2013/12/openstack.html' title='建立 OpenStack 資料庫'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-2358707382681522901</id><published>2013-12-13T22:01:00.000-08:00</published><updated>2014-01-08T18:33:44.604-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenStack"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="雲端服務"/><title type='text'>Ubuntu 12.04 Server 系統安裝</title><content type='html'>&lt;h2&gt;
Ubuntu 12.04 Server 系統安裝&lt;/h2&gt;
&lt;div class=&quot;box mod_introbox&quot; id=&quot;pageintro&quot;&gt;
&lt;div class=&quot;no-overflow&quot;&gt;
&lt;b&gt;安裝版本：Ubuntu 12.04 Server amd64 版&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;檔案：ubuntu-12.04-server-amd64.iso&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;下載點：&lt;/b&gt;&lt;a href=&quot;http://www.ubuntu-tw.org/modules/tinyd0/&quot;&gt;http://www.ubuntu-tw.org/modules/tinyd0/&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;一、系統安裝：&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
1. 基本安裝。&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
2. 選取 &lt;span style=&quot;color: red;&quot;&gt;OpenSSH Server&lt;/span&gt;&amp;nbsp; 安裝。&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
3. 硬碟分割，請參考下圖：&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgpnyyEm07kKGayP7bJe1FByCm_8Y6t2IlTJNnjlA4hltHeyOvi55pa5YnohmIXGt_Zui5qG1UQ1gBIOEK8RixaWIYeFK81E5Yl38Nf_9XuDtwnb8qruV7mbSRz0TjimjwhHtsfoVBZ4Et/s1600/disk-split.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgpnyyEm07kKGayP7bJe1FByCm_8Y6t2IlTJNnjlA4hltHeyOvi55pa5YnohmIXGt_Zui5qG1UQ1gBIOEK8RixaWIYeFK81E5Yl38Nf_9XuDtwnb8qruV7mbSRz0TjimjwhHtsfoVBZ4Et/s640/disk-split.png&quot; height=&quot;155&quot; title=&quot;320GB 硬碟分割&quot; width=&quot;400&quot; /&gt; &lt;/a&gt;&lt;/div&gt;
4. 如果硬碟許可，可以再加以下2個分割區：&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;/var/lib/nova&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;/var/lib/glance&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b&gt;二、更新套件&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;sudo apt-get update&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;sudo apt-get upgrade&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;三、安裝 vim 及 bridge-utils：&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;sudo apt-get install vim ipcalc bridge-utils&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;四、 網路配置：&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
1. 編輯 /etc/network/interfaces 檔案如下：&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo vim /etc/network/interfaces&lt;br /&gt;===============================&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;auto lo&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;iface lo inet loopback&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;auto eth0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;iface eth0 inet static&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; address 10.231.x.x&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; netmask 255.255.255.0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; broadcast 10.231.x.255&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gateway 10.231.x.254&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dns-nameservers 163.20.108.1&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;# 如果只有一網卡以下不用設&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;auto eth1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;iface eth1 inet static&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; address 192.168.3.1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; netmask 255.255.255.0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; network 192.168.3.0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; broadcast 192.168.3.255&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
2.重啟網路服務&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt; sudo /etc/init.d/networking restart&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;五、時間伺服器：&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
1. 安裝時間伺服器&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;sudo apt-get install ntp&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
2. 設定雲伺服器為時間伺服器&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;sudo vim /etc/ntp.conf&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;========================&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;server ntp.ubuntu.com&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;server 127.127.1.0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;fudge 127.127.1.0 stratum 10&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
3. 重啟時間伺服器&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;$ sudo /etc/init.d/ntp restart&lt;/b&gt;&lt;/span&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/2358707382681522901/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/2358707382681522901' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/2358707382681522901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/2358707382681522901'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2013/12/ubuntu-1204-server.html' title='Ubuntu 12.04 Server 系統安裝'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgpnyyEm07kKGayP7bJe1FByCm_8Y6t2IlTJNnjlA4hltHeyOvi55pa5YnohmIXGt_Zui5qG1UQ1gBIOEK8RixaWIYeFK81E5Yl38Nf_9XuDtwnb8qruV7mbSRz0TjimjwhHtsfoVBZ4Et/s72-c/disk-split.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-1568452216113845204</id><published>2013-12-13T22:00:00.004-08:00</published><updated>2014-01-08T18:32:13.034-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenStack"/><category scheme="http://www.blogger.com/atom/ns#" term="雲端服務"/><title type='text'>Keystone</title><content type='html'>&lt;h2&gt;
Keystone&lt;/h2&gt;
&lt;b&gt;&lt;b&gt;一、安裝配置 Keystone&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
1. 安裝 Keystone&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div class=&quot;programlisting&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo apt-get install keystone python-keystone python-keystoneclient&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
2. 編輯 /etc/keystone/keystone.conf 檔，修改以下幾列：&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;admin_token = ADMIN&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;改為&lt;br /&gt;admin_token = &lt;span style=&quot;color: red;&quot;&gt;admin&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;connection = sqlite:////var/lib/keystone/keystone.db&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;改為&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;connection = &lt;span style=&quot;color: red;&quot;&gt;mysql://keystonedbadmin:&lt;span style=&quot;font-size: small;&quot;&gt;keystonepassword@10.231.x.x&lt;/span&gt;/keystone&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
3. 重啟 keystone 服務&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div class=&quot;programlisting&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo service keystone restart&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
4. &lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;同步&lt;span class=&quot;alt-edited&quot;&gt;資料庫&lt;/span&gt;：&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div class=&quot;programlisting&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo keystone-manage db_sync&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span lang=&quot;zh-TW&quot;&gt;5. &lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;&lt;span class=&quot;alt-edited&quot;&gt;匯出 &lt;/span&gt;OpenStack 工作時需要的環境變數。(&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;你也可以把&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;這些變量&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;加入&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;到&lt;span style=&quot;color: red;&quot;&gt; ~&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;/.&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;bashrc&lt;/span&gt; 檔案中的，就不必每次登入要重新滙出。)&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div class=&quot;programlisting&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;export SERVICE_ENDPOINT=&quot;http://localhost:35357/v2.0&quot; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;programlisting&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;export SERVICE_TOKEN=admin&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;b&gt;二、管理&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;1. 建立租戶：&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;(本例我們建立&lt;span style=&quot;color: red;&quot;&gt; admin, service&lt;/span&gt; 二個&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;租戶&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div class=&quot;programlisting&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone tenant-create --name admin&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;programlisting&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone tenant-create --name service&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;2. 建立使用者：&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;(本例我們建立&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;admin, nova, glance&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;及&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;swift&lt;/span&gt; 四個使用者)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div class=&quot;programlisting&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone user-create --name admin --pass admin --email admin@foobar.com&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;programlisting&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone user-create --name nova --pass nova --email nova@foobar.com&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;programlisting&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone user-create --name glance --pass glance --email glance@foobar.com&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;programlisting&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone user-create --name swift --pass swift --email swift@foobar.com&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
3. 建立角色：&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;(本例我們建立 &lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;admin&lt;/span&gt; 和 &lt;span style=&quot;color: red;&quot;&gt;Member&lt;/span&gt; 二個角色)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div class=&quot;programlisting&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone role-create --name admin&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;programlisting&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone role-create --name Member&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
4. 列出 &lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;租戶&lt;/span&gt;&lt;/span&gt;、使用者、角色：(&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;請留意 &lt;span class=&quot;atn&quot;&gt;“&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;ID&lt;/span&gt;” 的值，稍後會用它將 &lt;span style=&quot;color: red;&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;租戶&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;與&lt;span style=&quot;color: red;&quot;&gt;使用者&lt;/span&gt; 作關聯&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;。&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div class=&quot;programlisting&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;列出&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;租戶&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;programlisting&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone tenant-list&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4nChd3fJVG5FofcAkKcQ6APzs1dRFAhGROy6EdTsRA4CNnkHNn5ipjiRvNka5YuZ5ZlGGqOr-qmne3XNnpKGNL0j_VTYxWw9N_KqboPagwJ3Jj1GR_RaPeQUNy2dU1zPlJN8o3vpwPv98/s1600/tenant-list.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4nChd3fJVG5FofcAkKcQ6APzs1dRFAhGROy6EdTsRA4CNnkHNn5ipjiRvNka5YuZ5ZlGGqOr-qmne3XNnpKGNL0j_VTYxWw9N_KqboPagwJ3Jj1GR_RaPeQUNy2dU1zPlJN8o3vpwPv98/s320/tenant-list.png&quot; height=&quot;77&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;programlisting&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;列出使用者&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;programlisting&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone user-list &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSeTRUDzRYStP4Pb6cjU9vqjx5pRjjwFejoG8HvTZm73uFDuY5rxwSIlLgu8BQZnQYyizGqgeaLsKv9K37Wa_WWtFSEDV1M80qxMUZ4PMlP0_lrWCH5JtcRqqxeyToEjJgS3pzaCM5747v/s1600/user-list.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSeTRUDzRYStP4Pb6cjU9vqjx5pRjjwFejoG8HvTZm73uFDuY5rxwSIlLgu8BQZnQYyizGqgeaLsKv9K37Wa_WWtFSEDV1M80qxMUZ4PMlP0_lrWCH5JtcRqqxeyToEjJgS3pzaCM5747v/s320/user-list.png&quot; height=&quot;64&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;programlisting&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;列出角色&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;programlisting&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone role-list&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6tAnCf3owbwNvBzT0f3VDTRQF3L2rcTN-XP6omlKQr2OcEOBiYbD9nNJRJpRiQ1fmi1RPKmSgtTA4exXeDeVmys2DyFZZpzYPNk1BQe5s9EiHCkJA0NqV0J269bREawCHQg5yQreOPYSs/s1600/role-list.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6tAnCf3owbwNvBzT0f3VDTRQF3L2rcTN-XP6omlKQr2OcEOBiYbD9nNJRJpRiQ1fmi1RPKmSgtTA4exXeDeVmys2DyFZZpzYPNk1BQe5s9EiHCkJA0NqV0J269bREawCHQg5yQreOPYSs/s320/role-list.png&quot; height=&quot;79&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSeTRUDzRYStP4Pb6cjU9vqjx5pRjjwFejoG8HvTZm73uFDuY5rxwSIlLgu8BQZnQYyizGqgeaLsKv9K37Wa_WWtFSEDV1M80qxMUZ4PMlP0_lrWCH5JtcRqqxeyToEjJgS3pzaCM5747v/s1600/user-list.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;三、建立關聯&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;1. 設定使用者在&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;租戶&lt;/span&gt;&lt;/span&gt;中的角色&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;指令語法：&lt;/b&gt;keystone user-role-add --user&lt;span style=&quot;color: red;&quot;&gt; $USER_ID&lt;/span&gt; --role &lt;span style=&quot;color: red;&quot;&gt;$ROLE_ID&lt;/span&gt; --tenant_id &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;$TENANT_ID&lt;/span&gt; &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 60px;&quot;&gt;
&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;首先要從上面的列示中取得對映的 id，然後&lt;span style=&quot;color: red;&quot;&gt;使用這個 id 設定關聯&lt;/span&gt;。&lt;br /&gt;下面指令設定使用者 &lt;span style=&quot;color: red;&quot;&gt;admin&lt;/span&gt; 在&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;租戶&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;admin&lt;/span&gt; 中的角色為 &lt;span style=&quot;color: red;&quot;&gt;admin&lt;/span&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone user-role-add --user&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;7f590dc662024b168e256cea5e8ac14c&lt;/span&gt; --role&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;b21c11cc9649407d8f1c20d15587ef44&lt;/span&gt; --tenant_id&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;f4b3648c41384e6daf0d1deb20cb19a4&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 60px;&quot;&gt;
&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;下面指令設定使用者 &lt;span style=&quot;color: red;&quot;&gt;nova, glance, swift&lt;/span&gt; 在&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;租戶&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;service&lt;/span&gt; 中的角色為 &lt;span style=&quot;color: red;&quot;&gt;admin&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone user-role-add --user&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;4a4511d373514b5aaccc72f3ba9878a5&lt;/span&gt; --role&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;b21c11cc9649407d8f1c20d15587ef44&lt;/span&gt; --tenant_id &lt;span style=&quot;color: red;&quot;&gt;f9b51278f90741be9f6cd7a5e0ed5851&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone user-role-add --user&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;9e006cca99c0450a89835ff1f3de1f2f&lt;/span&gt; --role&amp;nbsp;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;b21c11cc9649407d8f1c20d15587ef44&lt;/span&gt;&lt;/span&gt; --tenant_id&amp;nbsp;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;f9b51278f90741be9f6cd7a5e0ed5851&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone user-role-add --user&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;d19bf6d3c11d409f82a26c6968159608&lt;/span&gt; --role&amp;nbsp;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;b21c11cc9649407d8f1c20d15587ef44&lt;/span&gt;&lt;/span&gt; --tenant_id&amp;nbsp;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;f9b51278f90741be9f6cd7a5e0ed5851&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 60px;&quot;&gt;
&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;Member 角色會被 &amp;nbsp;Horizon &lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;和 Swift 使用，所以也加入&amp;nbsp;&lt;span lang=&quot;zh-TW&quot; style=&quot;color: red;&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;Member&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; 相對應的關聯。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone user-role-add --user &lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;d19bf6d3c11d409f82a26c6968159608&lt;/span&gt;&lt;/span&gt; --role&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;2cf8f1716c43483ea21184d78e60b725&lt;/span&gt; --tenant_id&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;f4b3648c41384e6daf0d1deb20cb19a4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;b&gt;四、建立服務&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span lang=&quot;zh-TW&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;現在，我們需要建立&lt;span lang=&quot;zh-TW&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;必要的服務，用戶可以透過驗證使用它們。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;b&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;b&gt;&lt;br id=&quot;result_box&quot; lang=&quot;zh-TW&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;指令語法：&lt;/b&gt;keystone service-create --name &lt;span style=&quot;color: red;&quot;&gt;&amp;lt;服務名稱&amp;gt;&lt;/span&gt; --type&amp;nbsp;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;lt;服務類型&amp;gt;&lt;/span&gt;&lt;/span&gt; --description &lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;&amp;lt;服務說明&amp;gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span lang=&quot;zh-TW&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;現在，我們需要建立 nova-compute, nova-volume, glance, swift, keystone 和 ec2 等&lt;span lang=&quot;zh-TW&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;必要的服務&lt;b&gt;.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;b&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;b&gt;&lt;br id=&quot;result_box&quot; lang=&quot;zh-TW&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone service-create --name &lt;span style=&quot;color: red;&quot;&gt;nova&lt;/span&gt; --type &lt;span style=&quot;color: red;&quot;&gt;compute&lt;/span&gt; --description &lt;span style=&quot;color: red;&quot;&gt;&#39;OpenStack Compute Service&#39;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone service-create --name &lt;span style=&quot;color: red;&quot;&gt;volume&lt;/span&gt; --type &lt;span style=&quot;color: red;&quot;&gt;volume&lt;/span&gt; --description &lt;span style=&quot;color: red;&quot;&gt;&#39;OpenStack Volume Service&#39;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone service-create --name &lt;span style=&quot;color: red;&quot;&gt;glance&lt;/span&gt; --type &lt;span style=&quot;color: red;&quot;&gt;image&lt;/span&gt; --description &lt;span style=&quot;color: red;&quot;&gt;&#39;OpenStack Image Service&#39;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone service-create --name &lt;span style=&quot;color: red;&quot;&gt;swift&lt;/span&gt; --type &lt;span style=&quot;color: red;&quot;&gt;object-store&lt;/span&gt; --description &lt;span style=&quot;color: red;&quot;&gt;&#39;OpenStack Storage Service&#39;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone service-create --name &lt;span style=&quot;color: red;&quot;&gt;keystone&lt;/span&gt; --type &lt;span style=&quot;color: red;&quot;&gt;identity&lt;/span&gt; --description &lt;span style=&quot;color: red;&quot;&gt;&#39;OpenStack Identity Service&#39;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone service-create --name &lt;span style=&quot;color: red;&quot;&gt;ec2&lt;/span&gt; --type &lt;span style=&quot;color: red;&quot;&gt;ec2&lt;/span&gt; --description &lt;span style=&quot;color: red;&quot;&gt;&#39;EC2 Service&#39;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span lang=&quot;zh-TW&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;zh-TW&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;已建立的服務都將有一個唯一的 id，可以使用下面的命令取得：&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone service-list&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn2ZdKaTdWn31XuiMeJUEwB_MJ0o0GYZ5wuMY5OVFT8hfQTwVU5n6yFBzZkESKch9Ar5WgsOr2M7gIdWk1dxxmRbKdF2xFaxWuCmqJkmCgSoRdWDbGLsrBfzHQWwN5SloAQLW20JgghiJ6/s1600/service-list.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn2ZdKaTdWn31XuiMeJUEwB_MJ0o0GYZ5wuMY5OVFT8hfQTwVU5n6yFBzZkESKch9Ar5WgsOr2M7gIdWk1dxxmRbKdF2xFaxWuCmqJkmCgSoRdWDbGLsrBfzHQWwN5SloAQLW20JgghiJ6/s320/service-list.png&quot; height=&quot;68&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;五、建立端點&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
為每個已經存在的服務建立端點。&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;指令語法：&lt;/b&gt;keystone endpoint-create --region &lt;span style=&quot;color: red;&quot;&gt;&amp;lt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;&lt;span class=&quot;alt-edited&quot;&gt;區域名稱&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; --service_id &lt;span style=&quot;color: red;&quot;&gt;&amp;lt;服務 id&amp;gt;&lt;/span&gt; --publicurl &lt;span style=&quot;color: red;&quot;&gt;&amp;lt;公用 url&amp;gt;&lt;/span&gt; --adminurl&amp;nbsp;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&amp;lt;管理 url&amp;gt;&lt;/span&gt; --internalurl&amp;nbsp;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&amp;lt;內部 url&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
1. 建立一個 nova-compute 端點，執行以下命令：&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone endpoint-create --region &lt;span style=&quot;color: red;&quot;&gt;myregion&lt;/span&gt; --service_id&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;d9414adcc7484fb79f24b51f8f9a5bd5&lt;/span&gt; --publicurl &lt;span style=&quot;color: red;&quot;&gt;&#39;http://10.231.x.x:8774/v2/$(tenant_id)s&#39;&lt;/span&gt; --adminurl &lt;span style=&quot;color: red;&quot;&gt;&#39;http://10.231.x.x:8774/v2/$(tenant_id)s&#39;&lt;/span&gt; --internalurl &lt;span style=&quot;color: red;&quot;&gt;&#39;http://10.231.x.x:8774/v2/$(tenant_id)s&#39;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
2. 建立一個 nova-volume 端點，執行以下命令：&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone endpoint-create --region &lt;span style=&quot;color: red;&quot;&gt;myregion&lt;/span&gt; --service_id &lt;span style=&quot;color: red;&quot;&gt;80a01fb1514a429b9e8a9e0ec429194f&lt;/span&gt; --publicurl &lt;span style=&quot;color: red;&quot;&gt;&#39;http://10.231.x.x:8776/v1/$(tenant_id)s&#39;&lt;/span&gt; --adminurl &lt;span style=&quot;color: red;&quot;&gt;&#39;http://10.231.x.x:8776/v1/$(tenant_id)s&#39;&lt;/span&gt; --internalurl &lt;span style=&quot;color: red;&quot;&gt;&#39;http://10.231.x.x:8776/v1/$(tenant_id)s&#39;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
3. 建立一個 glance 端點，執行以下命令：&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone endpoint-create --region &lt;span style=&quot;color: red;&quot;&gt;myregion&lt;/span&gt; --service_id &lt;span style=&quot;color: red;&quot;&gt;d9414adcc7484fb79f24b51f8f9a5bd5&lt;/span&gt; --publicurl &lt;span style=&quot;color: red;&quot;&gt;&#39;http://10.231.x.x:9292/v1&#39;&lt;/span&gt; --adminurl &lt;span style=&quot;color: red;&quot;&gt;&#39;http://10.231.x.x:9292/v1&#39;&lt;/span&gt; --internalurl &lt;span style=&quot;color: red;&quot;&gt;&#39;http://10.231.x.x:9292/v1&#39;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
4. 建立一個 swift 端點，執行以下命令：&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone endpoint-create --region &lt;span style=&quot;color: red;&quot;&gt;myregion&lt;/span&gt; --service_id &lt;span style=&quot;color: red;&quot;&gt;8a5c03eee62f4a8688d0aa9dbcc55488&lt;/span&gt; --publicurl &lt;span style=&quot;color: red;&quot;&gt;&#39;http://10.231.x.x:8080/v1/AUTH_$(tenant_id)s&#39;&lt;/span&gt; --adminurl &lt;span style=&quot;color: red;&quot;&gt;&#39;http://10.231.x.x:8080/v1&#39;&lt;/span&gt; --internalurl &lt;span style=&quot;color: red;&quot;&gt;&#39;http://10.231.x.x:8080/v1/AUTH_$(tenant_id)s&#39;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
5. 建立一個 keystone 端點，執行以下命令：&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone endpoint-create --region &lt;span style=&quot;color: red;&quot;&gt;myregion&lt;/span&gt; --service_id &lt;span style=&quot;color: red;&quot;&gt;020d3b0066124b3ea280b4bc01ead324&lt;/span&gt; --publicurl &lt;span style=&quot;color: red;&quot;&gt;&#39;http://10.231.x.x:5000/v2.0&#39;&lt;/span&gt; --adminurl &lt;span style=&quot;color: red;&quot;&gt;&#39;http://10.231.x.x:35357/v2.0&#39;&lt;/span&gt; --internalurl &lt;span style=&quot;color: red;&quot;&gt;&#39;http://10.231.x.x:5000/v2.0&#39;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
6. 建立一個 ec2 端點，執行以下命令：&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 97%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;keystone endpoint-create --region &lt;span style=&quot;color: red;&quot;&gt;myregion&lt;/span&gt; --service_id &lt;span style=&quot;color: red;&quot;&gt;0605321db35941559ed5ba961327df97&lt;/span&gt; --publicurl &lt;span style=&quot;color: red;&quot;&gt;&#39;http://10.231.x.x:8773/services/Cloud&#39;&lt;/span&gt; --adminurl &lt;span style=&quot;color: red;&quot;&gt;&#39;http://10.231.x.x:8773/services/Admin&#39;&lt;/span&gt; --internalurl &lt;span style=&quot;color: red;&quot;&gt;&#39;http://10.231.x.x:8773/services/Cloud&#39;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/1568452216113845204/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/1568452216113845204' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/1568452216113845204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/1568452216113845204'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2013/12/keystone.html' title='Keystone'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4nChd3fJVG5FofcAkKcQ6APzs1dRFAhGROy6EdTsRA4CNnkHNn5ipjiRvNka5YuZ5ZlGGqOr-qmne3XNnpKGNL0j_VTYxWw9N_KqboPagwJ3Jj1GR_RaPeQUNy2dU1zPlJN8o3vpwPv98/s72-c/tenant-list.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-2552976406152395615</id><published>2013-12-13T22:00:00.003-08:00</published><updated>2014-01-08T18:31:57.817-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenStack"/><category scheme="http://www.blogger.com/atom/ns#" term="雲端服務"/><title type='text'>Glance</title><content type='html'>&lt;h2&gt;
Glance&lt;/h2&gt;
&lt;b&gt;一、安裝 Glance&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo apt-get install glance glance-api glance-client glance-common glance-registry python-glance&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;二、配置 Glance&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;Glance 預設使用 SQLite 資料庫。但也可以採用 MySQL 和 PostgreSQL 來配置 Glance。 &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;1. 開啟&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt; /etc/glance/glance-api-paste.ini&lt;/span&gt;&lt;/b&gt; 和&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt; /etc/glance/glance-registry-paste.ini&lt;/span&gt;&lt;/b&gt; 並在文件結尾，編輯以下行：&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo vim /etc/glance/glance-api-paste.ini&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo vim /etc/glance/glance-registry-paste.ini&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;修改：&lt;/b&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;admin_tenant_name = %SERVICE_TENANT_NAME% &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;admin_user = %SERVICE_USER% &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;admin_password = %SERVICE_PASSWORD% &lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;為：&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;admin_tenant_name = &lt;span style=&quot;color: red;&quot;&gt;service&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;admin_user = &lt;span style=&quot;color: red;&quot;&gt;glance &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;admin_password = &lt;span style=&quot;color: red;&quot;&gt;glance&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;2. 開啟&amp;nbsp;/etc/glance/glance-registry.conf 找到 &quot;sql_connection =&quot; 修改為如下：&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo vim &amp;nbsp;/etc/glance/glance-registry.conf &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;將&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sql_connection = sqlite:////var/lib/glance/glance.sqlite&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;修改為：&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sql_connection = &lt;span style=&quot;color: red;&quot;&gt;mysql://glancedbadmin:glancesecret@10.231.x.x/glance&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;3. 為了告訴 Glance 使用 keystone 做驗證，在檔案末尾加以下幾行。&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;[paste_deploy] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;flavor = keystone&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;4. 開啟 /etc/glance/glance-api.conf 在檔案末尾加以下幾行。&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;[paste_deploy] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;flavor = keystone&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;5. 在 MySql 資料庫建立 Glance 機碼。&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo glance-manage version_control 0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo glance-manage db_sync&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;6. 重啟 glance-api 和 glance-registry 服務。&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo restart glance-api&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo restart glance-registry&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;7. 滙出下列環境變數。&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;(&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;你也可以把&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;這些變量&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;加入&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;到&lt;span style=&quot;color: red;&quot;&gt; ~&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;/.&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;bashrc&lt;/span&gt; 檔案中的，就不必每次登入要重新滙出。)&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;export SERVICE_TOKEN=admin&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;export OS_TENANT_NAME=admin&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;export OS_USERNAME=admin&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;export OS_PASSWORD=admin&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;export OS_AUTH_URL=&quot;http://localhost:5000/v2.0/&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;export SERVICE_ENDPOINT=http://localhost:35357/v2.0&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;7. 測試 Glance 是否安裝正確，執行下面的指令。&lt;span style=&quot;color: red;&quot;&gt;（沒有消息就是好消息）&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;yui_3_13_0_2_1386995947375_24&quot;&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;glance index&lt;/span&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/2552976406152395615/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/2552976406152395615' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/2552976406152395615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/2552976406152395615'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2013/12/glance.html' title='Glance'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-3216670536939732202</id><published>2013-12-13T22:00:00.002-08:00</published><updated>2014-01-08T18:31:42.764-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenStack"/><category scheme="http://www.blogger.com/atom/ns#" term="雲端服務"/><title type='text'>Nova</title><content type='html'>&lt;h2&gt;
Nova&lt;/h2&gt;
&lt;div class=&quot;box generalbox center clearfix&quot; id=&quot;yui_3_13_0_2_1386996062466_26&quot;&gt;
&lt;div class=&quot;no-overflow&quot; id=&quot;yui_3_13_0_2_1386996062466_25&quot;&gt;
&lt;b&gt;一、安裝 Nova&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo apt-get install nova-api 
nova-cert nova-compute nova-compute-kvm nova-doc nova-network 
nova-objectstore nova-scheduler nova-volume rabbitmq-server novnc 
nova-consoleauth&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;二、配置 Nova&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
1. 參考下列，編輯 /etc/nova/nova.conf 檔。&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;--dhcpbridge_flagfile=/etc/nova/nova.conf&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--dhcpbridge=/usr/bin/nova-dhcpbridge&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--logdir=/var/log/nova&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--state_path=/var/lib/nova&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--lock_path=/run/lock/nova&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--allow_admin_api=true&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--use_deprecated_auth=false&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--auth_strategy=keystone&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--scheduler_driver=nova.scheduler.simple.SimpleScheduler&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--s3_host=&lt;span style=&quot;color: red;&quot;&gt;10.231.x.x&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--ec2_host=&lt;span style=&quot;color: red;&quot;&gt;10.231.x.x&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--rabbit_host=&lt;span style=&quot;color: red;&quot;&gt;10.231.x.x&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--cc_host=&lt;span style=&quot;color: red;&quot;&gt;10.231.x.x&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--nova_url=http://&lt;span style=&quot;color: red;&quot;&gt;10.231.x.x&lt;/span&gt;:8774/v1.1/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--routing_source_ip=&lt;span style=&quot;color: red;&quot;&gt;10.231.x.x&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--glance_api_servers=&lt;span style=&quot;color: red;&quot;&gt;10.231.x.x:9292&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--image_service=nova.image.glance.GlanceImageService&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--iscsi_ip_prefix=&lt;span style=&quot;color: blue;&quot;&gt;192.168.4&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--sql_connection=mysql://novadbadmin:qwerfdsa@&lt;span style=&quot;color: red;&quot;&gt;10.231.x.x&lt;/span&gt;/nova&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--ec2_url=http://&lt;span style=&quot;color: red;&quot;&gt;10.231.x.x&lt;/span&gt;:8773/services/Cloud&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--keystone_ec2_url=http://&lt;span style=&quot;color: red;&quot;&gt;10.231.x.x&lt;/span&gt;:5000/v2.0/ec2tokens&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--api_paste_config=/etc/nova/api-paste.ini&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--libvirt_type=kvm&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--libvirt_use_virtio_for_bridges=true&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--start_guests_on_host_boot=true&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--resume_guests_state_on_host_boot=true&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# vnc specific configuration&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--novnc_enabled=true&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--novncproxy_base_url=http://&lt;span style=&quot;color: red;&quot;&gt;10.231.x.x&lt;/span&gt;:6080/vnc_auto.html&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--vncserver_proxyclient_address=&lt;span style=&quot;color: red;&quot;&gt;10.231.x.x&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--vncserver_listen=10.231.x.x&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# network specific settings&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--network_manager=nova.network.manager.FlatDHCPManager&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--public_interface=eth0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;#&lt;span style=&quot;color: red;&quot;&gt; 如果有2張網卡, 修改為這一行&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# &lt;span style=&quot;color: red;&quot;&gt;--flat_interface=eth1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--flat_interface=eth0&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--flat_network_bridge=br100&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--fixed_range=&lt;span style=&quot;color: blue;&quot;&gt;192.168.4.1&lt;/span&gt;/29&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--floating_range=&lt;span style=&quot;color: red;&quot;&gt;10.231.x.x&lt;/span&gt;/29&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--network_size=8&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--flat_network_dhcp_start=&lt;span style=&quot;color: blue;&quot;&gt;192.168.4.1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--flat_injected=False&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--force_dhcp_release&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--iscsi_helper=tgtadm&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--connection_type=libvirt&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--root_helper=sudo nova-rootwrap&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--verbose&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
2. 修改 /etc/nova/api-paste.ini 檔。&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;修改：&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;admin_tenant_name = %SERVICE_TENANT_NAME%&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;admin_user = %SERVICE_USER%&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;admin_password = %SERVICE_PASSWORD%&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;為： &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;admin_tenant_name = admin&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;admin_user = admin&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;admin_password = admin&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;三、管理卷冊&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
1. 建立物理卷冊&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo pvcreate /dev/sda6&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
2、建立卷冊群組名稱為 nova-volumes&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo vgcreate nova-volumes /dev/sda6&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;四、變更 /etc/nova 擁有者 及 修改 /etc/nova/nova.conf 權限&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo chown -R nova:nova /etc/nova&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo chmod 644 /etc/nova/nova.conf &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;五、在 MySql 建立 nova 機碼&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo nova-manage db sync&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;六、設定私用 IP 範圍，當&lt;b&gt;啟動執行個體時，&lt;/b&gt;會自動配置一個範圍內的私用IP。&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo nova-manage network create private --fixed_range_v4=&lt;span style=&quot;color: red;&quot;&gt;192.168.4.32/29&lt;/span&gt; --num_networks=1 --bridge=br100 --bridge_interface=eth0 --network_size=8 &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;七、設定公用 IP 範圍。&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo nova-manage floating create &lt;span style=&quot;color: red;&quot;&gt;10.231.x.x/29&lt;/span&gt; --interface=br100&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;八、滙出環境變數&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;export OS_TENANT_NAME=admin&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;export OS_USERNAME=admin&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;export OS_PASSWORD=admin&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;export OS_AUTH_URL=&quot;http://localhost:5000/v2.0/&quot; &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;九、重啟 nova 服務&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo restart libvirt-bin&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo /etc/init.d/nova-network restart&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo /etc/init.d/nova-compute restart&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo /etc/init.d/nova-api restart&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo /etc/init.d/nova-objectstore restart&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo /etc/init.d/nova-scheduler restart&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo /etc/init.d/nova-volume restart&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo /etc/init.d/nova-consoleauth restart&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;十、測試結果。（如果 nova 設定正確，會出現如下結果。）&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;text-align: left;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4KIY4iE-CSx68Q0mJRPiXqrnAr0LmmdEb5gqwFdSBJa5-_CJogJYo2JJ_JTN5Ph3CG556Muz-nE1xyYjbJTm92RRnZWyOfv0BTPrO5NjFUaw7yJOHBkw9StKwuigz0PDFpUXpzRVM5iiK/s1600/nova-service-list.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4KIY4iE-CSx68Q0mJRPiXqrnAr0LmmdEb5gqwFdSBJa5-_CJogJYo2JJ_JTN5Ph3CG556Muz-nE1xyYjbJTm92RRnZWyOfv0BTPrO5NjFUaw7yJOHBkw9StKwuigz0PDFpUXpzRVM5iiK/s640/nova-service-list.png&quot; height=&quot;81&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;PS: 目前測試出現下列訊息：&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;yui_3_13_0_2_1386996062466_24&quot; style=&quot;padding-left: 30px;&quot;&gt;
2012-07-25
 08:01:37 DEBUG nova.utils [req-c2849fb1-a48e-46ac-bcd3-088e4b7812b5 
None None] backend &amp;lt;module &#39;nova.db.sqlalchemy.api&#39; from 
&#39;/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc&#39;&amp;gt; from 
(pid=4694) __get_backend 
/usr/lib/python2.7/dist-packages/nova/utils.py:658&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/3216670536939732202/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/3216670536939732202' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/3216670536939732202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/3216670536939732202'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2013/12/nova.html' title='Nova'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4KIY4iE-CSx68Q0mJRPiXqrnAr0LmmdEb5gqwFdSBJa5-_CJogJYo2JJ_JTN5Ph3CG556Muz-nE1xyYjbJTm92RRnZWyOfv0BTPrO5NjFUaw7yJOHBkw9StKwuigz0PDFpUXpzRVM5iiK/s72-c/nova-service-list.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-4036316635567160665</id><published>2013-12-13T21:59:00.005-08:00</published><updated>2014-01-08T18:21:16.751-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenStack"/><category scheme="http://www.blogger.com/atom/ns#" term="雲端服務"/><title type='text'>OpenStack Dashboard</title><content type='html'>&lt;h2&gt;
OpenStack Dashboard&lt;/h2&gt;
&lt;b&gt;一、安裝 OpenStack Dashboard&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo apt-get install openstack-dashboard&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;二、重啟 Apache2 服務&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo service apache2 restart&lt;/span&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/4036316635567160665/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/4036316635567160665' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/4036316635567160665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/4036316635567160665'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2013/12/openstack-dashboard.html' title='OpenStack Dashboard'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-8708320923574705744</id><published>2013-12-13T21:59:00.004-08:00</published><updated>2014-01-08T18:30:42.480-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenStack"/><category scheme="http://www.blogger.com/atom/ns#" term="雲端服務"/><title type='text'>封裝上傳 Ubuntu 映像檔</title><content type='html'>&lt;h2&gt;
封裝上傳 Ubuntu 映像檔&lt;/h2&gt;
&lt;b&gt;一、準備光碟映像檔&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
ubuntu-12.04-server-amd64.iso&lt;/div&gt;
&lt;b&gt;二、建立 Linux 映像檔&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;kvm-img create -f qcow2 &lt;span style=&quot;color: red;&quot;&gt;server.img&lt;/span&gt; 5G&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;三、系統安裝&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
1. 以下指令設定來源為光碟映像檔，安裝到 server.img，執行在 VNC 埠號 0&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo kvm -m 512 -cdrom 
ubuntu-12.04-server-amd64.iso -drive file=server.img,if=virtio,index=0 
-boot d -net nic -net user -nographic &amp;nbsp;-vnc :0&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
2. 連線到 VNC 進行安裝。&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;vncviewer localhost&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
3. 完成安裝後執行下列指令以虛擬機啟動。&lt;span style=&quot;color: red;&quot;&gt;（因為是在製作模板，所以啟動後，只要安裝必要套件即可。）&lt;b&gt;&lt;br style=&quot;padding-left: 30px;&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo kvm -m 512 -drive file=server.img,if=virtio,index=0 -boot c -net nic -net user -nographic -vnc :0&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;四、配置系統&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
1. 更新套件&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo apt-get update&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo apt-get upgrade&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
2. 安裝必要套件&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo apt-get install openssh-server cloud-init&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
3. 移除 /etc/udev/rules.d 中所有關網路自動偵測的設定。&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo rm -rf /etc/udev/rules.d/70-persistent-net.rules&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
4. 虛擬機關機&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo shutdown -h now&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;五、上傳 Linux 映像檔&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;glance add name=&quot;&lt;span style=&quot;color: blue;&quot;&gt;Ubuntu 12.04 Server amd64&lt;/span&gt;&quot; is_public=true container_format=ovf disk_format=qcow2 &amp;lt; &lt;span style=&quot;color: red;&quot;&gt;server.img &lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
執行 glance index 查看映像上傳結果&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbvn8vdpB62R48X6pgsTzqePJwJtAGCO-wbanVhOr2RgKqdApJm3U9QY-8bA8oGBNT_Tqqv1J1sYvSRRFGHcPCMjjCM8Arn4fFbWKdi03iCfP6dx1-tjuWH_n3TJ8TU2Jbx2kRn5cKKz81/s1600/Glance-index.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbvn8vdpB62R48X6pgsTzqePJwJtAGCO-wbanVhOr2RgKqdApJm3U9QY-8bA8oGBNT_Tqqv1J1sYvSRRFGHcPCMjjCM8Arn4fFbWKdi03iCfP6dx1-tjuWH_n3TJ8TU2Jbx2kRn5cKKz81/s640/Glance-index.png&quot; height=&quot;42&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/8708320923574705744/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/8708320923574705744' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/8708320923574705744'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/8708320923574705744'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2013/12/ubuntu.html' title='封裝上傳 Ubuntu 映像檔'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbvn8vdpB62R48X6pgsTzqePJwJtAGCO-wbanVhOr2RgKqdApJm3U9QY-8bA8oGBNT_Tqqv1J1sYvSRRFGHcPCMjjCM8Arn4fFbWKdi03iCfP6dx1-tjuWH_n3TJ8TU2Jbx2kRn5cKKz81/s72-c/Glance-index.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-206620314212362585</id><published>2013-12-13T21:59:00.003-08:00</published><updated>2014-01-08T18:30:20.416-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenStack"/><category scheme="http://www.blogger.com/atom/ns#" term="雲端服務"/><title type='text'>為執行個體配置公用 IP</title><content type='html'>&lt;h2&gt;
為執行個體配置公用 IP&lt;/h2&gt;
&lt;div class=&quot;box generalbox center clearfix&quot; id=&quot;yui_3_13_0_2_1386999895364_26&quot;&gt;
&lt;div class=&quot;no-overflow&quot; id=&quot;yui_3_13_0_2_1386999895364_25&quot;&gt;
執行個體啟動時並未配置公用 IP，無法與外部網路連線，以下說明在 DashBoard 配置公用 IP 的做法。&lt;br /&gt;
一、「專案」→「存取 &amp;amp; 安全性」→「分配 IP 到專案」&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij9BH88n0dcpmQjpROqbhAogPgw_C9KxwyAKehm-svvfH20yf_OrRrUP2j5YlqvHeSzGU0he1bzFLt10cAfmKNTw4DCgA_Q-CbD6LKK7s-30Q30bS1ky8RGRHMDXrQhtjTg4LkP3cByKtX/s1600/Access-Security-float_ip-001.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij9BH88n0dcpmQjpROqbhAogPgw_C9KxwyAKehm-svvfH20yf_OrRrUP2j5YlqvHeSzGU0he1bzFLt10cAfmKNTw4DCgA_Q-CbD6LKK7s-30Q30bS1ky8RGRHMDXrQhtjTg4LkP3cByKtX/s400/Access-Security-float_ip-001.png&quot; height=&quot;290&quot; style=&quot;border: 1px solid black;&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
二、選「儲備池」→按「分配 IP」 &lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjSCNKgqLVN579r_I-C41lYrQNN69qhyphenhyphenMQXs041QWCmThPZHPNS6ciH4usTXNza7UbahYBrwTWbpaBOpmNUBfLhMS3pZscMI3gJ93sgmKTxkMt3C5AheIV51G9gk05EyzWpGocX-zaV564/s1600/Access-Security-float_ip-002.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjSCNKgqLVN579r_I-C41lYrQNN69qhyphenhyphenMQXs041QWCmThPZHPNS6ciH4usTXNza7UbahYBrwTWbpaBOpmNUBfLhMS3pZscMI3gJ93sgmKTxkMt3C5AheIV51G9gk05EyzWpGocX-zaV564/s400/Access-Security-float_ip-002.png&quot; height=&quot;147&quot; style=&quot;border: 1px solid black;&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
三、完成分配 IP 後，就可以配置給執行個體了。&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
按「配給 IP」&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgX2ZQOE3i4J2aNpg83YJXuwbmBLXaNHeQJBNkV3UIobfltP5I8884zfwS0dnB-cm6im0AkTkkkCMMImoMFc-KnofCbZER9f9dSxWQfySRsHXE8G1yXsYk0qHOC1vqjPooF7j6ruNCtWuQ-/s1600/Access-Security-float_ip-003.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgX2ZQOE3i4J2aNpg83YJXuwbmBLXaNHeQJBNkV3UIobfltP5I8884zfwS0dnB-cm6im0AkTkkkCMMImoMFc-KnofCbZER9f9dSxWQfySRsHXE8G1yXsYk0qHOC1vqjPooF7j6ruNCtWuQ-/s400/Access-Security-float_ip-003.png&quot; height=&quot;290&quot; style=&quot;border: 1px solid black;&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
四、選「配給浮動 IP」→選「執行個體」→按「配給 IP」&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0QA_2CIPLOZd8z4K3Ee3UyiWsBZfu5TgCGN5YllXCSmoo4oWrQkhA38nhWghXWaeNeE5TT-XoeDvRRW3MY08jUAr_hOB0oeBGi8V5nEhKU4ukIGsNfE6gWxUiCi98JzSdRpZiqatwdnvt/s1600/Access-Security-float_ip-004.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0QA_2CIPLOZd8z4K3Ee3UyiWsBZfu5TgCGN5YllXCSmoo4oWrQkhA38nhWghXWaeNeE5TT-XoeDvRRW3MY08jUAr_hOB0oeBGi8V5nEhKU4ukIGsNfE6gWxUiCi98JzSdRpZiqatwdnvt/s400/Access-Security-float_ip-004.png&quot; height=&quot;155&quot; style=&quot;border: 1px solid black;&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
五、完成配置公用 IP&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3KIdgSSiNKfho-nh36qrglDnGHBUtJkreOdE3jZZSbIjxGSSPrW8007EY__1m_l5zF0MwOS1VWg1tI2cdFQ7ir-s3R44UY8ZO9dMl9c_2lZP3-wHtPLZi9Uz8-H-oQW_Wq9Jp9IW8kpKp/s1600/Access-Security-float_ip-005.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3KIdgSSiNKfho-nh36qrglDnGHBUtJkreOdE3jZZSbIjxGSSPrW8007EY__1m_l5zF0MwOS1VWg1tI2cdFQ7ir-s3R44UY8ZO9dMl9c_2lZP3-wHtPLZi9Uz8-H-oQW_Wq9Jp9IW8kpKp/s400/Access-Security-float_ip-005.png&quot; height=&quot;288&quot; style=&quot;border: 1px solid black;&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/206620314212362585/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/206620314212362585' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/206620314212362585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/206620314212362585'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2013/12/ip.html' title='為執行個體配置公用 IP'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij9BH88n0dcpmQjpROqbhAogPgw_C9KxwyAKehm-svvfH20yf_OrRrUP2j5YlqvHeSzGU0he1bzFLt10cAfmKNTw4DCgA_Q-CbD6LKK7s-30Q30bS1ky8RGRHMDXrQhtjTg4LkP3cByKtX/s72-c/Access-Security-float_ip-001.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-8941436988453315135</id><published>2013-12-13T21:59:00.002-08:00</published><updated>2014-01-08T18:30:02.751-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenStack"/><category scheme="http://www.blogger.com/atom/ns#" term="雲端服務"/><title type='text'>設定防火牆</title><content type='html'>&lt;h2&gt;
設定防火牆&lt;/h2&gt;
&lt;div class=&quot;box generalbox center clearfix&quot; id=&quot;yui_3_13_0_2_1386999391108_26&quot;&gt;
&lt;div class=&quot;no-overflow&quot; id=&quot;yui_3_13_0_2_1386999391108_25&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;OpenStack 預設不開啟連接到虛擬機的連接埠。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;在此開啟 ICMP 與 TCP 22 ，方便虛擬機與外部網路連線。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;設定方式如下：&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;1. 點選「&lt;span style=&quot;color: red;&quot;&gt;專案&lt;/span&gt;」→「&lt;span style=&quot;color: red;&quot;&gt;存取 &amp;amp; 安全性&lt;/span&gt;」→安全性群組的「&lt;span style=&quot;color: red;&quot;&gt;編輯規則&lt;/span&gt;」&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCvCRkkLYCefNaQZjJRFdCgGp4dhKAvBmt5PosMcvHCr15jsfiKslPk_UhxdSRm8fKgOoezrtajMI3rkmyeaVR9ObPRVXMy-WUdGAS98rvSbDFQgjKNr5paSq5GJlfyEMxs6pan26lUwU7/s1600/Access-Security-firewall-001.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCvCRkkLYCefNaQZjJRFdCgGp4dhKAvBmt5PosMcvHCr15jsfiKslPk_UhxdSRm8fKgOoezrtajMI3rkmyeaVR9ObPRVXMy-WUdGAS98rvSbDFQgjKNr5paSq5GJlfyEMxs6pan26lUwU7/s400/Access-Security-firewall-001.png&quot; height=&quot;273&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;2. 新增&lt;span style=&quot;color: red;&quot;&gt; TCP 22&lt;/span&gt; 與&lt;span style=&quot;color: red;&quot;&gt; ICMP -1&lt;/span&gt; 兩個規則。 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtqGXpKsr0gXKcGA48rsCfg148bvdETCKT4_ZuGprZeC-RzMoYXIfJTZXFXB8QlyiWTxDhggy0G-8P3c9nuWQRgGnmjZ7RxarTQSVGJnC4hjVjE6mARWeFndcS1tXKIaxaunt0kH7OpShP/s400/Access-Security-firewall-002.png&quot; height=&quot;330&quot; style=&quot;border: 1px solid black;&quot; width=&quot;400&quot; /&gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div id=&quot;yui_3_13_0_2_1386999391108_24&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;3. 如果還有需用的連結埠也可以開啟。（例如 TCP 80）&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/8941436988453315135/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/8941436988453315135' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/8941436988453315135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/8941436988453315135'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2013/12/blog-post_13.html' title='設定防火牆'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCvCRkkLYCefNaQZjJRFdCgGp4dhKAvBmt5PosMcvHCr15jsfiKslPk_UhxdSRm8fKgOoezrtajMI3rkmyeaVR9ObPRVXMy-WUdGAS98rvSbDFQgjKNr5paSq5GJlfyEMxs6pan26lUwU7/s72-c/Access-Security-firewall-001.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-3134419672609121177</id><published>2013-12-13T21:59:00.001-08:00</published><updated>2014-01-08T18:29:34.954-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenStack"/><category scheme="http://www.blogger.com/atom/ns#" term="雲端服務"/><title type='text'>連線到 OpenStack</title><content type='html'>&lt;h2 id=&quot;yui_3_13_0_2_1386999204039_24&quot;&gt;
連線到 OpenStack&lt;/h2&gt;
&lt;div class=&quot;box generalbox center clearfix&quot;&gt;
&lt;div class=&quot;no-overflow&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;一、連線 OpenStack&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;1. 輸入雲端伺服器網址(例：10.231.x.x)，連結雲端伺服管理介面。（預設 帳號/密碼為：&lt;span style=&quot;color: red;&quot;&gt;admin／&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;admin&lt;/span&gt; ）&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcRgIP9Nj27H-BKElz8zzpL48_K_Ae0Bo-EiYYBW3WuTSOgqddSbZh0-7i_XTb0P1AAxn1068DX-5RniMTs80VlMwaaB6Ab2U1D-nsVu7cauCkgJ3W6bi-73STOOO1NVZEu0es9-cSg4BF/s1600/Dashboard-001.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcRgIP9Nj27H-BKElz8zzpL48_K_Ae0Bo-EiYYBW3WuTSOgqddSbZh0-7i_XTb0P1AAxn1068DX-5RniMTs80VlMwaaB6Ab2U1D-nsVu7cauCkgJ3W6bi-73STOOO1NVZEu0es9-cSg4BF/s400/Dashboard-001.png&quot; height=&quot;400&quot; width=&quot;377&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;2. 登入成功的管理畫面。&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;yui_3_5_1_1_1343910178877_4406&quot; style=&quot;padding-left: 30px;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy5zNVbaFWLGT0bVPdRkadPx-8kV7tKWnoIWnIdmdiTOATebb3bdejDuGyvdahuaDJuLdWFrMQKF4itpm-gcONYWFY_5302BpQ0KG02RFwcR6dTzkYSQS1JhtZkEFP27XH4fUTwEMpdJcV/s1600/Dashboard-002.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy5zNVbaFWLGT0bVPdRkadPx-8kV7tKWnoIWnIdmdiTOATebb3bdejDuGyvdahuaDJuLdWFrMQKF4itpm-gcONYWFY_5302BpQ0KG02RFwcR6dTzkYSQS1JhtZkEFP27XH4fUTwEMpdJcV/s400/Dashboard-002.png&quot; height=&quot;272&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/3134419672609121177/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/3134419672609121177' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/3134419672609121177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/3134419672609121177'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2013/12/openstack_564.html' title='連線到 OpenStack'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcRgIP9Nj27H-BKElz8zzpL48_K_Ae0Bo-EiYYBW3WuTSOgqddSbZh0-7i_XTb0P1AAxn1068DX-5RniMTs80VlMwaaB6Ab2U1D-nsVu7cauCkgJ3W6bi-73STOOO1NVZEu0es9-cSg4BF/s72-c/Dashboard-001.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-6314098211898484673</id><published>2013-12-13T21:59:00.000-08:00</published><updated>2014-01-08T18:28:59.457-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenStack"/><category scheme="http://www.blogger.com/atom/ns#" term="雲端服務"/><title type='text'>安裝 OpenStack 管理工具</title><content type='html'>&lt;h2&gt;
安裝 OpenStack 管理工具&lt;/h2&gt;
&lt;b&gt;一、安裝套件&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
1. 安裝 python-novaclient glance-client swift&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo apt-get install python-novaclient glance-client swift&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
2. 安裝 qemu-kvm&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo apt-get install qemu-kvm&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;span lang=&quot;zh-TW&quot;&gt;&lt;b&gt;二、&lt;/b&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;&lt;b&gt;&lt;span class=&quot;alt-edited&quot;&gt;匯出 &lt;/span&gt;OpenStack 工作時需要的環境變數&lt;/b&gt;&lt;b&gt;。&lt;/b&gt;(&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;你也可以把&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;這些變量&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;加入&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;到&lt;span style=&quot;color: red;&quot;&gt; ~&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;/.&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;bashrc&lt;/span&gt; 檔案中的，就不必每次登入要重新滙出。)&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;export SERVICE_TOKEN=admin &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;export OS_TENANT_NAME=admin &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;export OS_USERNAME=admin&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;export OS_PASSWORD=admin&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;export OS_AUTH_URL=&quot;http://10.231.x.x:5000/v2.0/&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;export SERVICE_ENDPOINT=http://10.231.x.x:35357/v2.0&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;&lt;span lang=&quot;zh-TW&quot;&gt;三、&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;&lt;span class=&quot;alt-edited&quot;&gt;&lt;/span&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;執行 Nova 和 Glance 指檢查連接到 OpenStack 裡設置。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;pre class=&quot;programlisting&quot;&gt;nova list
+--------------------------------------+------------+--------+----------------------+
|                  ID                  |    Name    | Status |      Networks        |
+--------------------------------------+------------+--------+----------------------+
| 25ee9230-6bb5-4eca-8808-e6b4e0348362 | myinstance | ACTIVE | private=192.168.4.35 |
| c939cb2c-e662-46e5-bc31-453007442cf9 | myinstance1| ACTIVE | private=192.168.4.36 |
+--------------------------------------+------------+--------+----------------------+
&lt;/pre&gt;
&lt;pre class=&quot;programlisting&quot;&gt;glance index
ID                                   Name          Disk     Container Size
                                                   Format   Format
------------------------------------ ------------------------------ ----------------
65b9f8e1-cde8-40e7-93e3-0866becfb9d4 windows       qcow2    ovf       7580745728
f147e666-990c-47e2-9caa-a5a21470cc4e debian        qcow2    ovf       932904960
f3a8e689-02ed-460f-a587-dc868576228f opensuse      qcow2    ovf       1072300032
aa362fd9-7c28-480b-845c-85a5c38ccd86 centoscli     qcow2    ovf       1611530240
49f0ec2b-26dd-4644-adcc-2ce047e281c5 ubuntuimage   qcow2    ovf       1471807488&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/6314098211898484673/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/6314098211898484673' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/6314098211898484673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/6314098211898484673'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2013/12/openstack_13.html' title='安裝 OpenStack 管理工具'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-5830622601901092905</id><published>2013-12-13T21:58:00.003-08:00</published><updated>2014-01-08T18:28:32.768-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenStack"/><category scheme="http://www.blogger.com/atom/ns#" term="雲端服務"/><title type='text'>Ubuntu 12.04 Desktop 系統安裝</title><content type='html'>&lt;h2&gt;
Ubuntu 12.04 Desktop 系統安裝&lt;/h2&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;一、系統基本安裝：&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;二、更新套件&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;sudo apt-get update&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;sudo apt-get upgrade&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;三、安裝 vim, ipcalc 套件&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;sudo apt-get install vim ipcalc&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;四、 網路配置：&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
1. 編輯 /etc/network/interfaces 檔案如下：&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo vim /etc/network/interfaces&lt;br /&gt;===============================&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;auto lo&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;iface lo inet loopback&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;auto eth0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;iface eth0 inet static&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; address 10.231.x.x&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; netmask 255.255.255.0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; broadcast 10.231.x.255&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gateway 10.231.x.254&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dns-nameservers 163.20.108.1&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
2. 重啟網路服務&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt; sudo /etc/init.d/networking restart&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;五、時間伺服器：&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
1. 安裝時間伺服器&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;sudo apt-get install ntp&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
2. 設定雲伺服器為時間伺服器&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;sudo vim /etc/ntp.conf&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;========================&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# 10.231.x.x 為 &lt;span style=&quot;color: red;&quot;&gt;雲端伺服器的 IP&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;server &lt;span style=&quot;color: red;&quot;&gt;10.231.x.x&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
3. 重啟時間伺服器&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;$ sudo /etc/init.d/ntp restart&lt;/b&gt;&lt;/span&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/5830622601901092905/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/5830622601901092905' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/5830622601901092905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/5830622601901092905'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2013/12/ubuntu-1204-desktop.html' title='Ubuntu 12.04 Desktop 系統安裝'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-4127001353807281384</id><published>2013-12-13T21:58:00.000-08:00</published><updated>2014-01-08T18:28:05.863-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenStack"/><category scheme="http://www.blogger.com/atom/ns#" term="雲端服務"/><title type='text'>Swift</title><content type='html'>&lt;h2&gt;
Swift&lt;/h2&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;一、安裝 Swift 元件&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;1、安裝 Swift 主要元件&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;zh-TW&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;alt-edited&quot;&gt;Swift 主要元件&lt;/span&gt;是 proxy, account, container 和 object 伺務器。&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo apt-get install swift swift-proxy swift-account swift-container swift-object&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;zh-TW&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;alt-edited&quot;&gt;2. 安裝其他元件，如：xfsprogs (處理 xfs 檔案系統), python.pastedeploy (keystone 存取), curl (測試 swift)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo apt-get install xfsprogs curl python-pastedeploy&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;二、Swift 後端儲存&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;1、建立分割區 /dev/sda7&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo fdisk /dev/sda&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;Type n for new partition&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;Type e for extended partion&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;Choose appropriate partition number ( or go with the default )&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;Choose first and last sectors to set the hard disk size (or go with defaults)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;Note that 83 is the partition type number for Linux&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;Type w to write changes to the disk&lt;/span&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;2、格式化分割區 /dev/sda7 為 xfs 檔案系統。為了確保分割區無誤，可以先用指令&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;sudo fdisk -l&lt;/span&gt; &lt;span style=&quot;font-size: x-small;&quot;&gt;查看分割區。&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo mkfs.xfs -i size=1024 /dev/sda7&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt; sudo tune2fs -l /dev/sda7 |grep -i inode&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;三、掛載 /dev/sda7&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;1. 建立一個目錄 /mnt/swift_backend 以便掛載上面的分割區 /dev/sda7&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo mkdir /mnt/swift_backend&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;2. 編輯 /etc/fstab , 添加以下行，以便在每次系統重新啟動自動掛載分割區。&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;/dev/sda7 /mnt/swift_backend xfs noatime,nodiratime,nobarrier,logbufs=8 0 0 &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;四、使用後端儲&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;1. &lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;在&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;後端&lt;/span&gt;&lt;/span&gt;掛載前，先&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;為存儲設備&lt;/span&gt;&lt;/span&gt;建立一些節點，並設定 &lt;span class=&quot;atn&quot;&gt;“swift&quot; 使用者為擁有者&lt;/span&gt;&lt;span class=&quot;atn&quot;&gt;。&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo mount /mnt/swift_backend&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;pushd /mnt/swift_backend&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo mkdir node1 node2 node3 node4&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;popd&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt; sudo chown swift.swift /mnt/swift_backend/*&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;for i in {1..4}; do sudo ln -s /mnt/swift_backend/node$i /srv/node$i; done;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo mkdir -p 
/etc/swift/account-server /etc/swift/container-server 
/etc/swift/object-server /srv/node1/device /srv/node2/device 
/srv/node3/device /srv/node4/device&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo mkdir /run/swift&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo chown -L -R swift.swift /etc/swift /srv/node[1-4]/ /run/swift&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;2. 編輯&amp;nbsp;/etc/rc.local 在 &quot;exit 0&quot; 前 添加以下行，以便在每次系統啟動自動執行。&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo mkdir /run/swift&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo chown swift.swift /run/swift&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;五、組態 Rsync&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;Rsync &lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;配置在所有的存儲節點&lt;/span&gt;&lt;/span&gt;，&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;在各項 swift &lt;span class=&quot;alt-edited&quot;&gt;服務中&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;維護&lt;span class=&quot;alt-edited&quot;&gt;物件&lt;/span&gt;副本，在物件更新的操作中維持一致性。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;1. &lt;span class=&quot;short_text&quot; id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;安裝 rsync 套件&lt;span class=&quot;atn&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo apt-get install rsync&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;2. 啟用 Rsync ，修改 /etc/default/rsync&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;RSYNC_ENABLE=flase&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;修改為&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;RSYNC_ENABLE=&lt;span style=&quot;color: red;&quot;&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;3. 修改 /etc/rsyncd.conf 如下：&lt;br /&gt; &lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;# General stuff &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;uid = swift &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;gid = swift &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;log file = /var/log/rsyncd.log &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;pid file = /run/rsyncd.pid &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;address = 127.0.0.1 &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# Account Server replication settings &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[account6012] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;max connections = 25 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;path = /srv/node1/ &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;read only = false &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;lock file = /run/lock/account6012.lock &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[account6022] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;max connections = 25 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;path = /srv/node2/ &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;read only = false &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;lock file = /run/lock/account6022.lock &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[account6032] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;max connections = 25 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;path = /srv/node3/ &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;read only = false&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt; lock file = /run/lock/account6032.lock &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[account6042] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;max connections = 25 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;path = /srv/node4/ &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;read only = false &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;lock file = /run/lock/account6042.lock &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# Container server replication settings &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[container6011] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;max connections = 25 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;path = /srv/node1/ &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;read only = false &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;lock file = /run/lock/container6011.lock &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[container6021] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;max connections = 25 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;path = /srv/node2/ &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;read only = false &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;lock file = /run/lock/container6021.lock &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[container6031] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;max connections = 25 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;path = /srv/node3/ &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;read only = false &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;lock file = /run/lock/container6031.lock &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[container6041] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;max connections = 25 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;path = /srv/node4/ &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;read only = false &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;lock file = /run/lock/container6041.lock &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# Object Server replication settings &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[object6010] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;max connections = 25 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;path = /srv/node1/ &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;read only = false &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;lock file = /run/lock/object6010.lock &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[object6020] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;max connections = 25 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;path = /srv/node2/ &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;read only = false &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;lock file = /run/lock/object6020.lock &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[object6030] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;max connections = 25 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;path = /srv/node3/ &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;read only = false &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;lock file = /run/lock/object6030.lock &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[object6040] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;max connections = 25 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;path = /srv/node4/ &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;read only = false &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;lock file = /run/lock/object6040.lock&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;六、組態 Swift&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
1. 建立 /etc/swift/swift.conf 並加入下列內容。其中 &lt;span style=&quot;color: red;&quot;&gt;03c9f48da2229770&lt;/span&gt; 為亂數字串，可以執行&lt;span style=&quot;color: blue;&quot;&gt; od -t x8 -N 8 -A n &amp;lt; /dev/random&lt;/span&gt; 指令取得。&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;[swift-hash] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# random unique string that can never change (DO NOT LOSE). I&#39;m using 03c9f48da2229770. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# od -t x8 -N 8 -A n &amp;lt; /dev/random &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# The above command can be used to generate random a string. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;swift_hash_path_suffix = &lt;span style=&quot;color: red;&quot;&gt;03c9f48da2229770&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
2. 組態 Swift 代理伺服器。建立並編輯 /etc/swift/proxy-server.conf 檔如下。&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;[DEFAULT] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;bind_port = 8080 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;user = swift &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;swift_dir = /etc/swift &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[pipeline:main] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# Order of execution of modules defined below &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;pipeline = catch_errors healthcheck cache authtoken keystone proxy-server &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[app:proxy-server] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;use = egg:swift#proxy &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;allow_account_management = true &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;account_autocreate = true &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;set log_name = swift-proxy &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;set log_facility = LOG_LOCAL0 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;set log_level = INFO &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;set access_log_name = swift-proxy &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;set access_log_facility = SYSLOG &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;set access_log_level = INFO &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;set log_headers = True &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;account_autocreate = True &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[filter:healthcheck] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;use = egg:swift#healthcheck &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[filter:catch_errors] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;use = egg:swift#catch_errors &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[filter:cache] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;use = egg:swift#memcache &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;set log_name = cache &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[filter:authtoken] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;paste.filter_factory = keystone.middleware.auth_token:filter_factory &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;auth_protocol = http &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;auth_host = 127.0.0.1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;auth_port = 35357 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;auth_token = admin &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;service_protocol = http &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;service_host = 127.0.0.1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;service_port = 5000 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;admin_token = admin &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;admin_tenant_name = service &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;admin_user = swift &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;admin_password = swift &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;delay_auth_decision = 0 &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[filter:keystone] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;paste.filter_factory = keystone.middleware.swift_auth:filter_factory &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;operator_roles = admin,swiftoperator &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;is_admin = true&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
3. 組態 Swift 帳戶伺服器。以下是預設的 /etc/swift/account-server.conf 檔。&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[DEFAULT] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;bind_ip = 0.0.0.0 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;workers = 2 &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[pipeline:main] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;pipeline = account-server &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[app:account-server] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;use = egg:swift#account &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[account-replicator] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[account-auditor] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[account-reaper]&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;在這裡，我們創建多個帳戶伺服器配置檔，每個檔對應一個設備 /srv ，這些檔案命名為 1.conf，2.conf，......等。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;下面是 /&lt;span class=&quot;hps&quot;&gt;etc/swift/account-server/1.conf 的內&lt;/span&gt;容：&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;[DEFAULT] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;devices = /srv/node1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;mount_check = false &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;bind_port = 6012 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;user = swift &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;log_facility = LOG_LOCAL2 &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[pipeline:main] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;pipeline = account-server &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[app:account-server] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;use = egg:swift#account &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[account-replicator] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;vm_test_mode = no &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[account-auditor] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[account-reaper]&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;接著&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;為&amp;nbsp;/&lt;span class=&quot;hps&quot;&gt;srv/node2&lt;/span&gt;/， &lt;span class=&quot;hps&quot;&gt;srv/node3&lt;/span&gt;/， &lt;span class=&quot;hps&quot;&gt;srv/node4 &lt;/span&gt;等&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;設備&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;，使用 &lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;1.conf&lt;/span&gt;&lt;/span&gt; 創建 2.conf，3.conf 和 4.conf 等副本。祭後使用下列指令修改到各自連結的節點 6022，6032，6042 以及不同的日誌值LOG_LOCAL3， LOG_LOCAL4， LOG_LOCAL5&amp;nbsp;。&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo cp /etc/swift/account-server/1.conf /etc/swift/account-server/2.conf &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo cp /etc/swift/account-server/1.conf /etc/swift/account-server/3.conf &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo cp /etc/swift/account-server/1.conf /etc/swift/account-server/4.conf &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo sed -i &#39;s/6012/6022/g;s/LOCAL2/LOCAL3/g;s/node1/node2/g&#39; /etc/swift/account-server/2.conf &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo sed -i &#39;s/6012/6032/g;s/LOCAL2/LOCAL4/g;s/node1/node3/g&#39; /etc/swift/account-server/3.conf &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo sed -i &#39;s/6012/6042/g;s/LOCAL2/LOCAL5/g;s/node1/node4/g&#39; /etc/swift/account-server/4.conf&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
4. 組態 Swift 容器伺服器。以下是預設的&amp;nbsp;/etc/swift/container-server.conf 檔。&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[DEFAULT] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;bind_ip = 0.0.0.0 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;workers = 2 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[pipeline:main] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;pipeline =&amp;nbsp;container-server &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[app:container-server]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;use = egg:swift#container&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[container-replicator]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[container-updater]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[container-auditor]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[container-sync]&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;在這裡，我們創建多個帳戶伺服器配置檔，每個檔對應一個設備 /srv ，這些檔案命名為 1.conf，2.conf，......等。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;下面是&amp;nbsp;&lt;span class=&quot;hps&quot;&gt;/etc/swift/container-server/1.conf 的內&lt;/span&gt;容：&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;[DEFAULT] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;devices = /srv/node1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;mount_check = false &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;bind_port = 6011 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;user = swift &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;log_facility = LOG_LOCAL2 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[pipeline:main] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;pipeline = container-server&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[app:container-server]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;use = egg:swift#container&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[container-replicator]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;vm_test_mode = no &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[container-updater]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[container-auditor]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[container-sync]&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;接著如前&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;為 /srv/node2/， srv/node3/， srv/node4 等&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;設備&lt;/span&gt;&lt;/span&gt;，使用 &lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;1.conf&lt;/span&gt;&lt;/span&gt; 創建 2.conf，3.conf 和 4.conf 等副本。祭後使用下列指令修改到各自連結的節點 6021，6031，6041 以及不同的日誌值LOG_LOCAL3， LOG_LOCAL4， LOG_LOCAL5 。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
5. 組態 Swift 物件伺服器。以下是預設的&amp;nbsp;/etc/swift/object-server.conf 檔。&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[DEFAULT] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;bind_ip = 0.0.0.0 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;workers = 2 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[pipeline:main] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;pipeline = object-server&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[app:object-server]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;use = egg:swift#object&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[object-replicator]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[object-updater]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3366ff; font-size: x-small;&quot;&gt;[object-auditor]&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;在這裡，我們創建多個帳戶伺服器配置檔，每個檔對應一個設備 /srv ，這些檔案命名為 1.conf，2.conf，......等。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;下面是 &lt;span class=&quot;hps&quot;&gt;/etc/swift/container-server/1.conf 的內&lt;/span&gt;容：&lt;/span&gt;&lt;/div&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;[DEFAULT] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;devices = /srv/node1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;mount_check = false &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;bind_port = 6010 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;user = swift &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;log_facility = LOG_LOCAL2 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[pipeline:main] &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;pipeline = object-server&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[app:object-server]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;use = egg:swift#object&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[object-replicator]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;vm_test_mode = no &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[object-updater]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;[object-auditor]&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;接著如前&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;為 /&lt;span class=&quot;hps&quot;&gt;srv/node2&lt;/span&gt;/， &lt;span class=&quot;hps&quot;&gt;srv/node3&lt;/span&gt;/， &lt;span class=&quot;hps&quot;&gt;srv/node4 &lt;/span&gt;等&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;設備&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;，使用 &lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;&lt;span id=&quot;result_box&quot; lang=&quot;zh-TW&quot;&gt;1.conf&lt;/span&gt;&lt;/span&gt; 創建 2.conf，3.conf 和 4.conf 等副本。祭後使用下列指令修改到各自連結的節點 6020，6030，6040 以及不同的日誌值LOG_LOCAL3， LOG_LOCAL4， LOG_LOCAL5 。&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding-left: 30px;&quot;&gt;
&amp;nbsp;6. 組態 Swift 環&lt;/div&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;在 /etc/swift 指行下列指令，分別建立&lt;span style=&quot;color: red;&quot;&gt;物件環&lt;/span&gt;、&lt;span style=&quot;color: red;&quot;&gt;容器環&lt;/span&gt;及&lt;span style=&quot;color: red;&quot;&gt;帳戶環&lt;/span&gt;。&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;pushd /etc/swift &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-ring-builder object.builder create 18 3 1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-ring-builder container.builder create 18 3 1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-ring-builder account.builder create 18 3 1&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span lang=&quot;zh-TW&quot;&gt;&lt;span lang=&quot;zh-TW&quot;&gt;添加 zone 和平衡環。語法：&lt;span style=&quot;color: red;&quot;&gt;swift-ring-builder &amp;lt;builder_file&amp;gt; add &amp;lt;zone&amp;gt;-&amp;lt;ip_address&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;device&amp;gt; &amp;lt;weight&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-ring-builder object.builder add z1-127.0.0.1:6010/device 1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-ring-builder object.builder add z2-127.0.0.1:6020/device 1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-ring-builder object.builder add z3-127.0.0.1:6030/device 1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-ring-builder object.builder add z4-127.0.0.1:6040/device 1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-ring-builder object.builder rebalance &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-ring-builder container.builder add z1-127.0.0.1:6011/device 1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-ring-builder container.builder add z2-127.0.0.1:6021/device 1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-ring-builder container.builder add z3-127.0.0.1:6031/device 1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-ring-builder container.builder add z4-127.0.0.1:6041/device 1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-ring-builder container.builder rebalance &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-ring-builder account.builder add z1-127.0.0.1:6012/device 1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-ring-builder account.builder add z2-127.0.0.1:6022/device 1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-ring-builder account.builder add z3-127.0.0.1:6032/device 1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-ring-builder account.builder add z4-127.0.0.1:6042/device 1 &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-ring-builder account.builder rebalance&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;b&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;七、啟動 Swift 服務&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;table align=&quot;right&quot; border=&quot;0&quot; style=&quot;background-color: #e0e0e0; width: 98%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-init main start &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;sudo swift-init rest start&lt;/span&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/4127001353807281384/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/4127001353807281384' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/4127001353807281384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/4127001353807281384'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2013/12/swift.html' title='Swift'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-6531859343124257916</id><published>2013-07-28T08:24:00.000-07:00</published><updated>2014-01-08T18:21:16.761-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="雲端服務"/><title type='text'>UEC  安裝筆記</title><content type='html'>&lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 --&gt;
 
&lt;/style&gt;  &lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;安裝 UEC Server1: CLC + CC + WSC + SC &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;Cloud controller address 空白 &lt;/li&gt;
&lt;li&gt;選 Cloud Controller, Storge Controller, Cluster Controller,Walrus Controller &lt;/li&gt;
&lt;li&gt;Eucalyptus cluster name 設定叢集名稱：cluster1 &lt;/li&gt;
&lt;li&gt;A range of public IP 設與 server1 同網段 IP 範圍 &lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;安裝 Nodes Controller：Server2 ：NC &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;Cloud controller address ：設定 Server1 IP &lt;/li&gt;
&lt;li&gt;選 Nodes Controller &lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;註冊 Node &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;交換 Public SSH keys &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;設 eucalyptus 用戶密碼：&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;sudo passwd eucalyptus &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;在雲控制器（CLC）執行：&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;sudo -u eucalyptus ssh-copy-id -i /var/lib/eucalyptus/.ssh/id_rsa.pub eucalyptus@&amp;lt;IP_OF_NODE&amp;gt; &lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;可以刪除 eucalyptus 密碼：&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;sudo passwd -d eucalyptus &lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;組態服務 &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;在雲控制器（CLC） &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;註冊叢集控制器（CC） &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;定義變數 CC_NAME 在 /etc/eucalyptus/eucalyptus-cc.conf &lt;/li&gt;
&lt;li&gt;定義變數 CC_IP_ADDR 在 /etc/eucalyptus/eucalyptus-ipaddr.conf，用空白鍵分隔多個IP位址。 &lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;註冊Walrus控制器（WSC） &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;定義變數 WALRUS_IP_ADDR 在 /etc/eucalyptus/eucalyptus-ipaddr.conf，只有一個IP位址。 &lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;li&gt;在叢集控制器（CC）： &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;註冊存儲控制器（SC） &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;在變數 CC_NAME 定義卷冊名稱於 /etc/eucalyptus/eucalyptus-cc.conf &lt;/li&gt;
&lt;li&gt;定義變數 SC_IP_ADDR 在 /etc/eucalyptus/eucalyptus-ipaddr.conf，用空白鍵分隔多個IP位址。 &lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;li&gt;發布 &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;發布 Walrus 控制器服務：&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;br /&gt;
sudo start eucalyptus-walrus-publication &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;發布 叢集控制器服務：&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;br /&gt;
sudo start eucalyptus-cc-publication &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;發布 存儲控制器服務：&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;br /&gt;
sudo start eucalyptus-sc-publication &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;發布 節點控制器服務：&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;br /&gt;
sudo start eucalyptus-nc-publication&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;啟動監聽 &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;在雲控制器（CLC）和叢集控制器（CC）執行：&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;sudo start uec-component-listener &lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;驗譣註冊結果 &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;查看註冊紀錄：cat /var/log/eucalyptus/registration.log&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;cat /var/log/eucalyptus/registration.log&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;2010-04-08 15:46:36-05:00 | 24243 -&amp;gt; Calling node cluster1 node &lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;10.1.1.75&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;2010-04-08 15:46:36-05:00 | 24243 -&amp;gt; euca_conf --register-nodes returned 0&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;2010-04-08 15:48:47-05:00 | 25858 -&amp;gt; Calling walrus Walrus 10.1.1.71&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;2010-04-08 15:48:51-05:00 | 25858 -&amp;gt; euca_conf --register-walrus returned 0&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;2010-04-08 15:49:04-05:00 | 26237 -&amp;gt; Calling cluster cluster1 10.1.1.71&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;2010-04-08 15:49:08-05:00 | 26237 -&amp;gt; euca_conf --register-cluster returned 0&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;2010-04-08 15:49:17-05:00 | 26644 -&amp;gt; Calling storage cluster1 storage 10.1.1.71&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;2010-04-08 15:49:18-05:00 | 26644 -&amp;gt; euca_conf --register-sc returned 0 &lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;取得憑證 &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;從網頁瀏覽器 &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;網頁瀏覽器使用安全連線，連結網址：&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;https://&amp;lt;雲控制器(CLC) IP&amp;gt;:8443/ &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;輸入帳號 admin 密碼 admin 登入 &lt;/li&gt;
&lt;li&gt;更改 admin 密碼及 e-Mail &lt;/li&gt;
&lt;li&gt;第一次組態完成後，點擊左上方 &quot;Credentials&quot; 標籤 &lt;/li&gt;
&lt;li&gt;按 &quot;Download Credentials&quot; 按鈕取得憑證 &lt;/li&gt;
&lt;li&gt;儲存到 ~/.euca 目錄 &lt;/li&gt;
&lt;li&gt;解壓縮下載的憑證檔到 ~/.euca：&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;br /&gt;
unzip -d ~/.euca mycreds.zip &lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;從指令列 &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;此外，在雲控制器的指令列可以執行：&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;mkdir -p ~/.euca&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;chmod 700 ~/.euca&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;cd ~/.euca&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;sudo euca_conf --get-credentials mycreds.zip&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;unzip mycreds.zip&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;ln -s ~/.euca/eucarc ~/.eucarc&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;cd - &lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;提取和使用憑證：設置 EC2 API 和 AMI 工具，以便在伺服器使用 X.509憑證 &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;安裝雲使用者工具：&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;sudo apt-get install euca2ools &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;驗證叢集可用性信息：&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;~/.euca/eucarc&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;euca-describe-availability-zones verbose&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;AVAILABILITYZONE myowncloud 192.168.1.1&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;AVAILABILITYZONE |- vm types free / max cpu ram disk&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;AVAILABILITYZONE |- m1.small 0004 / 0004 1 192 2&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;AVAILABILITYZONE |- c1.medium 0004 / 0004 1 256 5&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;AVAILABILITYZONE |- m1.large 0002 / 0002 2 512 10&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;AVAILABILITYZONE |- m1.xlarge 0002 / 0002 2 1024 20&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;AVAILABILITYZONE |- c1.xlarge 0001 / 0001 4 2048 20 &lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;li&gt;從 store 安裝 映像檔&lt;br /&gt;
以下是簡易安裝映像檔的方法，然而進階用戶可能有興趣自己打包自己的映檔。從UEC網頁介面的映像Store安裝映像檔是最簡單的方法。 &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;輸入網址連結 UEC 網頁介面：&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;https://&amp;lt;雲控制器(CLC) IP&amp;gt;:8443/ &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;輸入帳號密碼登入 &lt;/li&gt;
&lt;li&gt;按 Store 標籤 &lt;/li&gt;
&lt;li&gt;瀏覽可用的映像檔 &lt;/li&gt;
&lt;li&gt;在您要的映像檔按 Install 按鈕，下載並安裝完成後，您可以點擊“How to run?”連結，查看要啟動這個映像的指令。 &lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;執行映像&lt;br /&gt;
有多種方法可以在 UEC 執行映像檔。&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;使用指令列&lt;/li&gt;
&lt;li&gt;使用相容 UEC 的管理工具，如 Landscape&lt;/li&gt;
&lt;li&gt;使用 Firefox 附加元件 ElasticFox &lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;使用指令列執行映像 &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;執行下列指令創建密鑰對（keypair)：&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;if [ ! -e ~/.euca/mykey.priv ]; then&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mkdir -p -m 700 ~/.euca&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; touch ~/.euca/mykey.priv&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; chmod 0600 ~/.euca/mykey.priv&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; euca-add-keypair mykey &amp;gt; ~/.euca/mykey.priv&lt;/span&gt;&lt;br style=&quot;background-color: #eeeeee;&quot; /&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;fi &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;確認在執行任何 eucatools 前先執行&lt;span style=&quot;background-color: #eeeeee;&quot;&gt; source ~/.euca/eucarc &lt;/span&gt;，將這行指令直接加到 .bashrc 㡳部是一個好方法。 &lt;/li&gt;
&lt;li&gt;您必須允許實例能存取 22 通訊埠：&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;euca-authorize default -P tcp -p 22 -s 0.0.0.0/0 &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;接下來，您可以創建您所註冊映像的實例：&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;euca-run-instances $EMI -k mykey -t m1.small &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;第一次運行一個實例，系統會為這映像建立緩存。這通常需要一段時間，要監視的實例的狀態，可以運行：&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;watch -n5 euca-describe-instances &lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/6531859343124257916/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/6531859343124257916' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/6531859343124257916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/6531859343124257916'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2013/07/uec.html' title='UEC  安裝筆記'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-426989817512984693.post-5657421168198283653</id><published>2011-08-11T20:38:00.000-07:00</published><updated>2014-01-08T18:23:01.414-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Aiki"/><title type='text'>Aiki framework 安裝</title><content type='html'>&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Aiki 資源需求&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;&lt;b&gt;伺服器系統需求&lt;/b&gt;&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;GNU/Linux 系統平台&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;Ubuntu &lt;/li&gt;
&lt;li&gt;Fedora &lt;/li&gt;
&lt;/ol&gt;&lt;li&gt;HTTP 伺服器，支援 .htaccessApache httpd &lt;/li&gt;
&lt;ol&gt;&lt;li&gt;伺服器組態至少必須設定如下：&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;AllowOverride Options FileInfo 或 AllowOverride All &lt;/li&gt;
&lt;ol&gt;&lt;li&gt;Ubuntu：加到 /etc/apache2/sites-available/default 中。 &lt;/li&gt;
&lt;li&gt;Fedora：加到 httpd.conf 中。 &lt;/li&gt;
&lt;/ol&gt;&lt;li&gt;載入並啟用 mod_rewrite 模組&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;Ubuntu：執行ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/。 &lt;/li&gt;
&lt;li&gt;Fedora：加到 httpd.conf 中。&lt;/li&gt;
&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;資料庫&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;MySQL &lt;/li&gt;
&lt;li&gt;設定 aiki 資料庫使用者帳號及密碼&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;建立 aiki 帳號（password 處填入 root 用戶密碼，aikipassword 處填入 aiki 用戶要用的密碼）&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;mysql -v -u root -p&lt;/span&gt;&lt;span style=&quot;background-color: #eeeeee; color: red;&quot;&gt;password&lt;/span&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt; -e &quot;CREATE USER &#39;aiki&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;&lt;/span&gt;&lt;span style=&quot;background-color: #eeeeee; color: red;&quot;&gt;aikipassword&lt;/span&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&#39;;&quot; &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;aiki 用戶需要有下列權限：&lt;/li&gt;
&lt;ul&gt;&lt;li&gt; SELECT&lt;/li&gt;
&lt;li&gt; UPDATE&lt;/li&gt;
&lt;li&gt; DELETE&lt;/li&gt;
&lt;li&gt; INSERT&lt;/li&gt;
&lt;li&gt; CREATE&lt;/li&gt;
&lt;li&gt; TRUNCATE 需要 DROP 權限&lt;/li&gt;
&lt;li&gt; DROP&lt;/li&gt;
&lt;li&gt; ALTER&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;設定aiki 用戶的權限指令如下（password 處填入 root 用戶密碼）：&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;mysql -v -u root -p&lt;/span&gt;&lt;span style=&quot;background-color: #eeeeee; color: red;&quot;&gt;password&lt;/span&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt; -e &quot;GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER ON aiki.* TO &#39;aiki&#39;@&#39;localhost&#39;;&quot; &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;顯示aiki 權限指令（password 處填入 root 用戶密碼）&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;mysql -v -u root -p&lt;/span&gt;&lt;span style=&quot;background-color: #eeeeee; color: red;&quot;&gt;password&lt;/span&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt; -e &quot;SHOW GRANTS FOR &#39;aiki&#39;@&#39;localhost&#39;;&quot; &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;建立 aiki 資料庫（password 處填入 aiki 用戶密碼）&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;mysql -v -u aiki -p&lt;/span&gt;&lt;span style=&quot;background-color: #eeeeee; color: red;&quot;&gt;password&lt;/span&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt; -e &quot;CREATE DATABASE aiki DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;&quot;&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;&lt;b&gt;客端電腦需求&lt;/b&gt;&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;網頁瀏覽器&lt;/li&gt;
&lt;ul&gt;&lt;li&gt; Firefox &lt;/li&gt;
&lt;/ul&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;安裝 Aiki&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;安裝版下載：http://www.aikiframework.org/files/aiki-rev-780.zip &lt;/li&gt;
&lt;li&gt;解壓縮：unzip aiki-rev-780.zip &lt;/li&gt;
&lt;li&gt;將 aiki 複製到網站目錄&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;sudo cp -av aiki /var/www/aiki &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;變更 Aiki Framework 權限&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;chmod -v 777 /var/www/aiki &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;執行網頁瀏覽器開啟 aiki 設定程式&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;firefox http://localhost/aiki/ &lt;/span&gt;&lt;br /&gt;
&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeQKqvAREYUgjCrswPCcsLaYokbcyOZS8sG4KAkB4I-rt-uf0tgN88HDm6ayKRNvkhHAbGL9KjYgV75smFKFg7-A9NY3oOuV1XE06p_zAWivKDQSbwPIFts5GKZ0e7ToQsmuevDvek16fG/s400/aiki-install-01.png&quot; width=&quot;255&quot; /&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt; &lt;span style=&quot;color: purple;&quot;&gt;Database Name:&lt;/span&gt; aiki&lt;/li&gt;
&lt;/ul&gt;&lt;ul&gt;&lt;li&gt; &lt;span style=&quot;color: purple;&quot;&gt;Database Username:&lt;/span&gt; aiki&lt;/li&gt;
&lt;li&gt; &lt;span style=&quot;color: purple;&quot;&gt;Database Password:&lt;/span&gt; password&lt;/li&gt;
&lt;li&gt; &lt;span style=&quot;color: purple;&quot;&gt;Username: &lt;/span&gt;admin&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: purple;&quot;&gt; Full Name:&lt;/span&gt; Admin&lt;/li&gt;
&lt;li&gt; &lt;span style=&quot;color: purple;&quot;&gt;Email:&lt;/span&gt; admin@email.com &lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt; aiki 安裝完成，按Click here to login and start creating a CMS 連結，進入登入網頁。 &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOwnONO2feMXPhnBN1SSKSYeYtvdYxJBKHphJ1ViJG_4i4xMYe-32Htnfq7NiKXXzMeHuPMTe1uex0mwmL_eQ7RTinpErbQOIzHv-URhG1QxqT0-8TgNd5uwlmpPxMnVKsFD2hRJ5Bq3Vh/s1600/Aiki+Framework+Installer+-+Mozilla+Firefox_031.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;152&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOwnONO2feMXPhnBN1SSKSYeYtvdYxJBKHphJ1ViJG_4i4xMYe-32Htnfq7NiKXXzMeHuPMTe1uex0mwmL_eQ7RTinpErbQOIzHv-URhG1QxqT0-8TgNd5uwlmpPxMnVKsFD2hRJ5Bq3Vh/s400/Aiki+Framework+Installer+-+Mozilla+Firefox_031.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;登入網頁中輸入管理帳號及密碼，登入管理介面。 &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNxrzFgvOXLsowBSDKyWfAG5mL-Mf6i-wrW-EMuoc8gcfUM7LsK1q_C8ehEM-qeH8l6tHrh9EQff1HFg9iNnwFvednJcvdJgx25TxQ-V6kjvCHc92XwxhsOydrbPZ3IMcAlL7iPxDlC-OO/s1600/Login+to+Aiki-Admin+Panel+-+default+-+Mozilla+Firefox_033.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;365&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNxrzFgvOXLsowBSDKyWfAG5mL-Mf6i-wrW-EMuoc8gcfUM7LsK1q_C8ehEM-qeH8l6tHrh9EQff1HFg9iNnwFvednJcvdJgx25TxQ-V6kjvCHc92XwxhsOydrbPZ3IMcAlL7iPxDlC-OO/s400/Login+to+Aiki-Admin+Panel+-+default+-+Mozilla+Firefox_033.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Aiki Framework 管理介面 &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgv6Om9aRrX66syUJW_Zl4gVWCzxVJrzmct5wg95Cw5mHYxvFo7p0GezgYOb3dNu3E1uhFWy72HJZ8NA1Ekdm3ytj9MlK5LZZN7BOKfMlP_zHnJfvhEFVM_tkxvPAtTDqrwdT3Dek7BpBmG/s1600/aiki+AdminPanel+-+default+-+Mozilla+Firefox_034.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;310&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgv6Om9aRrX66syUJW_Zl4gVWCzxVJrzmct5wg95Cw5mHYxvFo7p0GezgYOb3dNu3E1uhFWy72HJZ8NA1Ekdm3ytj9MlK5LZZN7BOKfMlP_zHnJfvhEFVM_tkxvPAtTDqrwdT3Dek7BpBmG/s400/aiki+AdminPanel+-+default+-+Mozilla+Firefox_034.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;第一次登入後最好先變更管理帳號的密碼。&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;按管理員帳號 &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNsfZh1wFh76lc1S8FqO6GKN4-NU9CT4c0YeC48ksprDDSlRDbWRqnXLa5XHfnlqEEK-EK4WLOu1oiYNYfV2q4T0PtkDN8vPYGyksTl7yHYD60QSx5XyEV0tW0TL4MuJA9Z7__ZorGSK1g/s1600/aiki+AdminPanel+-+default+-+Mozilla+Firefox_038.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;67&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNsfZh1wFh76lc1S8FqO6GKN4-NU9CT4c0YeC48ksprDDSlRDbWRqnXLa5XHfnlqEEK-EK4WLOu1oiYNYfV2q4T0PtkDN8vPYGyksTl7yHYD60QSx5XyEV0tW0TL4MuJA9Z7__ZorGSK1g/s320/aiki+AdminPanel+-+default+-+Mozilla+Firefox_038.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;輸入新密碼後送出。 &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYYFrSq_LWzzm9f1Bw6BFWT3op6L4srQuBK9LkUVVXirfzHR4tabVzuo2Oy479kU3WV7VbiMX88YQQpB1n2ZrN-LQbXwR3tC5LNnRlipr72Mzut-jQVz6dggWuFDFDJrlAqexmMvoORQjR/s1600/aiki+AdminPanel+-+default+-+Mozilla+Firefox_036.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;189&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYYFrSq_LWzzm9f1Bw6BFWT3op6L4srQuBK9LkUVVXirfzHR4tabVzuo2Oy479kU3WV7VbiMX88YQQpB1n2ZrN-LQbXwR3tC5LNnRlipr72Mzut-jQVz6dggWuFDFDJrlAqexmMvoORQjR/s320/aiki+AdminPanel+-+default+-+Mozilla+Firefox_036.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;修改完成。&lt;/li&gt;
&lt;/ol&gt;&lt;/ol&gt;&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;反安裝 Aiki framework&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;&lt;li&gt;刪除aiki 網站目錄&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;sudo rm -rfv /var/www/aiki &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;刪除 aiki 資料庫（password 處填入 aiki 用戶密碼）&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;mysqladmin -p&lt;span style=&quot;color: red;&quot;&gt;password&lt;/span&gt; -u aiki drop aiki &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;刪除 aiki 的 MySQL 帳號（password 處填入 root 用戶密碼）&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;mysql -u root -p&lt;span style=&quot;color: red;&quot;&gt;password&lt;/span&gt; -e &quot;DROP USER &#39;aiki&#39;@&#39;localhost&#39;;&quot; &lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://lin-blog-1.blogspot.com/feeds/5657421168198283653/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/426989817512984693/5657421168198283653' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/5657421168198283653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/426989817512984693/posts/default/5657421168198283653'/><link rel='alternate' type='text/html' href='http://lin-blog-1.blogspot.com/2011/08/aiki-framework.html' title='Aiki framework 安裝'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11856292181796308918</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeQKqvAREYUgjCrswPCcsLaYokbcyOZS8sG4KAkB4I-rt-uf0tgN88HDm6ayKRNvkhHAbGL9KjYgV75smFKFg7-A9NY3oOuV1XE06p_zAWivKDQSbwPIFts5GKZ0e7ToQsmuevDvek16fG/s72-c/aiki-install-01.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>