Shunze ¾Ç¶é >¹q¸£¸ê°T¾Ç¨t >OpenStack > ¡m¤»¡n¤W¶Ç¬M¹³ÀÉ «¢Åo¡AÁÙ¨S¦³µù¥U©ÎªÌµn¤J¡C½Ð§A[µù¥U|µn¤J]
« ¤W¤@½g¥DÃD ¤U¤@½g¥DÃD » Åã¥Ü¦¨¦C¦L¼Ò¦¡ | ¼W¥[¨ì§Úªº³Ì·R
µoªí·s¥DÃD µoªí¦^ÂÐ
§@ªÌ
¥DÃD
shunze
¤u¤Í§B§B


µù¥U¤é´Á: 2002 04
¨Ó¦Û: ¼é¦Á²×¤î¤§¦a
¤å³¹: 2380

shunze Â÷½u
¡m¤»¡n¤W¶Ç¬M¹³ÀɤޥΦ^ÂÐ ½s¿è/§R°£¤å³¹ ·j´M¥Ñ  µoªíªº¨ä¥L¤å³¹ ¦^³øµ¹ª©¥D IP ¦ì¸m ¦^¦¹­¶³Ì¤W¤è

¦bOpenStackùØ¡A¹w³]¶È¦³¤@­Ó·L«¬¬M¹³ÀÉcirros¡A
­Y§Ú­Ì­n¤W¶Ç¨ä¥¦¬M¹³ÀɨÑuser«Ø¥ßInstance¡A¥i¨ì­þùؤU¸ü©O¡H

¦b¥H¤Uºô­¶¤¤¡AOpenStack´£¨Ñ¤F¦h­ÓLinux»P¤@­ÓWindows 2012 R2ªº¬M¹³ÀɨѨϥΪ̨ϥΡC
¡÷http://docs.openstack.org/image-guide/obtain-images.html


¡ô¤£ª¾¹D±z¦³¨S¦³µo²{¡A°£¤Fcirros¥~¡A¨ä¥¦¬M¹³Àɳ£¥u¦³±b¸¹¡A¨S¦³±K½X¡H
³oÃþ¬M¹³ÀɩҫإߪºInstance¡A¤@¶}©l´N¥u¯à¥H±b¸¹°t¦X¡§±KÆ_¹ï¡¨©Ò²£¥Íªºprivate key¨Óµn¤JSSH¡C


¦³¤F¬M¹³Àɪº¨Ó·½«á¡A¨ä¹ê¤]¤£¬O¥ô¦ó¤H³£¥i¥H¦bOpenStack¤¤¤W¶Ç¬M¹³ÀÉ¡A
¥u¦³¨ã¦³adminÅv­­ªº±b¸¹¤~¥i¥H¤W¶Ç¬M¹³ÀÉ¡C
©Ò¥H§Ú­Ì´N¥Hadmin±b¸¹µn¤JOpenStack¡A¶i¦æ¬M¹³Àɪº¤W¶Ç¤u§@§a¡ã

¦b ±M®×/¹Bºâ/¬M¹³ÀÉ ùØ¡A«ö¤U¡§·s¼W¬M¹³ÀÉ¡¨«ö¶s¨Ó¤W¶Ç¬M¹³ÀÉ¡C



¤W¶Ç¬M¹³Àɨӷ½¿ï¾Ü¦³¨âºØ¤è¦¡¡A
¤@ºØ¬O³z¹L¥~³¡³sµ²¨Ó¤W¶Ç¬M¹³ÀÉ¡C



¥t¤@ºØ«h¬O¥ý§â¬M¹³ÀɤU¸ü¨ì­Ó¤H¹q¸£«á¡A¦A¥Ñ­Ó¤H¹q¸£¤W¶Ç¨ìOpenStack¡C



«ö¤U¡§·s¼W¬M¹³ÀÉ¡¨«á¡A¶}©l«Ø¥ß¬M¹³ÀÉ¡C




¬M¹³¤W¶Ç§¹¦¨«á¡A¥Ñ©ó¦³¤Ä¿ï¡§¤½¶}¡¨¿ï¶µ¡A
©Ò¥H¥Hdemo±b¸¹µn¤J«á¡A¤]¯à¬Ý¨ì¦¹¬M¹³ÀÉ¡A¨Ã³z¹L¥¦«Ø¥ßInstance¡C


