{"id":4725,"date":"2014-11-12T22:16:33","date_gmt":"2014-11-12T13:16:33","guid":{"rendered":"http:\/\/www.vincentina.net\/?p=4725"},"modified":"2020-02-24T22:02:21","modified_gmt":"2020-02-24T13:02:21","slug":"%e3%82%82%e3%81%86%e3%81%a1%e3%82%87%e3%81%84%e3%82%b3%e3%83%bc%e3%83%89%e5%8c%96%e3%82%84%e3%82%8a%e3%81%be%e3%81%99%e3%81%8b%e3%80%80%e4%b8%ad","status":"publish","type":"post","link":"https:\/\/www.vincentina.net\/?p=4725","title":{"rendered":"\u3082\u3046\u3061\u3087\u3044\u30b3\u30fc\u30c9\u5316\u3084\u308a\u307e\u3059\u304b\u3000\u4e2d"},"content":{"rendered":"<h1>\u3042\u3089\u3059\u3058<\/h1>\n<p>CUI\u74b0\u5883\u306eUbuntu Server\u3067\u3001VirtualBox\uff0bVagrant\uff0b\uff08Chef\u30fbPuppet\uff09\u3067\u30c6\u30b9\u30c8\u99c6\u52d5\u3092\u3082\u3046\u3061\u3087\u3044\u3084\u3063\u3066\u307f\u3088\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\nVagrant\u3092\u5f04\u308b\u5834\u5408\u3001VirtualBox\u306e\u64cd\u4f5c\u306f\u3057\u306a\u304f\u3066\u3082\u3044\u3044\u306e\u3067\u3001\u5f53\u521d\u4e88\u5b9a\u3057\u3066\u3044\u305fWindows\u74b0\u5883\u306eVMware\u304b\u3089\u30a4\u30e1\u30fc\u30b8\u3060\u3051Ubuntu server\u306b\u79fb\u52d5\u3055\u305b\u3066BOX\u5316\u3059\u308b\u65b9\u6cd5\u306fVirtualbox\u306b\u7279\u5316\u3057\u305f\u8a71\u306b\u306a\u3063\u3061\u3083\u3046\u306e\u3067\u3001\u307e\u305f\u6539\u3081\u3066\u8a66\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h1>\u74b0\u5883\u4f5c\u308a<\/h1>\n<p>Vagrant init\u3067Vagrantfile\u306e\u3072\u306a\u5f62\u3092\u4f5c\u6210\u3057\u3066Vagrant up\u3067\u30b5\u30fc\u30d0\u30fc\u3092\u7acb\u3061\u4e0a\u3052\u305f\u3068\u3053\u308d\u304b\u3089\u30b9\u30bf\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>BOX\u306fMinimal\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3066\u306eCentOS\u306a\u306e\u3067\u3001\u307b\u307c\u7a7a\u306e\u72b6\u614b\u3067\u3059\u3002<br \/>\n\u4fbf\u5229\u3060\u306a\u3041\u3068\u611f\u3058\u308b\u306e\u306fBOX\u3055\u3048\u4f5c\u3063\u3066\u3057\u307e\u3048\u3070<\/p>\n<pre>vagrant ssh-config --host hoge &gt;&gt; ~\/.ssh\/config<\/pre>\n<p>\u3067\u767b\u9332\u3059\u308b\u3068\u3001\u3044\u3064\u3067\u3082\u30c6\u30b9\u30c8\u74b0\u5883\u306b\u5165\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Cenb\u3068\u3044\u3046\u74b0\u5883\u3068Cent_puppet\u3068\u3044\u3046\u74b0\u5883\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre>root@ubuntu:~# ssh cenb\r\nLast login: Tue Nov 11 20:48:17 2014 from 10.0.2.2\r\n[vagrant@localhost ~]$ ls\r\nhoge.txt\r\n[vagrant@localhost ~]$ exit\r\nlogout\r\nConnection to 127.0.0.1 closed.\r\nroot@ubuntu:~# ssh cent_puppet\r\nLast login: Tue Nov 11 20:48:28 2014 from 10.0.2.2\r\n[vagrant@localhost ~]$ ls\r\nhogehoge.txt\r\n[vagrant@localhost ~]$ exit\r\nlogout\r\nConnection to 127.0.0.1 closed.<\/pre>\n<p>\u3061\u3087\u3063\u3068\u5206\u304b\u308a\u3065\u3089\u3044\u304b\u3082\u3067\u3059\u304c\u3001ssh\u3067\u7e4b\u304e\u306b\u884c\u3063\u3066\u308b\u306e\u306f\u540c\u3058\u30b5\u30fc\u30d0\u30fc\u5185\u3067\u3059\u3002<br \/>\n\u3053\u3093\u306a\u611f\u3058\u306b\u30c6\u30b9\u30c8\u99c6\u52d5\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u304c\u3042\u3063\u3066\u3001\u4eee\u306bApache\u306e\u691c\u8a3c\u3092\u3057\u3066\u3044\u308b\u3068\u3057\u3066\u3001\u304b\u306a\u308a\u7c21\u5358\u306b\u8907\u6570\u306e\u30d1\u30bf\u30fc\u30f3\u3092\u691c\u8a3c\u3067\u304d\u305f\u308a\u3057\u307e\u3059\u3057\u3001\u306a\u304b\u306a\u304b\u9762\u767d\u305d\u3046\u3067\u3059\u3002<br \/>\nBOX\u3092\u5f04\u3063\u3066\u3001\u305d\u308c\u3092\u307e\u305fBOX\u306b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3066\u307f\u308b\u3068\u3001A\u3055\u3093\u30eb\u30fc\u30c8\u3068B\u3055\u3093\u30eb\u30fc\u30c8\u306e\u30d5\u30e9\u30b0\u306e\u5206\u5c90\u70b9\u3067\u30bb\u30fc\u30d6\u3057\u3066\u3069\u3063\u3061\u3082\u8a66\u3059\u3068\u3044\u3046\u4e8b\u304c\u30b5\u30fc\u30d0\u30fc\u3067\u3067\u304d\u308b\u3068\u3044\u3046\u3068\u5206\u304b\u308a\u3084\u3059\u3044\u304b\u3082\u3067\u3059\u306d\u3002<br \/>\n\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3082Git\u3092\u4f7f\u3063\u3066\u4f3c\u305f\u3088\u3046\u306a\u4e8b\u3092\u3057\u307e\u3059\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u3082\u30b3\u30fc\u30c9\u5316\u3055\u308c\u308b\u3068\u305d\u3046\u3044\u3063\u305f\u4e8b\u304c\u3067\u304d\u308b\u3068\u3044\u3046\u4e8b\u3067\u3059\u306d\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1>\u756a\u5916\u7de8<\/h1>\n<p>\u771f\u3093\u4e2d\u306b\u756a\u5916\u7de8\u3068\u3044\u3046\u306e\u3082\u304a\u304b\u3057\u306a\u8a71\u3067\u3059\u304c\u3001\u771f\u3093\u4e2d\u306b\u5165\u308c\u308b\u3053\u3068\u306b\u610f\u5473\u304c\u3042\u308b\u3068\u601d\u3063\u305f\u306e\u3067\u771f\u3093\u4e2d\u306b\u8f09\u305b\u3066\u307f\u307e\u3059\u3002<br \/>\n\u4f55\u304b\u3068\u3044\u3046\u3068<\/p>\n<h2>\u305f\u3068\u3048\u3070Apahce\u3092\u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5834\u5408\u306e\u691c\u8a3c\u3092\u8efd\u304f\u30b5\u30c3\u3068\u8a66\u3057\u305f\u3044\u3000BY Docker<\/h2>\n<p>\u3061\u3087\u3063\u3068\u9577\u3044\u30b5\u30d6\u30bf\u30a4\u30c8\u30eb\u3067\u3059\u304c\u3001\u305d\u306e\u307e\u3093\u307e\u306e\u610f\u5473\u3067\u3059\u3002<\/p>\n<p>Apache\u306e\u691c\u8a3c\u3092\u3059\u308b\u306e\u306b\u30b5\u30fc\u30d0\u30fc\u3092\u6bce\u56de\u7acb\u3066\u3066\u305f\u308a\u3001\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u5229\u7528\u3057\u3066\u4f55\u5ea6\u3082\u7e70\u308a\u8fd4\u305b\u307e\u3059\u304c\u3001\u3044\u308d\u3044\u308d\u3068\u6642\u9593\u304c\u304b\u304b\u308b\u3057\u8272\u3005\u3068\u3081\u3093\u3069\u304f\u3055\u3059\u304e\u307e\u3059\u3002<br \/>\n\u305d\u3093\u306a\u6642\u306b\u306f\u3084\u3063\u3071\u308a\u6e96\u4eee\u60f3\u5316\u3068\u601d\u3044\u307e\u3059\u304c\u3001Vagrant\u3067\u4eca\u56de\u8272\u3005\u3084\u3063\u3066\u3044\u3066\u3001Vagrant\u3067\u3082\u53ef\u80fd\u306a\u4e8b\u306f\u3082\u3061\u308d\u3093\u5206\u304b\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001Docker\u3092\u4f7f\u3063\u305f\u5834\u5408\u3069\u3093\u306a\u611f\u3058\u304b\u3092\u3084\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\uff08Docker\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u7d42\u308f\u3063\u3066\u3044\u308b\u3068\u3057\u307e\u3059\u3002\uff09<\/p>\n<p>\u30d9\u30fc\u30b9\u306eCentOS6\u306e\u30b3\u30f3\u30c6\u30ca\u3092DL&amp;\u30b7\u30a7\u30eb\u8d77\u52d5\u3002<\/p>\n<pre># sudo docker run -i -t centos:centos6 \/bin\/bash\r\nUnable to find image 'centos:centos6' locally\r\nPulling repository centos\r\n70441cac1ed5: Download complete\r\n511136ea3c5a: Download complete\r\n5b12ef8fd570: Download complete<\/pre>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u30c1\u30a7\u30b1\u30e9\u3002<\/p>\n<pre>[root@a73841901cea \/]# cat \/etc\/redhat-release\r\nCentOS release 6.6 (Final)<\/pre>\n<p>\u6700\u521d\u306e\u30a2\u30d7\u30c7\u3002<\/p>\n<pre>[root@a73841901cea \/]# yum update\r\nUpdated:\r\n\u00a0 curl.x86_64 0:7.19.7-40.el6_6.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 initscripts.x86_64 0:9.03.46-1.el6.centos.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 iproute.x86_64 0:2.6.32-33.el6_6\r\n\u00a0 libcurl.x86_64 0:7.19.7-40.el6_6.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 openssl.x86_64 0:1.0.1e-30.el6_6.4\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 tzdata.noarch 0:2014i-1.el6\r\n\r\nComplete!<\/pre>\n<p>\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre>[root@a73841901cea \/]# yum install gcc make pcre pcre-devel wget tar\r\nUpdated:\r\n\u00a0 curl.x86_64 0:7.19.7-40.el6_6.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 initscripts.x86_64 0:9.03.46-1.el6.centos.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 iproute.x86_64 0:2.6.32-33.el6_6\r\n\u00a0 libcurl.x86_64 0:7.19.7-40.el6_6.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 openssl.x86_64 0:1.0.1e-30.el6_6.4\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 tzdata.noarch 0:2014i-1.el6\r\n\r\nComplete!<\/pre>\n<p>httpd \u3068 apr \uff08\u3068\u308a\u3042\u3048\u305a\uff09DL\u3002<\/p>\n<pre>[root@a73841901cea src]# wget http:\/\/ftp.jaist.ac.jp\/pub\/apache\/httpd\/httpd-2.4.10.tar.gz\r\n[root@a73841901cea src]# http:\/\/ftp.jaist.ac.jp\/pub\/apache\/apr\/apr-1.5.1.tar.gz\r\n[root@a73841901cea src]# wget http:\/\/ftp.jaist.ac.jp\/pub\/apache\/apr\/apr-util-1.5.4.tar.gz<\/pre>\n<p>\u30c1\u30a7\u30b1\u30e9\uff08\u30c1\u30a7\u30b1\u30e9\u3063\u3066\u306a\u3093\u3060\u3063\u3051\uff09\u3002<\/p>\n<pre>[root@a73841901cea src]# ls -l\r\ntotal 8520\r\n-rw-r--r--. 1 root root 1020833 Apr 19\u00a0 2014 apr-1.5.1.tar.gz\r\n-rw-r--r--. 1 root root\u00a0 874044 Sep 20 12:59 apr-util-1.5.4.tar.gz\r\n-rw-r--r--. 1 root root 6820719 Jul 19 15:30 httpd-2.4.10.tar.gz<\/pre>\n<p>apr apr-util \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre>Libraries have been installed in:\r\n\u00a0\u00a0 \/opt\/apr\/apr-1.5.1\/lib<\/pre>\n<pre>Libraries have been installed in:\r\n\u00a0\u00a0 \/opt\/apr-util\/apr-util-1.5.4\/lib<\/pre>\n<p>apache \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre>[root@a73841901cea httpd-2.4.10]# .\/configure --prefix=\/opt\/httpd\/httpd-2.4.10 --with-apr=\/opt\/apr\/apr-1.5.1 --with-apr-util=\/opt\/apr-util\/apr-util-1.5.4<\/pre>\n<p>\u3067\u304d\u305f\u3063\u3061\u3087<\/p>\n<pre>Installing configuration files\r\nmkdir \/opt\/httpd\/httpd-2.4.10\/conf\r\nmkdir \/opt\/httpd\/httpd-2.4.10\/conf\/extra\r\nmkdir \/opt\/httpd\/httpd-2.4.10\/conf\/original\r\nmkdir \/opt\/httpd\/httpd-2.4.10\/conf\/original\/extra\r\nInstalling HTML documents\r\nmkdir \/opt\/httpd\/httpd-2.4.10\/htdocs\r\nInstalling error documents\r\nmkdir \/opt\/httpd\/httpd-2.4.10\/error\r\nInstalling icons\r\nmkdir \/opt\/httpd\/httpd-2.4.10\/icons\r\nmkdir \/opt\/httpd\/httpd-2.4.10\/logs\r\nInstalling CGIs\r\nmkdir \/opt\/httpd\/httpd-2.4.10\/cgi-bin\r\nInstalling header files\r\nmkdir \/opt\/httpd\/httpd-2.4.10\/include\r\nInstalling build system files\r\nmkdir \/opt\/httpd\/httpd-2.4.10\/build\r\nInstalling man pages and online manual\r\nmkdir \/opt\/httpd\/httpd-2.4.10\/man\r\nmkdir \/opt\/httpd\/httpd-2.4.10\/man\/man1\r\nmkdir \/opt\/httpd\/httpd-2.4.10\/man\/man8\r\nmkdir \/opt\/httpd\/httpd-2.4.10\/manual\r\nmake[1]: Leaving directory `\/usr\/local\/src\/httpd-2.4.10'<\/pre>\n<p>\u52d5\u304b\u3059YO\u3002<\/p>\n<pre>[root@a73841901cea httpd-2.4.10]# \/opt\/httpd\/httpd-2.4.10\/bin\/apachectl configtest\r\nAH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.5. Set the 'ServerName' directive globally to suppress this message\r\nSyntax OK<\/pre>\n<pre>[root@a73841901cea httpd-2.4.10]# \/opt\/httpd\/httpd-2.4.10\/bin\/apachectl start\r\nAH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.5. Set the 'ServerName' directive globally to suppress this message\r\n[root@a73841901cea httpd-2.4.10]# netstat -tln\r\nActive Internet connections (only servers)\r\nProto Recv-Q Send-Q Local Address\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Foreign Address\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 State\r\ntcp\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0 0 :::80\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 :::*\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 LISTEN<\/pre>\n<p>\u3044\u3063\u305f\u3093\u51fa\u3066\u3001COMMIT\u3002<\/p>\n<pre># docker ps\r\nCONTAINER ID\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 IMAGE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 COMMAND\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CREATED\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 STATUS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PORTS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NAMES\r\na73841901cea\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 centos:centos6\u00a0\u00a0\u00a0\u00a0\u00a0 \"\/bin\/bash\"\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 39 minutes ago\u00a0\u00a0\u00a0\u00a0\u00a0 Up 14 minutes\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cranky_leakey\r\n# docker commit a73841901cea apache\/test$(date +%Y%m%d)\r\nffb02dd544e7f28a8c138019e3c91372a6d07568f2baf799aca71a88284eb767<\/pre>\n<p>\u3067\u304d\u305f\u3088\u30fc\u3002<\/p>\n<pre># docker images\r\nREPOSITORY\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TAG\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 IMAGE ID\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CREATED\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 VIRTUAL SIZE\r\napache\/test20141112\u00a0\u00a0 latest\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ffb02dd544e7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 37 seconds ago\u00a0\u00a0\u00a0\u00a0\u00a0 447.1 MB<\/pre>\n<p>\u8d77\u52d5\u78ba\u8a8d<\/p>\n<pre># docker run -i -t -p 22 -p 80 apache\/test20141112 \/bin\/bash\r\n[root@48be48a0be58 \/]#<\/pre>\n<pre># docker ps\r\nCONTAINER ID\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 IMAGE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 COMMAND\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CREATED\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 STATUS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PORTS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NAMES\r\n48be48a0be58\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 apache\/test20141112:latest\u00a0\u00a0 \"\/bin\/bash\"\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 About a minute ago\u00a0\u00a0 Up About a minute\u00a0\u00a0 0.0.0.0:49167-&gt;22\/tcp, 0.0.0.0:49168-&gt;80\/tcp\u00a0\u00a0 high_kowalevski<\/pre>\n<pre>takeken@ubuntu:~$ curl http:\/\/hogehoge.net:49168\/\r\n&lt;html&gt;&lt;body&gt;&lt;h1&gt;It works!&lt;\/h1&gt;&lt;\/body&gt;&lt;\/html&gt;<\/pre>\n<p>\u4ee5\u4e0a\u3067\u3059\u3002\u3053\u308c\u3067\u74b0\u5883\u306f\u6574\u3044\u307e\u3057\u305f\u3002<br \/>\n\u3084\u3063\u3071\u308a\u3055\u3059\u304cDocker\u3002\u6d41\u884c\u308a\u307e\u304f\u3063\u3066\u3044\u308b\u3068\u3044\u3046\u3060\u3051\u3042\u3063\u3066\u3001<span style=\"font-size: 18pt;\">\u3042\u3063\u3068\u3044\u3046\u9593\u3067\u3059<\/span>\u3002<br \/>\n\u7523\u307e\u308c\u3066\u6b7b\u306c\u307e\u3067<span style=\"font-size: 18pt;\">\u3042\u3063\u3061\u3085\u3046\u9593\u3067\u3059<\/span>\u3002<br \/>\n\u3053\u3046\u3044\u3046\u30b1\u30fc\u30b9\u306a\u3089Docker\u306e\u65b9\u304c\u6570\u500d\u3044\u3044\u3067\u3057\u3087\u3046\u3002\u305d\u308c\u3067\u3082Vagrant\u30fbVirtualhost\u30fbChef\u306a\u74b0\u5883\u304c\u6b32\u3057\u3044\u5834\u5408\u306f\u9032\u3080\u3068\u3044\u3044\u304b\u306a\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1>Ruby<\/h1>\n<p>Chef\u306fRuby\u3001Puppet\u306f\u30aa\u30ea\u30b8\u30ca\u30eb\u3002LPIC\u306e\u554f\u984c\u96c6\u306b\u306fPuppet\u3060\u3063\u305f\u3057\u3001\u3068\u308a\u3042\u3048\u305aPuppet\u3092\u8efd\u304f\u3084\u3063\u3066\u305f\u3089\u3044\u3044\u304b\u306a\u3041\u306a\u3093\u3066\u601d\u3063\u3066\u3044\u305f\u3051\u308c\u3069\u3001Vagrantfile\u3082Ruby\u3089\u3057\u3044\u3002<\/p>\n<p>\u3069\u3046\u306b\u3082Ruby\u306f\u907f\u3051\u308c\u306a\u3044\u3088\u3046\u3060\u3002\u907f\u3051\u305f\u3044\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u306a\u3044\u3088w<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u95a2\u9023\u3063\u3066\u3044\u3046\u3068Perl\u3084\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3067PHP\u3068\u304bJquery\u3068\u304b\u3002<br \/>\n\u3042\u3093\u307e\u308aRuby\u3092\u898b\u308b\u6a5f\u4f1a\u3063\u3066\u306e\u306f\u306a\u304b\u3063\u305f\u306a\u3041\u3002<\/p>\n<p>\u305b\u3063\u304b\u304f\u3060\u3057\u3084\u308a\u307e\u3059\u304b\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1>\u524d\u56de\u3084\u3063\u305f\u30b5\u30fc\u30d0\uff0f\u30a4\u30f3\u30d5\u30e9\u5fb9\u5e95\u653b\u7565\u306e\u304a\u8a66\u3057\u306b\u3082\u3069\u308b<\/h1>\n<p>\u307e\u3060\u3084\u308a\u6b8b\u3057\u305f\u3053\u3068\u304c\u3042\u308b\u6c17\u304c\u3059\u308b\u306e\u3067\u3001\u81ea\u5206\u3067\u4f5c\u3063\u305fBOX\u3092\u4f7f\u3063\u3066\u3055\u3089\u3063\u3068\u304a\u3055\u3089\u3044\u304b\u3089\u9032\u3081\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>Vagrant\u3067\u3082Apache\u3092\u5165\u308c\u305f\u308a\u3001\u8907\u6570\u53f0\u306e\u30b5\u30fc\u30d0\u30fc\u3092\u7acb\u3061\u4e0a\u3052\u305f\u308a\u306a\u3069\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u304c\u3001\u307e\u305a\u306fChef\u3092\u66f8\u3044\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\nChef\u306fVagrant\u304b\u3089\u3059\u308b\u3068\u30d7\u30ed\u30d3\u30b8\u30e7\u30f3\u3068\u3044\u3046\u3082\u306e\u306b\u3042\u305f\u308a\u3001\u5148\u307b\u3069\u66f8\u3044\u305f\u3088\u3046\u306bVagrant\u3067\u8907\u6570\u53f0\u3092\u7acb\u3061\u4e0a\u3052\u3066\u30d7\u30ed\u30d3\u30b8\u30e7\u30f3\u3067\u8272\u3005\u3059\u308b\u3068\u304b\u3001\u76f8\u4e57\u52b9\u679c\u3067\u3059\u3054\u3044\u3053\u3068\u306b\u306a\u308b\u3089\u3057\u3044\u3002<br \/>\n\u307e\u3060\u4f7f\u3044\u3053\u306a\u305b\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u3059\u3054\u3044\u3053\u3068\u3068\u8a00\u3063\u3066\u3082\u3042\u307e\u308a\u30d4\u30f3\u3068\u6765\u306a\u3044\u3002\u3042\u304f\u307e\u3067\u30a4\u30e1\u30fc\u30b8\u3002<\/p>\n<h1>Chef<\/h1>\n<p>\u307e\u305a\u306fVM\u306bChef\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3053\u304b\u3089<\/p>\n<pre>[vagrant@localhost ~]$ curl -L https:\/\/www.opscode.com\/chef\/install.sh | sudo bash\r\n [vagrant@localhost ~]$ chef-solo -v\r\n Chef: 11.16.4<\/pre>\n<p>\u3053\u306e\u8fba\u3067Chef\u306e\u691c\u8a3c\u3082Docker\u3067\u3084\u3063\u3066\u3082\u3044\u3093\u3058\u3083\u306d\uff1f\u3063\u3066\u3055\u3055\u3084\u304d\u304c\u805e\u3053\u3048\u3066\u304f\u308b\u3051\u308c\u3069\u3001\u805e\u3053\u3048\u306a\u3044\u805e\u3053\u3048\u306a\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3067\u306f\u3001\u6b21\u56de\u3053\u305dChef\u3092\u3084\u308b\u305e\u30fc\uff01<\/p>\n<div class='wp_social_bookmarking_light'>        <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.vincentina.net\/?p=4725\" data-text=\"\u3082\u3046\u3061\u3087\u3044\u30b3\u30fc\u30c9\u5316\u3084\u308a\u307e\u3059\u304b\u3000\u4e2d\" data-via=\"TakekenTw\" data-lang=\"ja\">Tweet<\/a><\/div><\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u3042\u3089\u3059\u3058 CUI\u74b0\u5883\u306eUbuntu Server\u3067\u3001VirtualBox\uff0bVagrant\uff0b\uff08Chef\u30fbPuppet\uff09\u3067\u30c6\u30b9\u30c8\u99c6\u52d5\u3092\u3082\u3046\u3061\u3087\u3044\u3084\u3063\u3066\u307f\u3088\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002 Vagrant\u3092\u5f04\u308b\u5834\u5408\u3001VirtualBox\u306e\u64cd\u4f5c &hellip; <a href=\"https:\/\/www.vincentina.net\/?p=4725\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3082\u3046\u3061\u3087\u3044\u30b3\u30fc\u30c9\u5316\u3084\u308a\u307e\u3059\u304b\u3000\u4e2d&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[106],"tags":[],"class_list":["post-4725","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/4725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4725"}],"version-history":[{"count":0,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/4725\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}