2016ÄêÈ«¹ú¸ßÖ°ÔƼÆËã¼¼ÊõÓëÓ¦ÓÃJ¾í ÏÂÔر¾ÎÄ

ÄÚÈÝ·¢²¼¸üÐÂʱ¼ä : 2025/1/23 10:27:49ÐÇÆÚÒ» ÏÂÃæÊÇÎÄÕµÄÈ«²¿ÄÚÈÝÇëÈÏÕæÔĶÁ¡£

2016ÄêÈ«¹úְҵԺУ¼¼ÄÜ´óÈü£¨¸ßÖ°×飩¡°ÔƼÆËã¼¼ÊõÓëÓ¦Óá± J¾í

2016ÄêÈ«¹úְҵԺУ¼¼ÄÜ´óÈü£¨¸ßÖ°×飩

¡°ÔƼÆËã¼¼ÊõÓëÓ¦Óá± J¾í

µÚÒ»²¿·Ö£ºÔÆƽ̨¼Ü¹¹

ÈüÏîϵͳ¼Ü¹¹Èçͼ1Ëùʾ£¬IPµØÖ·¹æ»®Èç±í1Ëùʾ¡£

¸ù¾Ý¼Ü¹¹Í¼¼°IPµØÖ·¹æ»®±í£¬¼ì²éÓ²¼þÁ¬Ïß¼°ÍøÂçÉ豸ÅäÖã¬È·±£ÍøÂçÁ¬½ÓÕý³£¡£

ͼ1 ϵͳ¼Ü¹¹Í¼

µÚ 1 Ò³ ¹² 1 Ò³

2016ÄêÈ«¹úְҵԺУ¼¼ÄÜ´óÈü£¨¸ßÖ°×飩¡°ÔƼÆËã¼¼ÊõÓëÓ¦Óá± J¾í

±í1 IPµØÖ·¹æ»®±í

É豸Ãû³Æ ÔÆ·þÎñÆ÷1 ½Ó¿Ú eth0 eth1 eth0 IPµØÖ· 192.168.100.10/24 192.168.200.10/24 192.168.100.20/24 192.168.200.20/24 172.16.x.2/16 172.16.x.3/16 172.16.x.4/16 172.16.x.1/16 192.168.100.1/24 192.168.200.1/24 Vlan 100 Vlan 200 Vlan 100 Vlan 200 Vlan 1 Vlan 1 Vlan 1 ˵Ã÷ ÔÆ·þÎñÆ÷2 eth1 PC-1 PC-2 PC-3 ±¾µØÁ¬½Ó ±¾µØÁ¬½Ó ±¾µØÁ¬½Ó Vlan 1 ½»»»»ú Vlan 100 Vlan 200

xΪ¿¼Î»ºÅ µÚ¶þ²¿·Ö£ºÔÆƽ̨´î½¨

³¡¾°ËµÃ÷

ijÆóÒµ¼Æ»®´î½¨Ë½ÓÐÔÆƽ̨£¬ÒÔʵÏÖ¼ÆËã×ÊÔ´µÄ³Ø»¯µ¯ÐÔ¹ÜÀí£»ÆóÒµÓ¦Óõļ¯ÖйÜÀí£»Í³Ò»°²È«ÈÏÖ¤ºÍÊÚȨ¹ÜÀí¡£ÐèÍê³ÉÔÆƽ̨¼Ü¹¹µÄÉè¼Æ¡¢ÏµÍ³²¿Êð£¬ÔÆ´æ´¢ÍøÅÌweb¿ª·¢¼°¿Í»§¶Ë¿ª·¢¡£ÊÔ¸ù¾ÝÒÔÉÏÓû§ÐèÇó£¬Íê³ÉÒÔÏÂÈÎÎñ¡£

ÈÎÎñÒ»¡¢IaaSƽ̨ϵͳ׼±¸£¨4·Ö£©

1.»·¾³ÅäÖÃ(1·Ö)

ÊÖ¶¯ÅäÖÃÔÆƽ̨IaaS¸÷½ÚµãµÄϵͳ²ÎÊý£º

¿ØÖƽڵãÖ÷»úÃû£ºcontroller£»¼ÆËã½ÚµãÖ÷»úÃû£ºcompute£»ÐÞ¸ÄhostsÎļþ£¬Ó³Éä¸÷½Úµã¹ÜÀíipÓëÖ÷»úÃû£¬ÊµÏÖÔÆƽ̨¹ÜÀíÍøÂçµØÖ·£¨ÄÚ²¿¹ÜÀíµØÖ·£©ÓëÖ÷»úÃûµÄÓ³É䣻¸÷¸ö½Úµã¹Ø±Õ·À»ðǽ£¬ÉèÖÿª»ú²»Æô¶¯£¬ÉèÖÃselinuxΪpermissive¡£

