Ubuntuã¯å ¬å¼ã¤ã¡ã¼ã¸ãããã©CentOSã¯å ¬å¼ã¤ã¡ã¼ã¸ç¡ããã ãªã¼ã¨æããªãã"chef/centos-7.0"ã¨ãã使ã£ã¦ããããchefã®boxããªããå ¨é¨bento/é ä¸ã«ç§»åãã¡ãã£ã£ãããã¦ã¦ãä½ãèµ·ãã£ããã ã£ã¦èª¿ã¹ã¦ããã¡ã«CentOSå ¬å¼ã¤ã¡ã¼ã¸ãåºã¦ãã®ãçºè¦ããã£ãããªãããããã¯å ¬å¼ã使ã£ã¦ããããã ã§ãããã¤ã«ã¯VirtualBoxã®GuestAdditionsãã¤ã³ã¹ãã¼ã«ããã¦ãªãç¶æ ã§é å¸ããã¦ããããã§ããã®ã¾ã¾vagrantã§ä½¿ããã¨ããã¨ä»¥ä¸ã®ãããªã¡ãã»ã¼ã¸ãåºã¦ãShared Folderã¨ããã¼ããã©ã¯ã¼ãã£ã³ã°ã¨ããã§ããªãã vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'centos
Vagrantfileã«ãããã¸ã§ãã³ã°ãæ¸ãã¦ã¿ãã chefãansibleãåæå¦ç¿ã³ã¹ããé«ããã ãå ¨ç¶å¤§ãããã¨ãããªãã®ã§ã·ã§ã«ã§æ¸ãããVagrantã®ããã¥ã¡ã³ãã«ã If you've never used a configuration management system before, it is recommended you start with basic shell scripts for provisioning. ã¨æ¸ããã¦ããã³ã³ãã£ã®ã¥ã¬ã¼ã·ã§ã³ããã¸ã¡ã³ãã·ã¹ãã ãããã¼ã¦ã¼ãºããªèªåã¯ã·ã§ã«ã¹ã¯ãªãããããã ãã£ã¦ãã®ã¯ä»¥ä¸ã Nginxãå ¥ãã MySQLãå ¥ãã rbenvã¨ruby-buildãå ¥ãã¦Rubyãå ¥ãã Nginxã¨MySQLããµã¼ãã¹ã¨ãã¦ç«ã¡ä¸ãã ãã£ã¬ã¯ããªæ§æ $ tree . âââ Vagrantfile âââ
Vagrantç°å¢ã«MySQLãã¤ã³ã¹ãã¼ã«ããã Vagrant ã»ããã¢ãã $ mkdir vagrant-mysql-5.6 $ cd vagrant-mysql-5.6 $ vagrant init ubuntu/trusty64 Vagrantfileç·¨é ãããã¨ã¯ï¼ã¤ ãã¼ãéã ã¡ã¢ãªæ¡å¼µ $ vim Vagrantfile ãã¼ããéæ¾ guest: Vagrant host: Vagrantãåããã¦ããPC config.vm.network "forwarded_port", guest: 3306, host: 3306 ã¡ã¢ãªãæ¡å¼µãã ã¡ã¢ãªãä¸è¶³ãã¦ããã¨èµ·åã§ããªãã®ã§ config.vm.provider "virtualbox" do |vb| # # Display the VirtualBox GUI when booting the machi
rbenvãpyenvãªã©ã§è¨èªãã¼ã¸ã§ã³ãå¤æ´ãããã¨ã¯åºæ¥ã¦ãããã®ä»ã®ç°å¢ï¼DBçï¼ãå¤ããããªãã¨æå³ç¡ãã®ã§éçºç°å¢ã¨ãã¦ä»®æ³ç°å¢ãæ§ç¯ããã ä»®æ³ç°å¢ã¨è¨ãã°æã¯VMwareãVirtualBoxçã§ä½ã£ã¦ãããã©ããéçºç°å¢ã¨ãã¦ãã£ã¨ãæ軽ã«å©ç¨ã§ããVagrantãå°å ¥ãã VirtualBoxã®ã¤ã³ã¹ãã¼ã« 以ä¸ããOSXç¨ãã¤ããªãDLãã¦ã¤ã³ã¹ãã¼ã«ããã https://www.virtualbox.org/wiki/Downloads ä»åã¯4.3.20ãã¤ã³ã¹ãã¼ã«ãããã¤ã³ã¹ãã¼ã«æ¹æ³ã¯è¿·ãã¨ãããç¡ãã®ã§å²æã èµ·åããã¨ãããªæãã Vagrantã®ã¤ã³ã¹ãã¼ã« 以ä¸ããOSXç¨ãã¤ããªãDLãã¦ã¤ã³ã¹ãã¼ã«ããã https://www.vagrantup.com/downloads.html ãããè¿·ãã¨ãããç¡ãã®ã§ã¤ã³ã¹ãã¼ã«æ¹æ³ã¯å²æã ã¤ã³ã¹
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}