¡ô½Ðª`·N¡IµêÀÀµwÅé¼ËªO¦Ü¤Ö­n¿ï m1.small ¥H¤W¡A§_«h¹w³]ªºms1.tiny·|¦]µwºÐ¡B°O¾ÐÅ餣¨¬¦Ó«Ø¥ß¥¢±Ñ¡I

¦b°t¸m¦n¦w¥þ©Ê¸s²Õ¡B±KÆ_¹ï»P¯B°ÊIP«á¡A
±q¥~³¡¥HSSH¨Ó¶i¦æ³sµ²ºÞ²z¡A«o·|¹J¨ì¥u¦³±b¸¹ubuntu¡A¦ý¨S¦³±K½Xªº°ÝÃD¦ÓµL³s¤J¡I¡H



³o®É­Ô¡A¡§±KÆ_¹ï¡¨´N­n¬£¤W¥Î³õ¤F¡ã



¥ý¨ìPuTTY©x¤èºô¯¸¤U¸ü PuTTYgen¡A
¤U¸ü«á¡A°õ¦æPuTTYgen¡AµM«á«ö¤U¡§Load¡¨¸ü¤J«e¸m§@·~®É¡A©Ò«Ø¥ßªº±KÆ_¹ïpemÀÉ¡C





µM«á¦A«ö¤U¡§Save private key¡¨«ö¶s¨Ó²£¥Í¦¹±KÆ_¹ïªºprivate key¡C



¥¦·|¸ß°Ý¬O§_­n«Ø¥ß¤@­ÓµLpassphrase±K½X©Ò«OÅ@ªºprivate key¡H
«ö¤U¡§¬O¡¨¡A½T©w¦p¦¹¡AµM«áÀx¦s¦¹ppk¨p¦³ª÷Æ_¡C




¦^¨ìSSH³s½u¡A¦bHost NameÄæ¦ì¿é¤Jubuntu@192.168.0.104¡A
¨ä¤¤ubuntu¬°Instanceªºµn¤J±b¸¹¡A¦Ó192.168.0.104¬°¤vÁpµ²Instanceªº¯B°ÊIP¡C



µM«á¦b Connection/SSH/Auth ªºPrivate key file¿ï¥Î­è¤~³z¹LPuTTYgen©Ò¶×¥Xªºppk¨p¦³ª÷Æ_¡C



§¹¦¨«á¡A¶}±Ò³s½u¡A·|µo²{¬O¥Hubuntuªº±b¸¹¥[¨p¦³¤½Æ_ªº¤è¦¡³s¤JSSH¡C



¦Ó¦¨¥\µn¤J¦¹UbuntuªºInstance«á¡A§Ú­Ì¥i¥Hsudo´£¤ÉÅv­­¨ìroot±b¸¹¡A
³z¹L passwd ubuntu «ü¥O³]©wubuntu±b¸¹ªº±K½X«á¡A
¦A©ó/etc/ssh/sshd_config³]©wÀɤ¤¡A­×§ï PasswordAuthentication °Ñ¼Æ¬° yes¡A¥H¤¹³\³z¹L±K½Xªº¤è¦¡¨Óµn¤J¡C



§¹¦¨«á­«±ÒsshªA°È¡A¤§«á´N¥i¥H±b¸¹/±K½Xªº¤è¦¡¸g¥ÑSSH³s¤JInstance¶i¦æºÞ²z¤F¡ã

¤W¶Ç¬M¹³Àɪº³]©w¤À¨É¨ì¦¹§i¤@¬q¸¨¡C



♥¶¶¤l¦Ñ±Cªººô©ç¡A½Ð¦hÃö·Ó¡ã

If you don't like something, change it.
If you can't change it, change your attitude.
Don't complain!




2016-04-03, 09:44 shunze ªº­Ó¤H¸ê®Æ §â shunze ¥[¤J¦n¤Í¦Cªí µo°eEmailµ¹ shunze ÂsÄý shunze ªººô¯¸ MSN : shunze@gmail.com
  « ¤W¤@½g¥DÃD ¤U¤@½g¥DÃD »
µoªí·s¥DÃD µoªí¦^ÂÐ
¸õ¨ì:

Powered by: Burning Board 1.1.1 2001 WoltLab GbR