Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
redhat.comãé²è¦§ãããéã«ããå§ãã®ãªã½ã¼ã¹ã表示ããã¾ããã¨ããããããã¡ããã試ããã ããã Red Hat 製åä¸è¦§æè¡ãããã¯ã¹Red Hat ã®ãªã½ã¼ã¹
VirtualBoxã®Linuxã³ã³ã½ã¼ã«ã¯æ¥æ¬èªã表示ã§ãã¾ãããï¼ã¹ã¯ãã¼ã«ãã§ãã¾ããï¼ä½ãã¨ä½¿ãã¥ããã®ã§ï¼Macä¸ã®ã¿ã¼ããã«ããSSHæ¥ç¶ãã¦å©ç¨ãããã¨ã«ãã¾ãï¼ ããã§åé¡ãªã®ãï¼ç¾å¨ã¯ï¼NATã®ãããã¯ã¼ã¯ã¢ããã¿ãå©ç¨ãã¦ããã®ã§ï¼ãã¹ããã·ã³ã§ããMacããï¼ä»®æ³ãã·ã³ï¼ã²ã¹ããã·ã³ï¼ã«ã¢ã¯ã»ã¹ãããã¨ãã§ãã¾ããï¼ ããã§ï¼VirtualBoxã®æ©è½ã¨ãã¦ï¼ãã¹ããã·ã³ã¨ä»®æ³ãã·ã³ã®ã¿æ¥ç¶ã§ããããã¹ããªã³ãªã¼ãããã¯ã¼ã¯ï¼vboxnet0ï¼ããæ§ç¯ãï¼ä»®æ³ãã·ã³ã«ããã¹ããªã³ãªã¼ãããã¯ã¼ã¯ã¢ããã¿ãã追å ãï¼ãããã¯ã¼ã¯ã®è¨å®ãè¡ãã¾ãï¼ 01. ã¾ãã¯ï¼ãã¹ããªã³ãªã¼ãããã¯ã¼ã¯ãvboxnet0ãã®è¿½å ãè¡ãã¾ãï¼ ã»VirtualBoxã¡ãã¥ã¼ãã¼ã®ãVirtualBoxãâãç°å¢è¨å®ã ã»ããããã¯ã¼ã¯ããã¯ãªã㯠ã»ãã¹ããªã³ãªã¼ãããã¯ã¼ã¯è¿½å ã®ãã¿
ãããã¤ã³ã¿ã¼ãããç 究æããã®ãMariaDB Galera Clusterã試ããã¨ããè¨äºãèªãã§å± ã¦ãç«ã£ã¦ãããããªããªãããã£ãã AWS ã§æ§ç¯ãã¦ã¿ã¾ããã ä¸è¨ã®è¨äºã«ããã° ç°¡åã«ã¾ã¨ããã¨æ¬¡ã®ããã«ãªãã¾ãã Galera Replicationãè¤æ°ã®RDBMãã¬ããªã±ã¼ã·ã§ã³ããwsrep APIãæä¾ããåæãã¨ãã¾ã å®å ¨åæåã§ããããããã¹ã¦ã®ãã¼ããã¢ã¯ãã£ããã¤ãã¹ã¿ã¼ã¨ãªãã¾ã ã¯ã©ã¹ã¿ã¼ãã¼ãã®ã©ãã«å¯¾ãã¦ããªã¼ãï¼ã©ã¤ããå¯è½ã§ã ãã¼ãã®è¿½å ï¼åé¤ã¯èªåã§è¡ãã¾ã ã¯ã©ã¤ã¢ã³ãæ¥ç¶ã¯é常ã®MySQLã¨ãªããå¤ãããªã使ãã¾ã via. MariaDB Galera Clusterã試ã (1) « ãããã¤ã³ã¿ã¼ãããç 究æ ãã¼ï¼ã¹ã¬ã¼ã/ãã¹ã¿ã¼å½¢å¼ã®ã¬ããªã±ã¼ã·ã§ã³ããããæç¶ä½¿ããããããããï¼ ã£ã¦ãã㧠AWS ã® ELB é ä¸ã«è¤
ã·ã¹ãã æ§æãä¸å³ã«ç¤ºãã¾ãã CentOSã®è¨å® SELinuxãç¡å¹ã«ãã ã¨ãã£ã¿ã§ /etc/sysconfig/selinux ãéãã SELINUX ã®å¤ã disabled ã«ç·¨éãã¦ãã ããã SELINUX=enforcing â SELINUX=disabled ç·¨éå¾ãCentOSãåèµ·åãã¦ä¸ããã # reboot åèµ·åå¾ã getenforce ã³ãã³ããå®è¡ãã¦SELinuxãç¡å¹ã«ãªã£ããã¨ã確èªãã¦ãã ããã Disabled ã¨è¡¨ç¤ºãããã°SELinuxã¯ç¡å¹ã«ãªã£ã¦ãã¾ãã # getenforce Disabled iptablesã§HTTPãè¨±å¯ CentOS 6.3ã®åæç¶æ ã§ã¯iptables(ãã¡ã¤ã¢ã¦ã©ã¼ã«)ãæå¹ã«ãªã£ã¦ãããå¤é¨ãããµã¼ãä¸ã®80/tcpãã¼ã(HTTP)ã«æ¥ç¶ãããã¨ãã§ãã¾ããããã®ã¾ã¾ã§ã¯webãµã¼ããç«ã¡ä¸ã
ã·ã¹ãã æ§æãä¸å³ã«ç¤ºãã¾ãã CentOSã®è¨å® SELinuxãç¡å¹ã«ãã ã¨ãã£ã¿ã§ /etc/sysconfig/selinux ãéãã SELINUX ã®å¤ã disabled ã«ç·¨éãã¦ãã ããã SELINUX=enforcing â SELINUX=disabled ç·¨éå¾ãCentOSãåèµ·åãã¦ä¸ããã # reboot åèµ·åå¾ã getenforce ã³ãã³ããå®è¡ãã¦SELinuxãç¡å¹ã«ãªã£ããã¨ã確èªãã¦ãã ããã Disabled ã¨è¡¨ç¤ºãããã°SELinuxã¯ç¡å¹ã«ãªã£ã¦ãã¾ãã # getenforce Disabled iptablesã§HTTPãè¨±å¯ CentOS 6ã®åæç¶æ ã§ã¯iptables(ãã¡ã¤ã¢ã¦ã©ã¼ã«)ãæå¹ã«ãªã£ã¦ãããå¤é¨ãããµã¼ãä¸ã®80/tcpãã¼ã(HTTP)ã«æ¥ç¶ãããã¨ãã§ãã¾ããããã®ã¾ã¾ã§ã¯webãµã¼ããç«ã¡ä¸ãã¦ã
ã«ãã´ãªã¼ ã¢ã¯ã»ã¹è§£æ (2) Analysis (1) Android (7) Apache (6) API (2) Amazon Web Services (66) CloudSearch (1) EC2 (3) RDS (1) SES (1) Backbone.js (1) BigQuery (1) Blockchain (3) Blogger (1) Book (119) Bootstrap (4) Configuration Management (3) Cacti (1) Capistrano (2) CentOS (15) Chef (1) Chrome (10) ClamAV (1) CMS (2) CODA (1) CoffeeScript (1) CORESERVER (4) ä»®æ³é貨 (1) CSS (22) Sass (6) CSV (1) DNS (1) è³æ
# less /etc/redhat-release CentOS release 5.2 (Final)ãã£ã¤ãå¿ãããã¼ã
å©ç¨ããç°å¢ Ubuntu 10.04.3 LTS ã°ãã¼ãã«IP ãã²ã¨ã¤æ¯ãåãã¦ãã Ubuntuã®ãããã¯ã¼ã¯ã®è¨å® åç´ã«ã¨ã¤ãªã¢ã¹ãã¯ããã¨ã¯ifconfigã³ãã³ãã§ã§ãã¾ããåèµ·åãããè¨å®ãæ¶ãã¦ãã¾ãã¾ã ä¸æçã«ã¨ã¤ãªã¢ã¹ã è¨å®ããæ¹æ³ ä»åã¯eth0ã¨loã®ãããã¯ã¼ã¯ãåå¨ãã¾ããã eth0ã«ã¯ã°ãã¼ãã«IPãè¨å®ãã¦ãããç 究室å ã®ãã¼ã«ã«ç°å¢ã§éä¿¡ãããã®ã«ããããç 究室ããåºã¦å¤§å¦ã§ç®¡çãã¦ããGWãéã£ã¦ç 究室ã®ãããã¯ã¼ã¯ã«æ»ã£ã¦ããã¨ããçµè·¯ãå¢ãã¦ãã¾ãç¶æ ã«ãªã£ã¦ãã¾ããã ç§ã¯å°ããã¨ã¯ãªãã®ã§ãããå人ããã¼ã«ã«ä¸ã§éä¿¡ãããã¨ã®ãã¨ã ã£ãã®ã§IPãã¨ã¤ãªã¢ã¹ã§å¢ãããã¨ãèãã¾ããã ä»ååãã¦ã¨ã¤ãªã¢ã¹ã®è¨å®ãããã®ã§ã¡ã¢ã¨ãã¦ãã®è¨äºãæ¸ãããã¨æãã¾ãã eth1ã¨ãå¢ããã¨æå³ãããããªããªããããªã®ã§(ã§ããã®ãï¼)eth0:0
æ¢å®ã®ã¨ãã£ã¿ãèµ·åããã®ã§ä»¥ä¸ã®ããã«è¨å®ããã ä»åã®ä¾ã¯ PHP ãå®è¡ãã¾ãã 00 0 * * * php /path/to/hoge.php ããã§è¨å®ãããã®ã¯ /var/spool/cron 以ä¸ã«ä½ããã¾ãããç·¨éããé㯠crontab -e ã§åãããã«ã¨ãã£ã¿ã§éãã¦ç·¨éãã§ãã¾ãã®ã§ããã¡ããä¸è¬çã§ãã ã¾ããcron ã®å®è¡ãã°ã«ã¤ãã¦ã¯ /var/log/cron ã«æ¸ããã¦ããã®ã§ãæ¬å½ã«åãã¦ããã®ãã確èªããã«ã¯ãã¡ãã確èªãã¾ãããã
ã½ããã¦ã¨ã¢ Windows 7 Home Premium (64bit)VMware Player 3.1.3 build-324285Tera Term 4.67 ä½ãç© CentOS # cat /etc/redhat-release CentOS release 5.5 (Final) # uname -a Linux localhost.localdomain 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:52:25 EST 2011 x86_64 x86_64 x86_64 GNU/Linux Apache # /usr/sbin/httpd -v Server version: Apache/2.2.3 Server built: Aug 30 2010 12:28:40 MySQL # mysql --version mysql Ver 1
ããããã¾ã«å¿ãã¦è¨å¤§ãªæéãæããã®ã§ãã¡ã¢æ¿ããã«æ¸ãã¦ããã¾ããCentOS 5.2(ã¨ãããyumã使ã£ãããã±ã¼ã¸ç®¡çãè¡ãLinuxãã£ã¹ããªãã¥ã¼ã·ã§ã³)ãªãã©ãã§ããªã®ã§ãããã¤ã³ã¹ãã¼ã«å¾ã«ãyum updateããè¡ãã¾ãã«ä»¥ä¸ã®ã³ãã³ãã§ãyumã®fastestmirrorãã©ã°ã¤ã³ããã¼ãããããã«ãããã¨ã yum install yum-fastestmirror æ®éã«ã¤ã³ã¹ãã¼ã«ããã¨ããã©ã«ãã§ã¯fastestmirrorãã©ã°ã¤ã³ããã¼ãããã¦ããªãã®ã§ããã¾ã«æ¿é ãµã¼ãã«ã¤ãªãã£ã¦ãã¾ãããªãæéãæãã¦ãã¡ãã£ã¨ãã«ã¼ãªæ°åã«ãªãã¾ããããã¤ãã¤ã³ã¹ãã¼ã«ããã¨åæã«ä¸çªæ©ããµã¼ãããããã±ã¼ã¸ãåå¾ãã¦ãããã®ã§ã¡ãã£ã¨ãããã¼ã§ãã
ä¸è¨ã¯ãCentOSã§ä½¿ç¨ããæ¥æ¬èªå ¥åã®åºæ¬æä½ãCentOSãã¢ãããã¼ãããããã«ä½¿ç¨ããYum(Yellow dog updater,modified)ã®ã³ãã³ããX Window System(GNOME)ã®æä½ãããã³ CentOS(Linux)ã§vi(ããã¹ãã¨ãã£ã¿)ã使ç¨ããå ´åã®åºæ¬æä½ã¨GNOME端æ«ãªã©ã®ã³ã³ã½ã¼ã«ã§å®è¡å¯è½ãªã³ãã³ãçãæç²ãã¦è¨è¼ãã¦ãã¾ãã ä¸è¨ã¯ãCentOS(Linux)ã§ä½¿ç¨ãããã¨ãã§ããvi(ããã¹ãã¨ãã£ã¿)ã®åºæ¬æä½ãã³ãã³ãã«ã¤ãã¦è¨è¼ãã¦ãã¾ãã åè ã³ãã³ã
ã¤ã³ã¹ãã¼ã« Disc ãã³ã³ãã¥ã¼ã¿ã®ãã©ã¤ãã«å ¥ãã¦ã³ã³ãã¥ã¼ã¿ãèµ·åãã¾ããããã¨ä»¥ä¸ã®ç»é¢ãåºãã®ã§ãã®ã¾ã¾ Enter ãã¾ãã
9æ4 Oracle Database 11g XE ã¤ã³ã¹ãã¼ã« ã«ãã´ãª:CentOS6OracleXE Oracle-XEãCentOSã«ã¤ã³ã¹ãã¼ã« ç°å¢ï¼ CentOS6.0 æå°æ§æ $ cat /etc/redhat-release CentOS Linux release 6.0 (Final) $ uname -a Linux hogesrv 2.6.32-71.el6.x86_64 #1 SMP Fri May 20 03:51:51 BST 2011 x86_64 x86_64 x86_64 GNU/Linux åææ¡ä»¶ï¼ ã»å¿ é ããã±ã¼ã¸ $ sudo yum install -y bc unzip libaio $ rpm -qa libaio bc unzip unzip-6.0-1.el6.x86_64 â»ã¤ã³ã¹ãã¼ã«å¯¾è±¡ãµã¼ãä¸ã§è§£åããå ´åå¿ è¦ bc-1.
ä»ã¾ã§å ±ç¨ãµã¼ãã¼ãã使ã£ããã¨ãããã¾ããã§ãããå¤ãã®ãµã¼ãã¹ãä½ãä¸ã§å°æãµã¼ãã¼ã使ã£ãããããã®VPS ã使ã£ããã§ããããã«ãªãã°è¡ããªãã¨æã£ãã®ã§ã丸1æ¥ããã¦åå¼·ãã¾ãããCUI ã§ã®ãµã¼ãã¼ç®¡çã¯åãã¦ãªã®ã§ãééã£ã¦ããã¨ããããã£ããæãã¦ãã ããã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}