ãããã®VPSãããServersMan@VPS ããã®åºç¾ã§ããããã¨æ·å± ã®ããã£ãæã®ãã VPS ã ããè¨ããã®ãµã¼ãããçµVPSã§éç¨ããã¦ãããã§ãããVPSãæ¢åã®ã¬ã³ãµãæè¦ã§ä½¿ã£ã¦ã人ã«ããã¦ãããããã®ã»ãã¥ãªãã£è¨å®ã¯ãã£ã¦ãããã»ããè¯ããã£ã¦ããã話ã§ãã ä»åã対象ã«ãã OS 㯠CentOS ã§ãã ãããVPS åã㦠Ubuntu ã¨ããå¥ã® OS ã§éç¨ãããããªä¸ä¸ç´è ã¯èªåã§ã§ããããã ãªã¢ã¼ãããã® root ãã°ã¤ã³ãç¡å¹ã«ãã ssh çµç±ã§ root ã§ãã°ã¤ã³ãã¦ä½æ¥ããããã¦ã¾ãããï¼ ãã root ãã¹ã¯ã¼ããç ´ããããããµã¼ããä¹ã£åããã¡ããã®ã§ã大å¤ã«å±éºã§ãã root ãã°ã¤ã³ãç¡å¹ã«ãã¦ã権éã®ããã¦ã¼ã¶ã§ãã°ã¤ã³ãã¦ãã sudo or su ãã¦ä½æ¥ããããã«ãã¾ãããã root ãã°ã¤ã³ãç¡å¹ã«ããæ¹æ³ã¯ããã
iptables ã¯ãfirewall ã®å½¹ç®ãæããã¾ããè¨å®ãééããã¨ãèªåãããã°ã¤ã³ã§ããªããªã£ã¦ãã¾ãå¯è½æ§ãããã¾ãã®ã§ãä½æ¥ã¯åå注æãã¦ãã ããã ã¾ãã¯ãç¾å¨ã®è¨å®ç¶æ³ãä¸è¦§ã§ç¢ºèª [root@localhost ~]# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination æå¦ãããIPãè¨å® [root@localhost ~]# iptables -I INPUT -s 123.123.123.123 -j DROP
SELinuxã¯å¼·å¶ã¢ã¯ã»ã¹å¶å¾¡(MAC:Mandatoryaccesscontrol)ã¨ãã°ãã管çè ã«ãã権é管çæ©è½ãæä¾ããä»çµã¿ã®ã²ã¨ã¤ã§ããFISC(éèæ å ±ã·ã¹ãã ã»ã³ã¿ã¼)ãNISC(å é£å®æ¿æ å ±ã»ãã¥ãªãã£ã»ã³ã¿ã¼)ãªã©ã®...
SELinuxã¯å¼·å¶ã¢ã¯ã»ã¹å¶å¾¡(MAC:Mandatory access control)ã¨ãã°ãã管çè ã«ãã権é管çæ©è½ãæä¾ããä»çµã¿ã®ã²ã¨ã¤ã§ããFISC(éèæ å ±ã·ã¹ãã ã»ã³ã¿ã¼)ãNISC(å é£å®æ¿æ å ±ã»ãã¥ãªãã£ã»ã³ã¿ã¼)ãªã©ã®ã¬ã¤ãã©ã¤ã³ã«ã¯å¼·å¶ã¢ã¯ã»ã¹å¶å¾¡ã«é¢ããè¦å®ãåå¨ãããã¨ãã¨ã¯æ¿åºã®è¦å®ãæºããããã«ä½æãããã®ãSELinuxãããã§ãã 以ä¸ã®èª¬æãã¢ãããã¼ã¯ITã®ãããªçµå¶è åããµã¤ããè¦ãã¨ãSELinuxã¯ãããã«ãã³ã³ãµã«ã¿ã³ãæ§ãå°å ¥ãæ¤è¨ããããªç´ æ´ãããæ©è½ã§ãããéç¨ãè¡ãã®ã¯è³é£ã®æ¥ã§ãã 以ä¸ãç§ãSELinuxãã³ãºãªã³ â hbstudy #28ã«åå ããæã®ã¡ã¢ãè¨ãã¾ããä½ã¨ãªãèªãã§é ãSELinuxã®éç¨ãå¦ä½ã«é£ããããæã£ã¦é ããã¨å¹¸ãã§ãããªããå®åã§ã®ãå½¹ç«ã¡åº¦ã¯æå¾ ããªãã§ãã ãããç§ãSELinuxãåå¼·ãã¦å½¹
é¡åã®éããcentOSã«gemãã¤ã³ã¹ãã¼ã«ããæé ã®ã¡ã¢æ¸ãã§ãã ãã¤ã³ãã¯ï¼ã¤ã gemãå ¥ããããã«ã¯ruby 1.8.7ãå¿ è¦ yum install rubyã ã¨1.8.5ã ããNG rubyã¯ã½ã¼ã¹ããã¤ã³ã¹ãã¼ã«ãã æé 1. rubyã®ã¤ã³ã¹ãã¼ã« # wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p357.zip # unzip ruby-1.8.7-p357.zip # cd ruby-1.8.7-p357 # ./configure # make # make install åèµ·å # reboot åèµ·åãå¾ ã£ã¦rubyã®ãã¼ã¸ã§ã³ãç¢ºèª # ruby -v ruby 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux] ruby 1.8.7ã£ã¦åºãã°
ãã®ã¨ãã CheckInstall ã®æåã«ã¤ãã¦ããããã¨èª¿ã¹ã¦ãã¾ããã æ¤è¨¼ã«éãã¦ä½¿ç¨ãã¦ãã 64bit ç CentOS ã§ã®å°å ¥æ¹æ³ãæ´çãã¦ããã¾ãã 確èªããç°å¢ã¯ CentOS 5.9 x86_64 ã§ãããCentOS 6 ç³»ã§ãã»ã¼åãæ¹æ³ã§ãããã¨æãã¾ãã ã¾ããäºåã« git ã使ããããã«ãã¦ããå¿ è¦ãããã¾ãã ããã§ã¯ RPMforge ã追å ãã¦ã¤ã³ã¹ãã¼ã«ãã git ã使ç¨ãã¾ããã ã¾ãã¯ä¾åããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ã # yum install -y gettext rpm-build CheckInstall ã®æ¬ä½ã¯ git ãªãã¸ããªã«ãããã®ãææ°ãªã®ã§ããã¡ãããã½ã¼ã¹ã³ã¼ããåå¾ãã¾ããã # cd /usr/local/src/ # git clone http://checkinstall.izto.org/checkinst
githubã«ãªãã¸ããªãä½ãããã®ã§ããããVPSã®CentOS5.5ã«gitãã¤ã³ã¹ãã¼ã«ãã¾ããã©ãããyumã§ã¤ã³ã¹ãã¼ã«åºæ¥ãããã§ãã ãªãã¸ããªã®è¿½å ããã©ã«ãã®yumã®ãªãã¸ããªã«ã¯gitãå«ã¾ãã¦ããªããããªã®ã§ããªãã¸ããªã追å ãã¾ãã CentOS5.5ã«Ruby on Railsã®ç°å¢ãã¤ããã¼ - 俺ã®ä½æ¥ãã° â以åãã¡ãã§ããã¾ããã®ã§ããã¡ããåèã«ãã¦ãã ããã # ãã¡ã¤ã«ã®åå¾ $ cd /usr/local/src $ sudo wget http://dag.wieers.com/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm $ sudo wget http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt # rpm
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}