ã¯ããã« ãã¡ãã¯ã»ã¼ã¾ãã¾ãåèã«ããã¦é ãããµã¤ãã®ã³ãã¼ã§ã è£è¶³ ã»ã¨ãã©åãã§ãããããã£ã¦è¨äºãæ¸ãç´ãã¾ããã âãããvpsã®è¨å®èªåã¡ã¢ - iptablesâ¡(ãã±ãããã£ã«ã¿ãªã³ã°) è¨å®ãã 以ä¸ã好ããªå ´æã«ä¿åãã¦ãããã ã ä»åã¯/root/sh/init_iptables.shã¨ãã«ãã¾ãã #!/bin/bash # ãã£ã«ã¿ãªã³ã°ã«ã¼ã«ãæ¶å»ãã /sbin/iptables -F # ããã©ã«ãããªã·ã¼ãè¨å® /sbin/iptables -P INPUT DROP /sbin/iptables -P FORWARD DROP /sbin/iptables -P OUTPUT DROP # ã«ã¼ãããã¯ã許å¯ãã /sbin/iptables -A INPUT -s 127.0.0.1 -d 127.0.0.1 -j ACCEPT /sbin/ipta
Railsã§ä½¿ã£ã¦ãããã¼ã¿(UTF-8)âmysqldumpâWindowsã®MySQLã®ä¸ã¸ç§»åã®éã«ã¨ã©ã¼ãåºãã対å¦æ³ã¯ãImportã®éã«å ã®ãã¼ã¿ã®æåã³ã¼ãã«ãããã¦ãã--default-character-set=utf8ããä»ãããã¨ã¿ããã C:\home>mysql -u user database < dump.sql ERROR at line 51: Unknown command '\''. C:\home>mysql -uroot --default-character-set=sjis dokuzetsu_devel < dump.sql ERROR at line 51: Unknown command '\''. C:\home>mysql -uroot --default-character-set=utf8 dokuzetsu_devel < d
家ã§ãä¼ç¤¾ã§ãåãç°å¢ã§åå¼·ãããã®ã§VPSãåãã¦ã¿ãã å ¨ãã®åå¿è ãªã®ã§è©°ã¾ãã¾ããã§ããããããªã¨ããããã°ãææãã ããã #ç°å¢ ##VPS åããã®ã¯ãããã¤ã³ã¿ã¼ãããã®VPS2Gãã©ã³ã詳細ã¯ä»¥ä¸ã¨ãã¡ãã ã¡ã¢ãª:2G ãã£ã¹ã¯å®¹é:200GB CPU:ä»®æ³3ã³ã¢ ãªã¼ã¸ã§ã³:ç³ç© OS:CentOS6.5ï¼æåããå ¥ã£ã¦ããã®ã§ã¨ããããï¼ ##ãã¼ã« Putty WinSCP #ããã㨠ãããã¤ã³ã¹ãã¼ã«ããã®ãããVPSå ¥éã«ãããã£ã¦åæè¨å®ããããã¦ããã¾ãã åæè¨å® ä½æ¥ç¨ã¦ã¼ã¶ã¼ã®ä½æ & è¨å® éµèªè¨¼ã®è¨å® SSHã®è¨å® Firewallã®è¨å® Webãµã¼ãã¼ã®è¨å® ã¨ããããããã¾ã§é å¼µãã¾ãã #åæè¨å® ã¤ã³ã¹ãã¼ã«ããã¦ããã¢ããªã±ã¼ã·ã§ã³ãã¾ãã¯ææ°ã«ãã¾ãã
ãããã®VPSãããServersMan@VPS ããã®åºç¾ã§ããããã¨æ·å± ã®ããã£ãæã®ãã VPS ã ããè¨ããã®ãµã¼ãããçµVPSã§éç¨ããã¦ãããã§ãããVPSãæ¢åã®ã¬ã³ãµãæè¦ã§ä½¿ã£ã¦ã人ã«ããã¦ãããããã®ã»ãã¥ãªãã£è¨å®ã¯ãã£ã¦ãããã»ããè¯ããã£ã¦ããã話ã§ãã ä»åã対象ã«ãã OS 㯠CentOS ã§ãã ãããVPS åã㦠Ubuntu ã¨ããå¥ã® OS ã§éç¨ãããããªä¸ä¸ç´è ã¯èªåã§ã§ããããã ãªã¢ã¼ãããã® root ãã°ã¤ã³ãç¡å¹ã«ãã ssh çµç±ã§ root ã§ãã°ã¤ã³ãã¦ä½æ¥ããããã¦ã¾ãããï¼ ãã root ãã¹ã¯ã¼ããç ´ããããããµã¼ããä¹ã£åããã¡ããã®ã§ã大å¤ã«å±éºã§ãã root ãã°ã¤ã³ãç¡å¹ã«ãã¦ã権éã®ããã¦ã¼ã¶ã§ãã°ã¤ã³ãã¦ãã sudo or su ãã¦ä½æ¥ããããã«ãã¾ãããã root ãã°ã¤ã³ãç¡å¹ã«ããæ¹æ³ã¯ããã
1.ãã¼ã¿ãã¼ã¹ã®ãã³ããã¡ã¤ã«ãçæãã¾ãã mysqldump -u[MYSQL_USER_NAME] -p[PASSWORD] [DB_NAME] > [DB_DUMP_FILE_PATH] 2.ãªã¹ãã¢å ã®ãã¼ã¿ãã¼ã¹ãä½æãã¾ãã CREATE DATABASE [DB_NAME] DEFAULT CHARACTER SET utf8; 3.ãªã¹ãã¢å ã®ãã¼ã¿ãã¼ã¹ã¦ã¼ã¶ã¨æ¨©éãè¨å®ãã¾ãã GRANT ALL PRIVILEGES ON [DB_NAME].* TO [MYSQL_USER_NAME]@localhost IDENTIFIED BY '[PASSWORD]'; 4.ãã¼ã¿ãã¼ã¹ã®ãªã¹ãã¢ãè¡ãã¾ãã mysql -u[MYSQL_USER_NAME] -p[PASSWORD] [DB_NAME] < [DB_DUMP_FILE_PATH] 以ä¸ã§ãã Regis
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}