VirtualBoxã«CentOSãèªåã§100åå ¥ããæ¹æ³
ä»®æ³åã½ããVirtualBoxã«CentOSãèªåã§100åå
¥ããæ¹æ³ã®èª¬æã§ãã
æè¿ãä¸æ¯æ°ã§ã©ãã«ãããã«ãä¸ç¥è¾ãä¸ã®ä¸ã«ãªã£ã¦ããã®ã§ããã¦ä»®æ³ç©ºéã ãã§ãæ°åããçãããã£ã¦ãã¨ã§ãVirtualBoxã«èªåã§CentOSã100åå
¥ãã¦ã¿ã¾ããã
以ä¸ãã®æ¹æ³ã®èª¬æã§ãã
ãã³ãã¬ã¼ãã¨ãªãä»®æ³ãã·ã³ãVirtualBoxã«ä½æ
ã¾ãã¯ä¸ã¤ã ããã³ãã¬ã¼ãã¨ãªãä»®æ³ãã·ã³ãä½æãã¦ããã¾ãã
ä»åã¯ããããã¼ããªCentOSãã¤ã³ã¹ãã¼ã«ãã¦ããsudo yum updateãã§ææ°ã®ç¶æ
ã«ãã¦ããã¾ããã
ããããã¼ãã®æ¹æ³ãªã©ã¯ãã¡ãã®è¨äºãåèã«ãã¦ãã ããã¾ãã
facebookやmixiで有名なSNSを自前でインストールする方法
ã³ãã³ãã©ã¤ã³ã§ä»®æ³ãã·ã³ãä½æ
VirtualBoxã¯å ãLinuxç³»ã ã£ããããã³ãã³ãã©ã¤ã³ï¼CUIï¼ã§å¶å¾¡ãããã¨ãå¯è½ã§ãã
$ VBoxManage
ãã³ãã¬ã¼ããªä»®æ³ãã·ã³ã®ãvdiããã¡ã¤ã«ã使ãã¾ããã¦ä»®æ³ãã·ã³ã次ã ã¨æ°è¦ä½æãã¦ããã¾ãã
$ VBoxManage clonevdi --format VDI from.vdi to.vdi
PHPããã°ã©ã
èªåã§ä»®æ³ãã·ã³ãä½ã£ã¦ãããPHPãªããã°ã©ã ã¯ä»¥ä¸ã«ãªãã¾ãã
åºæ¬çã«VBoxManageã使ãã ããªã®ã§ãPHP以å¤ãªè¨èªã§ãããã°ã©ã ãä½æã§ãããã¨æãã¾ãã
index.php
<?php $vmArr = array( "vm01", "vm02", "vm03", "vm04", "vm05", "vm06", ); foreach( $vmArr as $vm ){ mkdir( "{$vm}" ); exec( " VBoxManage clonevdi --format VDI template_centos64/entos.vdi {$vm}/{$vm}.vdi " ); exec( " VBoxManage createvm --name {$vm} --ostype RedHat_64 --register " ); exec( " VBoxManage modifyvm {$vm} --memory 512 --vram 8 --hwvirtex on --cpus 1 --scsi on --scsiport1 {$vm}/{$vm}.vdi " ); exec( " VBoxManage startvm {$vm} --type headless " ); } ?>
VBoxManageã®ãªãã·ã§ã³ã¨ãã¯ã¡ãã£ã¨è©³ãããªãã®ã§ãã®è¾ºã®è©³ãã説æã¯ãVBoxManageコマンド | VirtualBox Maniaããªã©ããåç §ãã¦ãã ããã¾ãã
å®è¡
ãã©ã¦ã¶ãããã¡ã¤ã«ãå©ãã¦ãããã§ããã以ä¸ã®ããã«ã³ãã³ãã©ã¤ã³ã§ãOKã§ãã
$ php index.php
ã ãããï¼ä»®æ³ãã·ã³ãï¼ï¼åç¨åº¦ã§ä½æããã¾ãã
ï¼å° Core i7 㧠SSD ãªãã·ã³ãè²·ã£ã¦ç 究室ã§ã«ã¹ã¿ãã¤ãºãããä»®æ³ãã·ã³ã使ãã¨ããããã¨ãããããããªããã£ã¦æãã¾ãã
â»ffmpegãOpenCVãã¤ã³ã¹ãã¼ã«ããããã®ãªã©ã
MySQLã¨é£æºããã°ãæ°ããæ°å
¥çãæ¥ãã¨ãã«èªåã§ä½æãããã¨ãå¯è½ã§ãã
GSessionãªã©ã¨ãé£æºããã°ãã¹ã ã¼ãºã«è¡ãã§ãããã
ãã¨ããããããCentOS 100åå
¥ãã¦ãªãã§ããå¤åã¡ã¢ãªè¶³ããªãããããªãããªï¼æ±
è£è¶³
ä»®æ³ãã·ã³ã«IPã¢ãã¬ã¹ã§ã¢ã¯ã»ã¹è¨å®ããæ¹æ³ã§ãããä¸è¨ç»åã®ããã«ããã°ãOKã¨ã®ãã¨ã
ã¤ã³ã¿ã¼ãããå
±æã®ãã§ãã¯ãããããï¼
åèãªã³ã¯
åèã«ãªãæ¬
ã¯ããã¦ã®CentOS5 Linuxãµã¼ãæ§ç¯ç·¨ (TECHNICAL MASTER)
- ä½è : ã©ã¯ã¹
- åºç社/ã¡ã¼ã«ã¼: ç§åã·ã¹ãã
- çºå£²æ¥: 2010/04
- ã¡ãã£ã¢: åè¡æ¬
- è³¼å ¥: 1人 ã¯ãªãã¯: 23å
- ãã®ååãå«ãããã° (8件) ãè¦ã
ã¼ãããããã PHPè¶ å ¥é
- ä½è : æéé¦ä¿å
- åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾
- çºå£²æ¥: 2009/12/22
- ã¡ãã£ã¢: 大åæ¬
- è³¼å ¥: 7人 ã¯ãªãã¯: 52å
- ãã®ååãå«ãããã° (7件) ãè¦ã