µÚ 2 Ò³ ¹² 2 Ò³

2016ÄêÈ«¹úְҵԺУ¼¼ÄÜ´óÈü£¨¸ßÖ°×飩¡°ÔƼÆËã¼¼ÊõÓëÓ¦Óá± J¾í

ʹÓÃÏà¹ØÃüÁî²éѯÏÔʾ¿ØÖƽڵãºÍ¼ÆËã½ÚµãÖ÷»úÃû£¬Ê¹ÓÃcatÃüÁî²éѯ¼ÆËã½ÚµãÖ÷»úÃûÓ³ÉäÅäÖÃÎļþµÄÏêϸÐÅÏ¢£¬Ê¹ÓÃsestatusÃüÁî½øÐвéѯ¡£ÒÔÎı¾ÐÎʽÌá½»ÒÔÉÏËùÓвéѯÃüÁî¼°½á¹ûµ½´ðÌâ¿ò¡£ 2.FTPÅäÖÃ(1·Ö)

°ÑÈí¼þ°ü¿½±´µ½¿ØÖƽڵã/opt/·¾¶Ï£¬É¾³ý¿ØÖƽڵãyumÔ´Îļþ¼Ð/etc/yum.repos.d/ÖеÄÒÑÓÐÅäÖã¬ÅäÖÿØÖƽڵãʹÓñ¾µØyumÔ´£¬ÅäÖÃÎļþÃûΪyum.repo£¬°²×°²¢ÅäÖÃftp·þÎñ£»¼ÆËã½ÚµãyumÔ´ÎļþÃûΪyum.repo£¬ÅäÖò¢Ê¹ÓÿØÖƽڵãµÄftp·þÎñ¡£

ʹÓÃcatÃüÁî²é¿´¼ÆËã½ÚµãµÄ/etc/yum.repos.d/yum.repoÎļþ¡£ÒÔÎı¾ÐÎʽÌá½»²éѯÃüÁî¼°½á¹ûµ½´ðÌâ¿ò¡£ 3.NTPÅäÖÃ(1·Ö)

ÔÚ¸÷½Úµã°²×°ntp·þÎñ£¬ÔÚ¿ØÖƽڵãÉÏʹÓÃÎļþ/etc/ntp.confÅäÖÃntp·þÎñ£¬½«¼ÆËã½ÚµãʱÖÓͬ²½µ½¿ØÖƽڵ㡣

½«¼ÆËã½Úµãͬ²½¿ØÖƽڵãµÄÃüÁî¼°½á¹ûÒÔÎı¾ÐÎʽÌá½»µ½´ðÌâ¿ò¡£ 4.QPID°²×°£¨1·Ö£©

ÔÚ¿ØÖƽڵ㰲װQPID·þÎñ£¬ÐÞ¸ÄÅäÖÃÎļþºóÆô¶¯·þÎñ£¬²¢ÉèΪ¿ª»ú×ÔÆô¡£ ½«QPIDÅäÖÃÎļþÃû³Æ£¬ÐÞ¸ÄÄÚÈÝ£¬ÒÔÎı¾ÐÎʽÌá½»µ½´ðÌâ¿ò¡£

ʹÓÃchkconfig²éѯ²¢Ê¹ÓÃgrepÃüÁî¹ýÂ˳öqpid·þÎñµÄÆô¶¯¼¶±ð£¬ÒÔÎı¾ÐÎʽÌá½»²éѯÃüÁî¼°½á¹ûµ½´ðÌâ¿ò¡£

ÈÎÎñ¶þ¡¢IaaSϵͳ×齨£¨20·Ö£©

1.»·¾³±äÁ¿ÅäÖã¨2·Ö£©

ÔÚ¿ØÖƽڵãºÍ¼ÆËã½Úµã·Ö±ð°²×°iaas-xiandian°ü£¬Íê³ÉÅäÖÃÎļþÖлù±¾±äÁ¿µÄÅäÖá£

¸ù¾Ý±í2Íê³ÉÖ¸¶¨±äÁ¿µÄÅäÖã¬ÒÔÎı¾ÐÎʽÌá½»¿ØÖƽڵãµÄÅäÖÃÎļþµ½´ðÌâ¿ò¡£

µÚ 3 Ò³ ¹² 3 Ò³