Docker 7th birthday celebration! Join birthday.play-with-docker.com to earn a special badge
ã¯ããã« ã¢ã¯ã»ã¹ãæ¥å¢ããã¨ãå¿çæéãèããæªåãããµã¤ãã¯ããã¾ãããï¼ æ®æ®µã¯200ããªç§ä»¥å ã§å®å®ãã¦ã¢ã¯ã»ã¹ããã°ãã¦ããã®ã«ãã¤ãã³ããããã£ã³ãã¼ã³ãããéå§ããç¬éãããæ®æ®µã®ï¼åãï¼åã®ã¢ã¯ã»ã¹ã殺å°ãããã®çµæãã¬ã¹ãã³ã¹ã¿ã¤ã ã3ç§ã¨ã9ç§ã¨ããããããã«ãªã£ã¦ãã¾ããã¨ã£ã¦ããã¾ãããã ãããµã¤ãã®å®ç¶ ã¤ãå æ¥ã¾ã§ããããªãµã¤ããç§ã®ç®ã®åã«ãããã¾ãããèªç¤¾ã§éå¶ãã¦ããæã½ã¼ã·ã£ã«ç³»ã®ãµã¤ããªãã§ãããã¤ãã³ãéå§æå»ã¨åæã«ã¢ã¯ã»ã¹æ°ãæ¥å¢ããã®ã§ããã¨ã¯ãããæè©®ã¯æ®æ®µã®2åã¨ã3åç¨åº¦ã®æ°ãªã®ã ãããå°ãªãã¨ã1ç§ä»¥å ã«ã¬ã¹ãã³ã¹ãè¿ãããããã®æ§è½ã¯ç¶æããããã®ã§ãã ãããå®éã¯å°ã£ããã¨ã«ãå¿çã«3ç§ä»¥ä¸ãããã£ã¦ãã¾ãå¦çã大éã«çºçãã¦ãã¾ãç¶æ³ã«é¥ã£ã¦ãã¾ã£ã¦ãã¾ãããããã¯ãã£ã¨ãã©ããã«ããã«ããã¯ãããã«éãããã¾ããã 仮説ãç«
ã¯ããã« å æ¥ãAmazon Linuxã§èå¼±æ§ãè¦ã¤ãã£ãéã«å¼ç¤¾ã®AWSãã¼ã ã®ã¡ã³ãã¼ã以ä¸ã®è¨äºãå ¬éãã¦ãã¾ãããç§ã¯æè¿ã¾ã§ã¯ã©ã¤ã¢ã³ããµã¤ãã®éçºæ¡ä»¶ã主ã«æ å½ãã¦ããã®ã§èªåã®æ¥åã«ã¯ãã¾ãé¢ããã¯ãªãã®ã§ãããã©ã®ãããªæé ã§Linuxã®èå¼±æ§ã«å¯¾å¿ãã¦ããã®ãèå³ããã£ãã®ã§ç¤¾å ã®äººã«èããã調ã¹ã¦ã¿ããã¨ãã¾ã¨ãã¾ãã [AmazonLinux] OpenSSLã®èå¼±æ§(CVE-2015-1793)ã«ã¤ã㦠1.èå¼±æ§ã®æ å ±ãå¾ã ã¾ãã¯èå¼±æ§ãè¦ã¤ãã£ãæ å ±ã¯ã©ãããå¾ãã®ã§ããããï¼èå¼±æ§ã«é¢ããæ å ±ã¯ä»¥åãã以ä¸ã®ãµã¤ãã®RSSãªã©ããæ å ±ãå¾ããã¨ãã§ãã¾ããæè¿ã¯Twitterè¦ã¦ããç¥ã£ãããªãã¦ãã¨ãããããã§ãã Japan Vulnerability Notes JPCERT ã³ã¼ãã£ãã¼ã·ã§ã³ã»ã³ã¿ã¼ 以ä¸ã¯Twitterã®ã¢ã«ã¦ã³ãã§ãã JVN
æ¬è¨äºã®å ¬éå¾ã®2016å¹´7æã«ã¯ã¦ãªã«ããããã¥ã¼ãã³ã°äºä¾ãç´¹ä»ããã ã¯ã¦ãªã«ãããLinuxãããã¯ã¼ã¯ã¹ã¿ãã¯ããã©ã¼ãã³ã¹æ¹å / Linux network performance improvement at hatena - Speaker Deck HAProxy ã nginx ãªã©ã®ã½ããã¦ã§ã¢ãã¼ããã©ã³ãµããªãã¼ã¹ãããã·ãmemcached ãªã©ã® KVS ã®ãããªé«ãã±ããã¬ã¼ãã«ãªãããããããã¯ã¼ã¯ã¢ããªã±ã¼ã·ã§ã³ã«ããã¦ãåä¸ã® CPU ã³ã¢ã«è² è·ãåãããã«ãã³ã¢ã¹ã±ã¼ã«ããªããã¨ãããã¾ãã ä»åã¯ããã®ãããªãããã¯ã¼ã¯ã¢ããªã±ã¼ã·ã§ã³ã«ãã㦠CPU è² è·ããã«ãã³ã¢ã¹ã±ã¼ã«ããªãçç±ã¨ããã«ãã³ã¢ã¹ã±ã¼ã«ãããããã® Linux ã«ã¼ãã«ã®ãããã¯ã¼ã¯ã¹ã¿ãã¯ã®ãã¥ã¼ãã³ã°ææ³ã¨ã㦠RFS (Receive Flow Steering) ã
ã·ã§ã«ã¹ã¯ãªããã®ä¸ã§ãã¹ãã¼ã¹åºåããããã¯ã¿ãåºåãã®ã¬ã³ã¼ããæ±ããã¨ãããããã¨æãã¾ãã ãã¨ãã°ãååã®ã¨ã³ããªãAWS CLIã¨jqã使ã£ã¦ãAWSã®ELBããªã¥ã¼ã ãã¢ã¿ããããã¦ããEC2ã¤ã³ã¹ã¿ã³ã¹åãåºåããã¯ã³ã©ã¤ãã¼ãæ¸ãã - åå å·¥å ´æ¥èªãã®ã¹ã¯ãªããã®åºåã¯ä»¥ä¸ã®ããã«ãªãã¾ãã i-ec56a9f5 vol-07d00601 servername i-ec56a9f5 vol-8f550991 servername ãã®ãããªã¬ã³ã¼ãã®ç¹å®ã®åãåãåºãã¦ãå¦çããéã«ã©ãããã®ãå¹ççããã¨ããã®ããã®ã¨ã³ããªã®ãé¡ã§ãã é常ã«å¤ã話é¡ãªã®ã§ãæããã·ã§ã«ã¹ã¯ãªãããæ¸ãã¦ãã人ã«ã¯èªæãªè©±ã§ã¯ããã¾ãããæè¿ãã·ã§ã«ã®æ¨æºæ©è½ã®è©±ãèãæ©ä¼ããªãã失ããã¤ã¤ããæè¡ã«ãªã£ã¦ãã¦ããæ°ããã¦ããã®ã§ãæ¹ãã¦ç¢ºèªã¨ãããã¨ã§ã ä¾ã¨ãã¦æããã¬ã³ã¼ããã
åãã¾ãã¦ãæ°åå ¥ç¤¾ã®æ¡æ(@2k0ri)ã¨ç³ãã¾ãã å ¥ç¤¾ããä»æ¥ã¾ã§ç´ï¼ã¶æéãç ä¿®ããã³OJTãåãããã¦é ãã¦ããã¾ããã ãã®åOJTã®ã¹ãã¼ã¸ã³ã°ç°å¢ã§ããããã¤å ãã£ã¬ã¯ããªã®ã·ã³ããªãã¯ãªã³ã¯ãæ¶ãã¤ããã ãããã¤ãã£ã¬ã¯ããªãä¸èº«ãã¨rm -rfãã ã¨ããé度ã®ããããããã§ããã¾ããã 30ç§ãã¡ã²ããããå¾ãã°ã°ã£ã¦ extundeleteã¨ããã³ãã³ããè¦ã¤ãã¦ããã® èªåãè¡ã£ããªã«ããªã¼ã®æé ãæ®ãã¾ãã ãªãããã®ã³ãã³ãã¯ext3/ext4ãã©ã¼ãããå°ç¨ã«ãªãã¾ãã 1. ãµã¼ãã¼ã¸ã®ã¢ã¯ã»ã¹ãåºæ¥ãéãæããããã«å¨ç¥ æè¿ã®Linuxã®ããã¡ã¯ãFSã§ããext4ãã©ã¼ãããã¯ãrmããããã¼ã¿ã®è·¡å°ã« å¾ ã£ããªãã§å®¹èµ¦ãªãæ°ãããã¼ã¿ãæ¸ãè¾¼ã¾ãã¦ããã¾ãã ãã®ãããä½ãããã¾ã失ããããã¼ã¿ãä¸æ¸ããããªãããã«ã 該å½ãµã¼ãã¼ã§ãããããã
ã©ã¡ããä¸æãã¡ã¤ã«ãä¿åãããã£ã¬ã¯ããªã ããã©ãã¡ããã¨èª¬æããã£ãã®ã§ã¡ã¢ã /tmp ã»åèµ·åããã¨ãã¡ã¤ã«ã¯æ¶ãã ã»å®æçã«åé¤ãããï¼10æ¥ï¼ /var/tmp ã»åèµ·åãã¦ããã¡ã¤ã«ã¯æ¶ããªã ã»å®æçã«åé¤ãããï¼30æ¥ï¼ CentOS 6.xã®å ´åã»ã»ã» åèµ·åå¾ã®å¦çã¯ã/etc/rc.d/rc.sysinit ã§è¡ãããã å®æçã«åé¤ããå¦çã¯ã/etc/cron.daily/tmpwatch ã§è¡ãããã ãããã®ç¨éã¯ãFHSï¼Filesystem Hierarchy Standard(ãã¡ã¤ã«ã·ã¹ãã é層æ¨æºï¼ã«è¨è¼ããã¦ããã Filesystem Hierarchy Standard http://www.pathname.com/fhs/ FHS 2.3ã«ããã¨ã»ã»ã» /tmpï¼P.15 The /tmp directory must be made
ç¢å£ã§ãã ã¿ãªããã¯Linuxã®tcã¨ããæ©è½ããåç¥ã§ãããããéä¿¡ãããã±ããã®å¸¯åå¶å¾¡ãè¡ããã¨ãã§ãã大å¤å¼·åãªæ©è½ã§ãã°ãªã¼ã§ãããã¤ãã®ç¨éã§ä½¿ç¨ããã¦ãã¾ãã å ·ä½çãªäºä¾ã®ä¸ã¤ã¯Redisã§ããRedisã§ã¯replicationãæ°è¦ã«éå§ããéãfailoverãçºçãmasterãåãæ¿ãã£ãé(ç¹ã«2.6ç³»)ã«ã¹ãã¢ããã¦ããå ¨ãã¼ã¿ã転éããã¾ããããã帯åå¶éããããæ©è½ããªãããããããã¯ã¼ã¯å¸¯åãå§è¿«ãã¦ãã¾ãå±éºæ§ãããã¾ããã¾ãé常ã®ã¯ã©ã¤ã¢ã³ãã¨ã®éä¿¡ã§ã大éã®ã¯ã¨ãªã«ããäºæ³ä»¥ä¸ã®å¸¯åã使ç¨ãã¦ãã¾ãå¯è½æ§ãããã¾ãããã®ãããªå ´åã«tcãç¨ãããã¨ã§Redisã®ä½¿ç¨ãã帯åãã³ã³ããã¼ã«ã§ãã¾ãã ãã®ããã«æç¨ãªtcã§ããæ®å¿µãªãã¨ã«æ¥æ¬èª/è±èªã¨ãã«ãããããã解説ã詳細ãªæ å ±ã¯å¤ãããã¾ããã ç§ã社å ã«ããã¦ä½¿ããã¦ããtcã®è¨å®ã«åé¡ã
13. Linuxç°å¢æ§ç¯ï¼1â¼äºº/ãã¼ã éçºåãã¦ã¼ã¹ã±ã¼ã¹ lï¬ 1å°ã®ãã·ã³ç°å¢ããå©ï§â½¤ç¨ããªãâãâ ããã¯ã¹ã¿ã¼ãå¿ è¦ãªããã lï¬ 1å°ã®ç©ç理ãã·ã³ãããªãããã©ããã·ã³ç°å¢ã¯è¤æ°æ¬²ãã lï¬ lï¬ lï¬ â Amazon EC2çã®ãµã¼ãã¹ã使ãï¼ã⾦éï¤ãããã°ï¼ â ä»®æ³ãã·ã³ã使ãï¼CPU, RAMçã«ä½è£ãããã°ï¼ 2å°ä»¥ä¸ã®ç©ç理ãã·ã³ãããã»â½¤ç¨éãã¨ã«ç°å¢ãåé¢ï§ªããã lï¬ å種仮æ³ãã·ã³ã¢ãã¿ãå©ï§â½¤ç¨ãã¾ããã lï¬ lï¬ lï¬ VirtualBox, VMware, QEMU(KVM)ãªã© ä»ã®â¼äººã¸ã®ä½æ¥å¼ãç¶ãããããªããVagrantãæ¤è¨ãã¦ã¯ï¼ AWSãªã©ã使ã£ã¦ãã 13
ããã«ã¡ã¯ãæè¤ã§ãã ITã¤ã³ãã©ã®é害ã¯ãå¤ãã®å ´åãäºæãã¬ãã¿ã¤ãã³ã°ã§çºçãã¾ããç¹ã«ãCPUãªã½ã¼ã¹ãå¤éã«æ¶è²»ããããDisk I/Oã輻輳ãã¦ããå ´åããã®åãåãã¯å°é£ãªç¶æ³ã«é¥ãããããã®ã§ãã ããã§ãæ¬æ¥ã¯ITã¤ã³ãã©ãç¹ã«OSã»ããã«ã¦ã§ã¢ãæ¯ããã«ããã£ã¦ãåé¡è§£æ±ºãå©ãã¦ãããã§ããã12åã®ã³ãã³ããåãä¸ãã¦ã¿ã¾ãããå¿ ãæ¼ããã¦ããããã5ã¤ã®ãã®ã¨ãæ´ã«è¦ããã¨ä¾¿å©ãªã³ãã³ãã7ã¤ã®2ç¯ã«åãã¦ã話ããã¾ãã â»CentOS 6.4 (64bit)ãåæã«åãä¸ãã¾ã å¿ ãæ¼ããã¦ããããã³ãã³ã ããITã¤ã³ãã©ç®¡çè ã«ãªããã¦ãªæ¹ã¯ãã² ãµã¼ããµã¤ãã®ããã°ã©ãããã£ã¦ããã®ã ããã©ãããæ¥çªç¶ãåããµã¼ã管çæ å½ãï¼ãã¨ãããã³ã渡ãããæ¹ã£ã¦ããã£ãããã¨æãã¾ããç§ã以åã¯ãã®ã¯ãã§ãã...ããããªã£ã¦ãã¾ã£ãã¨ããã¾ãã¯è¦ãã¦ãããã5ã¤
å®ä¾¡ãªãã¤ã³ã³ãã¼ããArduinoãã¨Linuxãµã¼ãã¼ãçµã¿åããã家é»ãå¶å¾¡ãã¾ããåºå ã§ã¹ãã¼ããã©ã³ãªã©ããæåã§ã¨ã¢ã³ã³ãON/OFFããããé¨å±ã®æ°æ¸©ãé«ããªã£ãã¨ãèªåã§ã¨ã¢ã³ã³ãã¤ããããã¾ããECãµã¤ãã®ç¹å£²æ å ±ããã§ãã¯ãã¦ãç®è¦ã¾ããé³´ããã¾ãã 2000åå°ããã¨å®ä¾¡ãªãã¤ã³ã³ãã¼ããArduinoãã¯ãè²ã ãªã»ã³ãµã¼ãä»ãã¦å¨ãã®ç¶æ³ã調ã¹ããã赤å¤ç·LEDãåãä»ãã¦å®¶é»ã®ãªã¢ã³ã³ã¨ãã¦åããããã§ãã¾ãï¼åçï¼ã ä»åã¯ããã®Arduinoãã¼ãã¨Linuxãµã¼ãã¼ãé£æºãããæ¥ã ã®çæ´»ãã¡ããã£ã¨ä¾¿å©ã«ããã·ã¹ãã ãä½ãã¾ãããç®è¦ã¾ãæè¨ãå ¼ãããã¤ã³ããªã¸ã§ã³ããªå¦ç¿ãªã¢ã³ã³ã¨ãã¦åä½ãã¾ãã好ã¿ã«åãããã«ã¹ã¿ãã¤ãºãå¯è½ã§ãã ã¨ã¢ã³ã³ãèªå¨ã«å¶å¾¡ ä»åã®ã·ã¹ãã ã¯ã大ãã3ã¤ã®æ©è½ãæã¡ã¾ãï¼å³1ï¼ã1ã¤ç®ã¯ãåºå ããã¨ã¢ã³ã³ãå¶å¾¡ããæ©è½ã§ãã
95MB/sã§ç¾å¨ä¸çæéã®microSDHCã«ã¼ããSanDiskã®Extreme Proã使ç¨ããå ´åãæ¢åã®è£½åã§ããEye-FiãFlashAirãFlucard Proãã¯ããå¾æ¹ã«ç½®ãå»ãã¹ãã¼ããåºã¾ãã4kã®ã·ã¼ã±ã³ã·ã£ã«æ¸ãè¾¼ã¿38.98MB/sã«æ³¨ç®ã ããã¾ã§ã¯ç¡ç·LANå èµSDã«ã¼ãã使ããã¨ããå ´åãã¹ãã¼ãããå©ä¾¿æ§ãã®ãã¬ã¼ããªããè¿«ãããã®ã§ãããããããèè¤ã¯éå»ã®ãã®ã¨ãªãã¾ããã éãããå©ä¾¿æ§ãããã®ä¸¡æ¹ãæãã®æä¸ã«ããã¾ãã PQI Air Cardã¯ARM CPUãæè¼ã # cat /proc/cpuinfo Processor : ARM926EJ-S rev 5 (v5l) BogoMIPS : 421.06 Features : swp half fastmult edsp java CPU implementer : 0x41 CPU
1. Copyright(C) Software Research Associates, Inc. All Rights Reserved. ã¨ã³ã¸ãã¢ãªãç¥ã£ã¦ãããã ãä»®æ³ãã·ã³ãã®ããã¿ v1.1a hbstudy #17 (2010/11/26 ããã¼ä¼è°å®¤ï¼ æ°å®¿) ãããã¯ã¼ã¯ã·ã¹ãã ãµã¼ãã¹æ¬é¨ ãããã¯ã¼ã¯éç¨ã»æ§ç¯é¨ é·è°·å· ç (hasegaw at sra.co.jp) Twitter : @hasegaw â»æ¬è³æä¸ã®è§£èª¬å 容ã¯ãå¼ç¤¾ã¨ãã¦ã® çµ±ä¸çãªè¦è§£ã示ããã®ã§ã¯ããã¾ããã 2. 2 èªå·±ç´¹ä» æå±æå± èå³åéèå³åé æ ªå¼ä¼ç¤¾SRA ãããã¯ã¼ã¯ã·ã¹ãã ãµã¼ãã¹æ¬é¨ ãããã¯ã¼ã¯éç¨ã»æ§ç¯é¨ ç¾å¨ã¯ææ¡æ¯æ´æ¥åã«æºãã ç¹ã«Linux ãä»®æ³åæè¡ãå¾æã¨ããã éé£ç³»ã·ã¹ãã ã¨ã³ã¸ã㢠主ãªèæ¸ä¸»ãªèæ¸ ãXen å¾¹åºå ¥éã åçã第äºçï¼2007ã
ã¿ã¤ãã«ã¯é£ãã½ãã ä»æ¥ããã§æ¸ãã®ã¯ããããæè¿ç¥ã£ããã¨ã ã£ããããã®ãå¤ããã§ããããã£ãããªã®ã§æ¸ãã¦ãããããªãã¨æã£ã次第ã§ããLinuxã£ã¦æ¸ãã¦ããã©ãæ®éã«Macã§ã使ããããºã§ãã ç¥ã£ã¦ã人ã«ã¨ã£ã¦ã¯ã¢ã¿ãªãã¨ã®ãã¨ã§ããã©ãâ¦â¦ã ãã¡ã¤ã«ãµã¤ãºã®æ¡ã§ãããã¦ããããã ls ã¨ã duãããã§ä½¿ãã話ã§ããã ãã¡ã¤ã«ãµã¤ãºã大ãããã¦ããã¨è¦ããããªããã£ã¦ãããã¨ã£ã¦ãããããªãã§ãããããã¾ããããããããã ãããªæ㯠-h ãªãã·ã§ã³ã使ãã¾ãããã $ ls -l /var/log/nginx/access.log -rw-r--r-- 1 root root 1897381 8æ 26 02:50 2012 /var/log/nginx/access.log $ ls -lh /var/log/nginx/access.log -rw-r--r--
ã¨ã³ã¸ãã¢ã¨ããè·æ¥æãã·ã§ã«ã¹ã¯ãªãããæ¸ããã¨ã¯ã¡ããã¡ããããã®ã§ãããèªåãªãã«æ°ãä»ãã¦ãããã¨ãåå¿é²ï¼èªåã¸ã®æããå«ãã¦ãç°¡åã«æ¸ãã¦ã¿ããã¨æãã¾ãã å¤æ°ã¯å¤§æå ã·ã§ã«ã¹ã¯ãªããæ¸ãã¦ããã°å¤æ°ã®åºçªã¯è³ãã¨ããã§ããã§ãããããã®éãå¯èªæ§ãå¢ãããã«ãå¤æ°ã¯å¤§æåã使ã£ã¦ãã¾ãã RET=`cmd1`ã¿ããã«ã好ã¿ã®åé¡ãããã§ãããããåãããããã®ã§ã ã¯ãªãã¼ã·ã§ã³ã¯é¸ã¶ ã¯ãªãã¼ã·ã§ã³ã«ã¯ã·ã³ã°ã«ã ã£ãããããã«ã ã£ããè²ã ããã¾ããã使ãåãã¦ãããã»ããããã§ãããã å¤æ°ã®å±éããªãããã§ããã°ãã·ã³ã°ã«ã¯ãªã¼ãã¼ã·ã§ã³ã®ã»ããã¹ãã¼ãã§ãããããå±éãããã®ãªãããã«ã¯ãªã¼ãã¼ã·ã§ã³ã使ãã°ã¨ã ããã«ã¯ãªã¼ãã¼ã·ã§ã³ã使ãã®ã«ãæå³ããã£ã¦ãå¤æ°ã¯ã$RETãã®ããã«ã¯ãªãã¼ã·ã§ã³ã§å²ã¾ãªãã¦ãåä½ã¯ããã¦ãããã®ã§ããã echo "${RET
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}