主ã«ã¢ããªã±ã¼ã·ã§ã³éçºè åãã«ãLinuxãµã¼ãä¸ã®åé¡ã調æ»ããããã«ãã¦ã§ããªãã¬ã¼ã·ã§ã³ã¨ã³ã¸ãã¢ã¨ãã¦æ¥å¸¸çã«ãã£ã¦ãããã¨ãç´¹ä»ãã¾ãã ã¨ãããã調ã¹ããã¨ãç¾ åãã¦ããã®ã§ã¯ãªããæ¬å½ã«èªåãç¾å ´ã§ä½¿ã£ã¦ãããã®ã ãã«æ å ±ãçµã£ã¦ãã¾ãã æ®æ®µä½¿ã£ã¦ããããã©ããã¢ããªã±ã¼ã·ã§ã³éçºè åãã§ã¯ãªããã®ã¯ããã¦çãã¦ãã¾ãã MySQLãNginxãªã©ãåå¥ã®ããã«ã¦ã§ã¢ã«éå®ãããã¦ãã¦ã«ã¤ãã¦ã¯æ¸ãã¦ãã¾ããã ãã°ã¤ã³ãããã¾ã確èªããã㨠ä»ã«ãã°ã¤ã³ãã¦ãã人ãããã確èªï¼wï¼ ãµã¼ãã®ç¨¼åæéã®ç¢ºèª (uptime) ããã»ã¹ããªã¼ãã¿ã (ps) NICãIPã¢ãã¬ã¹ã®ç¢ºèª (ip) ãã¡ã¤ã«ã·ã¹ãã ã®ç¢ºèªï¼dfï¼ è² è·ç¶æ³ç¢ºèª top iostat netstat / ss ãã°èª¿æ» /var/log/messages or /var/log/syslog /
Linuxãªã©ãå©ç¨ããä¸ã§ããããã¯ã©ããã£ããå®ç¾ã§ããã®ã ãããã¨æããã¨ã¯æ°ç¥ããªããæ¬é£è¼ã§ã¯ãã¦ã¼ã¶ã¼ãã²ãã±ãã«ééããã§ãããåé¡ã¨ããã®è§£æ±ºæ¹æ³ã解説ãããä¸ç´è ã«ã¯æ°ããªçºè¦ããåå¿è ã«ã¯ä¸ç´è ã¸ã®éã®æå¼ãã¨ãªãã ããã ãã¡ã¤ã«ããã£ã¬ã¯ããªãããã¯ã¢ããï¼åæããããã®ãã¼ã«ã¯å¹¾ã¤ãåå¨ãã¦ãã¾ãããrsyncã¯ã¨ããã大ããªäººæ°ãèªã£ã¦ããã¨ãã£ã¦ããã§ããããå¤æ´åãæ¤åºãã¦å·®åã®ã¿ã転éãããã¨ã§ããããã¯ã¼ã¯çµç±ã§ãå¹ççã«ããã¯ã¢ããï¼åæãè¡ããç¹ããsshãªã©ã®ãªã¢ã¼ãã·ã§ã«çµç±ã§ã®å©ç¨ãå¯è½ãªç¹ãªã©ãæ©è½ã®æ´ç·´åº¦ã¯ãããã«ç»å ´ãã10年以ä¸ãã£ã¦ããã ãã®ãã¨ã¯ããã¾ããããã¯ã¢ããããã©ã¼ãªã³ã°ãªã©ã®ç¨éã§ããã°ãåºæ¬çã«ã¯ã³ãã¼å ã¨ã³ãã¼å ã§ããããªéãããçºçããªãã¯ãã§ããã¡ã¤ã«ã®ç¸éé¨åã ãã転éããrsyncã¯å¹ççã«æ©è½ãã¾ãã ãã
ãªãStackOverflowã Upvote/Downvoteã®ä»çµã¿ã«ãããèªç¶ã¨ãã¹ããã©ã¯ãã£ã¹ãèç©ããã¦ãã ä¸çä¸ã®ããã°ã©ãã®ç®ã«æããã¦ãããã質ãé«ã çããå¹¾ã¤ãåºããã¦ããããè¦éãåºããã»ä¸ã¤ã®ææ³ã«åºå·ãããã¨ããªã è±èªã®åå¼·ã«ããªã StackOverflowã®ããããã®è¦æ¹ 質åã¯ã¾ããã£ããç解ãã ããã«å¯¾ããçããæ¯è¼ãã¦ã¿ã¦ããªãããåãã®ããèãã ã³ã¡ã³ãæ¬ã¯Font Sizeçã«ã¯å°ããããããªãæ¿ãã³ã¡ã³ããæ¸ããã¦ãããã¨ãå¤ãã®ã§æãªãç®ãéã 10. Looping through the content of a file in Bash? ãã¡ã¤ã«ã®å 容ãã«ã¼ãã§åå¾ããããã®ãã¹ããã©ã¯ãã£ã¹ã ï¼2015/10/23 : æ¬ç¯ä¿®æ£ãã¾ããã@heliac2000 ããã@kawazããããããã¨ããããã¾ããã詳ããã¯æ¬è¨äºã³
追è¨ï¼openssh-7.3 以éãªã ProxyJump ã -J ã使ãã¾ã ãã¹ãåã + ã§ç¹ãããã¨ã§å¤æ®µProxyæ¥ç¶ãç°¡åã«ããã³ã³ã»ããã ã£ãæ¬ã¨ã³ããªã®è¨å®ã§ãããOpenSSH 7.3 ãã ProxyJump ã¨ããè¨å®ã使ããããã«ãªã£ãã®ã§ã使ãããªã ProxyJump ã使ãæ¹ãå¥å ¨ã ãæè»ã§ä½¿ãåæãè¯ãã®ã§ãã¡ããè¦ãã¦å¸°ããã¨ããªã¹ã¹ã¡ãã¾ãã 使ãæ¹ã¯ç°¡åã§ä»¥ä¸ã®ãããªæãã§ããå¤æ®µãè¡ããããè¸ã¿å°ãã¹ãæ¯ã«ã¦ã¼ã¶åããã¼ãçªå·ãå¤ãããã¨ãåºæ¥ã¾ãã # 1. bastion.example.jp -> internal.example.jp ssh -J bastion.example.jp internal.example.jp # 2. bastion.example.jp -> internal.example.jp -> super-de
CentOS 7 ãã¤ã³ã¹ãã¼ã«ãã¦ã¿ã
Linuxãã¯ãããã å½ãã¼ã¸ã®ãªã³ã¯ã«ã¯åºåãå«ã¾ãã¦ãã¾ãã å½ãµã¤ãã§ã¯ãLinux ã®ç°å¢æ§ç¯ããåºæ¬æä½ãããã« å¿ç¨ã¨ã㦠SSHãµã¼ãã¼ãWebãµã¼ãã¼ï¼Apacheãnginxï¼ãªã©ã®æ§ç¯ã»è¨å®æ¹æ³ã¾ã§ã解説ãããã¨ãç®çã¨ãã¦ãã¾ãã ã¾ããåå¿è ã®æ¹ã«ãããããããããã«Linuxã³ãã³ããªãã¡ã¬ã³ã¹ãç¨æãã¦ãã¾ãããã¾ãã¾ãªã³ãã³ãã«è§¦ããªããLinuxããã¹ã¿ã¼ãã¾ãããï¼ ç°å¢ã®æ§ç¯ Linux ã«ã¯ãã¾ãã¾ãªãã£ã¹ããªãã¥ã¼ã·ã§ã³ãããã¾ããããUbuntuããCentOSããDebianãã®ã©ãããé¸ãã§ããã°ééããªãã§ãããããµã¼ãã¼ç¨éã¨ãã¦ã¯ãDebianãã人æ°ã§ãã Linuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ - å©ç¨çããæ¯è¼ ã¤ã³ã¹ãã¼ã« CentOS 7 x86_64 ã®ã¤ã³ã¹ãã¼ã« Debian 7.0ï¼wheezyï¼ã®ã¤ã³ã¹ãã¼ã« Ubuntu
â ã¯ããã« å½ãµã¤ã㯠FedoraCore ã CentOS ã§èªå® ãµã¼ããæ§ç¯ããæé ãèªå® ã®æ§æã«æ²¿ã£ã¦ç´¹ä»ãã¦ãã¾ãã èªå® ãµã¼ãã®å©ç¹ã¯ãããã¤ãã§ç¨æããã¦ãããã¼ã ãã¼ã¸å¶é(容éãPerl(CGI)ã®å¶é)ãã¡ã¼ã«ããã¯ã¹å®¹éçã ã«æç¸ãããªãæã«ããã¾ãã ãã®ç¹ãè£ãçºã«ãèªå® ãµã¼ããæ§ç¯ãããã¨ãã¦ããæ¹ã ã«å½ãµã¤ããåèç¨åº¦ã«ãªãã°å¹¸ãã§ãã ããã§ãç´¹ä»ãã¦ããè¨å®æ¹æ³ãããã±ã¼ã¸ã®ãã¼ã¸ã§ã³ã»ãµãã¼ããçµäºãã¦ããç©çãããããããã¾ããã®ã§ãäºæ¿ä¸ããã ééã£ãè¨å®ã誤åã»è±åããªã³ã¯åãçãããã¾ãããéä¿¡ãã©ã¼ã ã§ãç¥ãããã ããã ã¾ããçåç¹ãLinuxã«é¢ãã質åçã¯è³ªåæ²ç¤ºæ¿ããå©ç¨ãã ããããã®ã»ããéè«ãªã©æ°æ´ããã«éè«æ²ç¤ºæ¿ã¸ãè¶ãä¸ããã â èªå® ãµã¼ãå ¬éã®åææ¡ä»¶ â ãã¼ãã¦ã§ã¢ã«ã¤ã㦠ç¾å¨ãµãã¼ãããã¦ãããã£ã¹ããªãã¥ã¼ã·ã§
CentOS 7ã®ã¤ã³ã¹ãã¼ã©ã¼ã¯ãå¾æ¥ã®CentOS 6ã¾ã§ã®ã¤ã³ã¹ãã¼ã©ã¼ã¨æ¯ã¹ãã¨ãæ§ã ãªå¤æ´ãæ½ããã¦ãã¾ããä»åã¯ãCentOS 7ã®ã¤ã³ã¹ãã¼ã«æã®æ³¨æç¹ãã¤ã³ã¹ãã¼ã©ã¼ã®æ°æ©è½ã«ã¤ãã¦ãç´¹ä»ãã¾ãã CentOS 7ã®ã¤ã³ã¹ãã¼ã«å段éã§ã®æ³¨æç¹ CentOS 7ã«éãããOSãx86ãµã¼ãã¼ã«ã¤ã³ã¹ãã¼ã«ããå ´åãç®çã®æ¥åã«å¿ãããã¼ãã¦ã§ã¢ã®è¨å®ãæ´ãã¦ããå¿ è¦ãããã¾ããè¿å¹´ãx86ãµã¼ãã¼ã«æè¼ã§ããã¡ã¢ãªããã£ã¹ã¯ã®å®¹éãæ¥æ¿ã«å¢å ãã¦ãããããã«ä¼´ãããã¼ãã¦ã§ã¢å´ã®äºåæºåãé©åã«è¡ããªãã¨ãè³¼å ¥ãããã¼ãã¦ã§ã¢ã®æ©è½ãæ§è½ãååã«çºæ®ã§ããªãã¨ãã£ãäºæ ã«é¥ãå¯è½æ§ãããã¾ããç¹ã«ããã¼ã¿ãã¼ã¹ãµã¼ãã¼çã§ã巨大ãªã¡ã¢ãªç©ºéãå©ç¨ããå ´åã«ã¯ã注æãå¿ è¦ã§ãã ä¾ãã°ã1TBè¶ ãè¶ããã¡ã¢ãªãè£ åããx86ãµã¼ãã¼ã§CentOS 7ãå©ç¨ããå ´åãäºãBIO
1ä¸äººä»¥ä¸ãåè¬ãã æ°å ¥ç¤¾å¡ITç ä¿®ããã°ã©ã ã»ããã°ã©ãã³ã°ã»ã¤ã³ãã©ã»ãã¸ãã¹å ¨é¢å¯¾å¿ ã»èªå® /ä¼æ¥ããåãããããªã³ã©ã¤ã³ç ä¿®å¯¾å¿ ãæå ã«ããå±ã ã¾ãã¯ç ä¿®æ¦è¦ã®è³æãè«æ±ãã
ãã¼ãå±ããï¼é»ååè·¯è¨è¨ãéçºæè¡è ï¼ã®çºã® Linux æ´»ç¨æ å ±ã¨ãã¦å½¹ã«ç«ã¦ãã°ã¨æã£ã¦ãã¾ããã¡ã¤ã³ã¨ãªããã¼ãã¯ãªã¼ãã³ã½ã¼ã¹ã¨ãã¦å ¬éããã¦ããEDA ãã¼ã«ã®æ´»ç¨ã«ã¤ãã¦ã§ãããLinux ã®ã¤ã³ã¹ãã¼ã«ãã³ãã³ãã®æ´»ç¨æ¹æ³ãªã©ãLinux ã«é¢ãã話é¡ã«ã¤ãã¦åãä¸ãã¦ããã¾ãã
ãµã¼ããæ§ç¯ãããï¼ ãµã¼ãæ§ç¯(åºæ¬) CentOS7ã¤ã³ã¹ãã¼ã« CentOS7è¦æ¸ CentOS6ã¤ã³ã¹ãã¼ã« CentOS6è¦æ¸ ãµã¼ãæ§ç¯(yum) yumãªãã¸ããªè¨å® yumãªãã¸ããªè¨å®(æ¡å¼µ) yumãªãã¸ããªè¨å®(ç¬èª) yumãªãã¸ããªãµã¼ã ãµã¼ãæ§ç¯(Security) ã¦ã£ã«ã¹ã¹ãã£ã³ã½ãã ClamAV ãµã¼ãæ§ç¯(LAMP) LAMPãµã¼ãæ§ç¯ Apache/homeã¨ãªã¢è§£æ¾ Apache/ãã¹ã¯ã¼ãè¦å¶ Apache/è¦æ¸ PHP/php-mcrypt PHP/ãã¼ã¸ã§ã³ã¢ãã PHP/è¦æ¸ ãµã¼ãæ§ç¯(æ¡å¼µ) Java Tomcat OpenOffice ãµã¼ã管ç Webmin Usermin phpMyAdmin Zabbix? ãµã¼ãããã¯ã¢ãã Amanda? rsync? åºæ¬ãµã¼ãã¹ vsftp NTP OSSãã©ã¤ãã¼ãã¯ã©ã¦ããæ§ç¯ãã
ç¡å¹ãªURLã§ãã ããã°ã©ã è¨å®ã®åæ å¾ ã¡ã§ããå¯è½æ§ãããã¾ãã ãã°ããæéãããã¦å度ã¢ã¯ã»ã¹ãã試ããã ããã
ãµã¼ãã¼ç®¡çãè¡ã£ã¦ãã人ã«ã¨ã£ã¦ã¯å½ããåã®ã¢ãã¿ãªã³ã°ãã¼ã«ãªã®ããããã¾ããããç§ãç¥ããªãã£ãã®ã§ã¡ã¢ä»£ããã«æè¨ãã¦ããã¾ãã ä¸è¨ã«ç´¹ä»ããã®ã¯Linuxã§ä½¿ããã¨ãã§ãã4種é¡ã®ã¢ãã¿ãªã³ã°ãã¼ã«ã§ãã ããã»ã¹ç¢ºèªãã¼ã«ãhtopã ãã®ãã¼ã«ã¯ããã»ã¹ã®ä¸è¦§ãã¡ã¢ãªãCPUãªã©ã®ç¶æ ã確èªãããã¨ãã§ãããã¼ã«ã§ãã ãã®ãã¼ã«ã¯ãã¡ã³ã¯ã·ã§ã³ãã¼ãã¹ã¯ãã¼ã«æ©è½ããããå ¨é¨ã®ç¶æ ãGUIã®æ§ã«ç¢ºèªãããã¨ãã§ãã¾ãã ã¤ã³ã¹ãã¼ã«æ¹æ³ã¯ä¸è¨ã§ # yum install htop èµ·åã¯htopã§ãã htop â an interactive process-viewer for Linux I/Oãã§ãã¯ãã¼ã«ãiotopã
HOME » 代表è ãã㰠» OS » Linux » ifconfigã®ãnet-toolsãã¯éæ¨å¥¨-代æ¿ã³ãã³ãããã¹ã¿ã¼ããï¼ Linuxã使ã£ã¦ããæ¹ã§ããã°ãIPã¢ãã¬ã¹ã調ã¹ãã³ãã³ããifconfigãã¯å¾¡åç¥ã§ããããç¥ã£ã¦ããã©ããã§ã¯ãªãå¿ ãã¨ãã£ã¦ããã»ã©ãä¸è©±ã«ãªã£ã¦ããã³ãã³ããããªããã¨æãã¾ãã ãããããã®ifconfigãnetstatãªã©ã®ã³ãã³ããæä¾ãã¦ãããnet-toolsããéæ¨å¥¨ã ããã§ãï¼ãç¥ã£ã¦ãã¾ãããï¼ ä¸è¨ã«ãã®äºã¨ä»£æ¿ã³ãã³ãã«ã¤ãã¦æè¨ãã¾ãã ifconfigãnetstatã®ãnet-toolsããéæ¨å¥¨ã ã¨ãããã¨ãç¥ã£ãè¨äºã¯ãã¡ãã ä»ã¾ã§ãããã¨ããifconfigã | ãããã³ããã° ãããè¦ã¦ ããï¼ãããªã®ï¼ã ã¨ãæã£ãã®ã¯ç§ã ãã§ããããï¼æ¬å½ã«ãããªã®ãã¨æã£ã¦èª¿ã¹ã¦ã¿ãçµæãä¸è¨ã®æ§ãªãµã¤ããè¦ã¤
ãµã¼ãã¼ã®æ±ãã«æ £ãã¦ããªãåå¿è ã®æ¹ã対象ã«ãVPS(Virtual Private Server)ã使ã£ã¦Webãµã¼ãã¼ãæ§ç¯ããWordPressãµã¤ããéç¨ã§ããããã«ãªãã¾ã§ã®é£è¼ãå§ãã¾ãã ãµã¼ãã¼ã®æ§ç¯æ¹æ³ã«ã¤ãã¦ã¯ãä¸ã»ä¸ç´è åãã®æ å ±ã¯å¤ãè¦ã¤ããã¾ããã ãåãã¦VPSã«è§¦ããæ¹ããWebãµã¤ããæ§ç¯ãã¦éç¨ã§ããããã«ãªãã¾ã§ã®ãã¦ãã¦ã ãä½ç³»çã«è§£èª¬ãã¦ãããµã¤ãã¯ãã¾ãå¤ãããã¾ããã ãããä¸ã«åå¨ãã¦ããæ å ±ã§ã¯æççã ã£ãããåãããªãå°éç¨èªãåºã¦ããããã¦ãéä¸ã§ããããã¦ãã¾ã£ãæ¹ãå¤ãã®ã§ã¯ãªãã§ããããï¼ æ¬é£è¼ã§ã¯ãåå¿è ã®æ¹ã§ããããããèªãã°VPSãæ§ç¯ã§ããï¼ãããã«ãåæ©ããä¸å¯§ã«è§£èª¬ãã¾ãã ãä»ã¾ã§ã¬ã³ã¿ã«ãµã¼ãã¼ã使ã£ã¦ãããã©ãä¸æ©é²ãã§VPSã«ææ¦ãã¦ã¿ãããã¨ããæ¹ã®ãå½¹ã«ç«ã¦ãã°å¹¸ãã§ãã æ¬é£è¼ã¯ä»¥ä¸ã®æ§æã§5åã«åã
人éã¨ã¦ã§ãã®æªæ¥ã®è³¼èªè ã®çæ§ããä¹ ãã¶ãã§ããã¾ã¤ãã¨ãã¼ã§ãããã¾ãã ä»è³¼èªè è¦ãã¨800人è¿ãããã£ããã£ãã®ã§ã大å¤å¬ããæ縮ã¨å ±ã«ãããã°ã¿ãããªé·æãæ¸ãæã®å·çã®æµãã¨èªåã®ä»ã®ã¤ã³ã¿ã¼ãããä¸ã¸ã®ææ¸ãæ®ãã¹ã¿ã¤ã«ãå°ãåããªããªã£ã¦ãã¦ãã°ããããã°ãæ¸ãã¦ãã¾ããã§ããã ã§ãX(æ§Twitter)ã¯ç¸å¤ããããã ããªããã¨ããã¤ã¼ããã¦ãããã§ãããX課éå¢ã¨ãªãã¾ãã¦ããã¾ã«èªåã®èããæ¸ãæã«ãä»ã¾ã§ã¯140æåã§åºåã£ããããã¬ã®ãã140æåãæ¸ãã¹ãæ¨æ²ããããã¦ãã®ã§ãããæè¿ã¯ãã©ãã©æ¸ãã¦ããã¡ã«140æåè¶ ãã¦é·æã«ãªã£ãããã¦ãã¾ããèªç¶ã«é·æããã¦ããã¨ããæå³ã§ã¯ãããªãã«è¯ãä½é¨ã§ãã ãã¯ãããã£ã¦ä»ã®åã®ããã°ã®ãããªã¾ã¨ã¾ã£ãæç« ãæ¸ãã¹ã¿ã¤ã«ã«ãªãã¤ã¤ããã®ã§ãæ¹ãã¦é·æã ãèªããXã®ã³ãã¥ããã£ãã試ãã§ä½ã£ã¦ã¿ã¾ãããXã®è¨äº
人éã¨ã¦ã§ãã®æªæ¥ï¼æ§ï¼ ãã¦ã§ãã®æ´å²ã¯äººé¡ã®æ´å²ã®ç¹°ãè¿ããã¨ãã観ç¹ããè²ã åå¼·ãã¦ãã¾ãã2014å¹´ã¾ã§ã®äººéã¨ã¦ã§ãã®æªæ¥ã®æ§ããã°ã§ãã èªåãLinuxã¨ã³ã¸ãã¢ã«ãªãããã¦ãå ¥ç¤¾ä¸å¹´ç®ã«ãã£ã¦ããã£ãäºãã¾ã¨ãã¦ãããã¨æããä¸å¹´ç®ã«ã©ãã ããããããåè² ã®å¥ããã¨ãã£ã¦ãéè¨ã§ã¯ãªããããã¯æè¡ãå¦ã¶ã ãã§ã¯ãªãããã£ã±ããããã ãã©ãæä½éãã£ã¦è¯ãã£ããªã¨æãé ç®ãåæããã ãããã¼ãã«ã¯æ¥½ããã£ããããèªã Amazonã¨ãã§è²·ããåºæ¥ãã°åèããããã©ç¡çããªãã¦è¯ãã Just for Fun. Linuxãã©ããã£ã¦ã§ãããããªãããããããã¨æã£ãã®ããåãããä»å¾èªåãLinuxã®ã¨ã³ã¸ãã¢ã¨ãã¦ã©ãããåæ©ã§ä»äºããã¦ããããããèãããã¦ãããæ¬ããã®æ¬ãèªãã°ãèªåãä»äºã§ãªã¼ãã³ã½ã¼ã¹ãæ±ã£ã¦ãããã¨ã«èªä¿¡ãæã¦ãã¨æãã ããªãã§ãã®ä»äºãã¦ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}