|
|
|
¸®´ª½ºÆÁ Go Unix Power Tools Online Book
Go Bash Guide
|
|
Read No. 197 article |
2004-02-25 17:53:08 |
|
|
|
|
NickName |
aego |
Subject |
[TIP] Àû¼öº¸µå ¼öµ¿¼³Ä¡ |
|
|
[ÀüÁ¦Á¶°Ç]
- Àû¼öº¸µå(http://jsboard.kldp.net)¿¡¼ ÃֽŹöÁ¯À» ´Ù¿î·Îµå
- ÀÚ½ÅÀÇ public_html/ Æú´õ¾Æ·¡ ¾ÐÃàÇØÁ¦,À§Ä¡½ÃŲ »óÅÂ
[¼öµ¿¼³Ä¡ °£·«º»]
Àû¼öº¸µå »çÀÌÆ®¿¡ º¸½Ã¸é ÇѱÛÆÇ ÀÚµ¿¼³Ä¡¹®¼¿Í ¼öµ¿¼³Ä¡¹®¼ µÎÁ¾·ùÀÇ
¹®¼¸¦ ã¾Æº¸½Ç ¼ö ÀÖ½À´Ï´Ù. ÇöÀç ÀÚµ¿¼³Ä¡´Â °á·ÐÀûÀ¸·Î ¾ÈµÇ½Ã°í
¼öµ¿¼³Ä¡¸¦ ÇØÁּžߵ˴ϴÙ. Á¦°¡ Àá½ÃÀá±ñ »ðÁúÇß´ø °æÇèÀ» ±Û·Î ³²°Ü
Â÷ÈÄ¿¡ Àû¼öº¸µå¸¦ ÀÚ½ÅÀÇ È¨ÆäÀÌÁö¿¡ Àû¿ë½ÃÅ°°íÀÚ ÇϽô ºÐµéÀÇ
³ë°í¸¦ ´ú¾îµå¸®°íÀÚ ÀÌ ¹®¼¸¦ ÀÛ¼ºÇÕ´Ï´Ù. ÀÚ ±×·³ ¿À¶óÀÌ~
¸ÕÀú ¼öµ¿¼³Ä¡¹®¼(http://kldp.net/docman/view.php/148/97/file97.html)¸¦
º¸½Ã¸é ¹¹°¡ ¾öû³ª°Ô ¸¹ÁÒ? ´Ù¾Æ ÇÊ¿ä¾ø½À´Ï´Ù. (°³±×ÄܼƮ ½Ä½Å¹öÁ¯)
ÇöÀç byus.net¿¡¼ À¥È£½ºÆÃÀ» ¹Þ°í °è½Ã´Â ºÐÀ̶ó¸é ³Ñ¾î°¡¼Åµµ µÇ´Â
ºÎºÐÀº exec()ÇÔ¼ö Test, Mysql sock Test, Web server ¼³Á¤, php.ini ¼³Á¤
shell È®ÀÎÀÛ¾÷ °ú°¨È÷ ³Ñ¾î°¡ÁÝ´Ï´Ù. ¿Ö? Á¦°¡ ´Ù Å×½ºÆ®Ç߰ŵç¿ä ^^
±×·³, ¿ì¸®°¡ ¼ÂÆÃÇØÁà¾ßµÇ´Â°Ç ¹«¾ùÀÌ³Ä ?
¾ÐÃàǪ´Â °ÍºÎÅÍ Çصå·Á´Â°Ô Â÷ÈÄ Áú¹®ÀÌ ¿Ã¶ó¿Ã ²«´öÁö¸¦ ¾ø¾Ù¼ö ÀÖ°ÚÁÒ.^^
ÀÏ´Ü ÇöÀç(2004-02-25) ¹öÁ¯Àº http://kldp.net/download.php/575/jsboard-2.0.6.tar.gz
³×¿ä.
[urAccountname@ServerName public_html]$ _
ÀÌ Æú´õ¿¡ ´Ù¿î·ÎµåÇÑ ¿øº»À» FTP¸¦ ÅëÇؼ ¾÷·ÎµåÇÕ´Ï´Ù.
[urAccountname@ServerName public_html]$ ls jsboard*
jsboard-2.0.6.tar.gz
¿Ã¶ó¿Í ÀÖ±º¿ä. ÀÌÁ¦ ¾ÐÃàÀ» Ç®¾î¾ßÁÒ.
[urAccountname@ServerName public_html]$ tar xvfz jsboard-2.0.6.tar.gz
jsboard-2.0.6/xxxxxxxxxxxxxxxxxxxxxx
jsboard-2.0.6/xxxxxxxxxxxxxxxxxxxxxx
jsboard-2.0.6/xxxxxxxxxxxxxxxxxxxxxx
............................................................
¹¹½Ã¸· Áö³ª°©´Ï´Ù. ÀߵƽÀ´Ï´Ù.
±×·³ ÀÌÁ¦ Àû¼öº¸µå°¡ Ç®¸° Æú´õ·Î °¡º¼±î¿ä?
[urAccountname@ServerName public_html]$ cd jsboard-2.0.6
[urAccountname@ServerName jsboard-2.0.6]$ _
±×·³ ÀÌÁ¦ ¼¼È÷ ¼ÂÆÃÀ» ÇØÁà¾ßÁÒ ¤¾¤¾¤¾ °Ì³»Áö¸¶½Ã°í
¸®´ª½ºÈ¯°æÀÇ ÄÜ¼Ö ¿¡µðÅÍ vi ³ª pico ¿¡ Àͼ÷Ä¡ ¾ÊÀ¸½ÅºÐÀº ftp·Î ¼öÁ¤ÇϼžߵǴ ÆÄÀÏ
À»
´Ù¿î·Îµå/¾÷·Îµå¸¦ ÅëÇؼ ¼öÁ¤À» ¸¶Ä¡½Ã±æ ¹Ù¶ø´Ï´Ù.
Àϵý ! ¸ÕÀú DATABASE ½ºÅ°¸¶¸¦ ¼¼ÆÃÇϱâ À§Çؼ À̵¿ !
[urAccountname@ServerName jsboard-2.0.6]$ cd INSTALLER/SQL
¿©±â¿¡¼ È®ÀåÀÚ°¡ .SQL·Î ³¡³ª´Â ÆÄÀϵéÁß byus.net Àº ¸®´ª½º Ç÷§ÆûÀ̹ǷÎ
µÎ°³¸¸ ÇÊ¿äÇÏ´Ù´Â °É ´«Ä¡Ã¤¼ÌÀ»°Ì´Ï´Ù.
board-linux.sql , userdb-linux.sql
¾ê³×µéÀÌÁÒ. ±×·³ Database ·Î ¾ê³×µéÀ» Àû¿ë½ÃÄÑÁÖ±â À§Çؼ
$ mysql -u »ç¿ëÀÚ¾ÆÀ̵ð -p µ¥ÀÌŸº£À̽ºÀ̸§ < board-linux.sql
Enter password : »ç¿ëÀÚ¾ÏÈ£
$ mysql -u »ç¿ëÀÚ¾ÆÀ̵ð -p µ¥ÀÌŸº£À̽ºÀ̸§ < userdb-linux.sql
Enter password : »ç¿ëÀÚ¾ÏÈ£
¾î? ¾Æ¹«º¯È°¡ ¾ø´Âµ¥¿ä. ¾ø´Â°Ô Á¤»óÀεðÀ¯ ¤¾¤¾
ÀÌÁ¦ Å×ÀÌºí±¸Á¶Ã¼¸¦ ¸¸µé¾úÀ¸´Ï jsboard-2.0.6/INSTALLER/script Æú´õ·Î À̵¿ !!
drwxr-xr-x 3 jcy0228 jcy0228 4096 7¿ù 29 2003 ./
drwxr-xr-x 6 jcy0228 jcy0228 4096 7¿ù 29 2003 ../
drwxr-xr-x 2 jcy0228 jcy0228 4096 7¿ù 29 2003 LANG/
-rwxr-xr-x 1 jcy0228 jcy0228 1229 7¿ù 29 2003 account*
-rwxr-xr-x 1 jcy0228 jcy0228 824 7¿ù 29 2003 account_p*
-rwxr-xr-x 1 jcy0228 jcy0228 19382 7¿ù 24 2002 conv_udate*
-rwxr-xr-x 1 jcy0228 jcy0228 1000 2¿ù 4 2002 dbconv_to_20*
-rwxr-xr-x 1 jcy0228 jcy0228 3844 8¿ù 17 2002 preinstall*
-rwxr-xr-x 1 jcy0228 jcy0228 3546 7¿ù 29 2003 root*
-rwxr-xr-x 1 jcy0228 jcy0228 3224 7¿ù 29 2003 root_p*
¹¹°¡ ¸¹½À´Ï´Ù. ±×·¯³ª ¿ì¸° °èÁ¤»ç¿ëÀÚÀ̹ǷÎ
$ ./account
########################################################
# JSBoard Config File Installer v2.0 #
# Scripted By JoungKyun Kim < http://www.oops.org > #
########################################################
STEP 1 Language Check
---------------------
Can you enable to use KOREAN in this console? [Y/N](default Y) : Y
config/global.ph config/spam_list.txt file ÀÇ group ¼ÒÀ¯±ÇÀÌ nobody
¿¡°Ô ÀÖ¾î¾ß ÇÕ´Ï´Ù. ¸¸¾à À§ÀÇ ÆÄÀϵéÀÇ ±×·ì ¼ÒÀ¯±ÇÀ» º¯°æÇÒ ¼ö ¾ø´Ù
¸é permission À» 606À¸·Î ¸ÂÃç ÁֽʽÿÀ
ÀÌ·±°Ô ¶ß³×¿ä. ±×·³ Æ۹̼ÇÀ» ¹Ù²ãÁà¾ßÁÒ.
cd jsboard-2.0.6/config/ ·Î À̵¿
¾Æ·¡ º¸½Ã¸é
global.ph ¿Í spam_list.txt °¡ ÀÖÀ»°Ì´Ï´Ù. ÀÌÀü ¹öÁ¯Àº spam_list.ph ÀÔ´Ï´Ù.
À̺κÐÀÇ .ph ¶§¹®¿¡ ¾ÆÆÄÄ¡¼ÂÆÃÀ» °Çµå·ÁÁà¾ßµÇ¼ ÀÚµ¿ÀνºÅçÀÌ ¾ÈµÇ¼ ¿ì¸®°¡
ÀÌ°í»ýÀ» ÇÕ´Ï´Ù. ^^ ±×·¡µµ ¾î·Æ°í ¿À·¡°É¸®´Â ÀÏÀº ¾Æ´Ï´Ï ÀÌÁ¤µµ ¼ö°íÂëÀº
°¡»ÓÈ÷ ½ºÅÜÀ» ¹â¾ÆÁÝ´Ï´Ù.
$ chmod 606 config/global.ph
$ chmod 606 config/spam_list.txt
ÀÌ µÎ ÆÄÀÏÀÇ Æ۹̼Ç(±ÇÇÑ)À» 606À¸·Î ¹Ù²ãÁá½À´Ï´Ù. º¯°æµÈ Æ۹̼ÇÀ» º¸½Ã¸é
-rw----rw- accountname accountname config/global.ph
-rw----rw- accountname accountname config/spam_list.txt
ÀÌ·¸°Ô ¹Ù²ï°É È®ÀÎÇϼÌÀ¸¸é Á¦´ë·Î ÇϽŰ̴ϴÙ.
ÀÌÁ¦ ¸¶Áö¸· ÇÑ°í°³ ³²¾Ò½À´Ï´Ù. ÀÚÀÚ Èû³»½Ã°í
global.ph ÀÇ ¼³Á¤ºÎºÐµéÀ» ¼öÁ¤ÇØÁÖ¼Å¾ß µÇ´ÂÀÏÀÌ ³²¾Ò³×¿ä. ÀÌ ºÎºÐ¿¡¼´Â
¾Æ±î ¾ð±ÞÇÑ°Íó·³ vi , pico °°Àº ¸®´ª½ºÇ÷§Æû ¿¡µðÅÍ¿¡ Àͼ÷Ä¡ ¾ÊÀ¸½Å ºÐÀº
FTP¸¦ ÅëÇؼ ÀÌ ÆÄÀÏÀ» ´Ù¿î¹ÞÀ¸½Å ÈÄ À©µµ¿ìÀÇ ³ëÆ®Æе峪 ±âŸ Àͼ÷ÇÑ
ÅؽºÆ® ¿¡µðÅ͸¦ ÅëÇؼ ¼öÁ¤ÇϽŠÈÄ ¾÷·Îµå ÇϽðí ÆÛ¹Ì¼Ç 606 ÀÌ ¸Â´ÂÁö
È®ÀÎ ÇØÁÖ½Ã¸é µÇ°Ú½À´Ï´Ù.
== global.ph ÆÄÀÏ ³»¿ëÁß ¼öÁ¤ÇØ¾ß µÇ´Â ¼½¼Ç ==
###########################################
# DATABASE Configuration (µ¥ÀÌŸº£À̽º Á¢¼ÓÀ» À§ÇÑ ¼³Á¤ºÎºÐ)
###########################################
$db[server] = ":/var/lib/mysql/mysql.sock"; # DB address
$db[user] = "À¯Àú¾ÆÀ̵ð"; # DB login user
$db[pass] = "¾Ï È£"; # DB login pass
$db[name] = "µðºñÀ̸§"; # DB name (º¸ÅëÀº °èÁ¤¾ÆÀ̵ð¶û
°°ÁÒ)
###########################################
# BASIC Configuration
###########################################
# web path of installed jsboard (À¥»óÀÇ Àû¼öº¸µåÀ§Ä¡)
$board[path] = "http://µµ¸ÞÀÎÁÖ¼Ò/jsboard/";
# Á¦ÀÏ ¸¶Áö¸·Àº / ·Î ¸·Çô ÀÖ¾î¾ß ÇÑ´Ù. <------- Áß¿ä
###########################################
# Anti Spam Configuration
###########################################
$board[antispam] = "12345:67:89";
ÀÌ ¼³Á¤Àº ½º ÆÔ µî·Ï±âÀÇ ½º ÆÔµî·ÏÀ» ¸·±â À§ÇÑ ¼³Á¤ÀÌ´Ù. ¼öÀÛ¾÷À¸·Î ¿Ã¸®´Â ±¤°í
±ÛµéÀº ¸·À» ¼ö ´Â ¾øÁö¸¸, ½º ÆÔ µî·Ï±â¸¦ ÀÌ¿ëÇÑ ¹«Â÷º°ÀûÀÎ µî·ÏÀº ¸·À» ¼ö°¡ ÀÖ
´Ù. ÀÌ º¯¼öÀÇ °ªÀº 3°³ÀÇ Çʵå·Î ±¸ºÐÀÌ µÈ´Ù. Áï a:b:c ¿Í °°ÀÌ : ¹®ÀÚ·Î Çʵ带
±¸ºÐÀ» ÇÑ´Ù. a ÀÇ ÀÚ¸®¿¡´Â 5ÀÚ¸®ÀÇ Á¤¼ö°¡, b ¿Í c ¿¡´Â 2 ÀÚ¸®ÀÇ ÀÓÀÇÀÇ Á¤¼ö¸¦
ÁöÁ¤Çϵµ·Ï ÇÑ´Ù. ¿¹¸¦ µé¾î
$board[antispam] = "12345:67:89";
¿Í °°ÀÌ ÁöÁ¤À» ÇÏ¸é µÈ´Ù. ÀÌ ¼³Á¤ÀÌ À߸ø µÇ¾úÀ» °æ¿ì ±Û µî·ÏÀÌ µÇÁö¸¦ ¾Ê´Â´Ù.
¶ÇÇÑ ÀÌ ¼³Á¤À¸·Î ÀÎÇÏ¿© list ³ª read ÆäÀÌÁö¸¦ °ÅÄ¡Áö ¾Ê°í ¹Ù·Î write ÆäÀÌÁö¿¡
¼ ±ÛÀ» µî·ÏÇÒ ¼ö ¾ø°Ô µÈ´Ù.
###########################################
# login mode Configuration
###########################################
# login variation name (This value must be modified as security problem)
$jsboard = "login";
ÀÌ °ªÀº jsboardÀÇ login º¯¼ö¸íÀ» ÁöÁ¤ÇÑ´Ù. º¸¾È»ó ´Ù¸¥ °ªÀ¸·Î º¯°æÇØ ÁÖ´Â °Í
ÀÌ ÁÁ´Ù. ÀÓÀÇÀÇ ¾ËÆĺªÀ¸·Î µÈ ÇÑ´Ü¾î ¶Ç´Â ¹«ÀÛÀ§ ´Ü¾î¸¦ ÁöÁ¤ÇÏ¸é µÈ´Ù.
# Don't touch this line.
$jsboard = "jsboard".$jsboard;
ÀÌ °ªÀº °Çµå¸®Áö ¾Êµµ·Ï ÇÑ´Ù. ÀÌ °ªÀº À§¿¡¼ ÁöÁ¤ÇÑ°ªÀÌ ´Ù¸¥º¯¼ö¿Í Ãæµ¹ÀÌ µÉ
±îºÁ ¹æÁöÇϱâ À§ÇÑ °ªÀÌ´Ù.
# location of default page after login
$print[dpage] = "http://µµ¸ÞÀÌÀ̸§/jsboard/list.php?table=test";
ÀÌ °ªÀº ·Î±×ÀÎ ÈÄ¿¡ À§Ä¡ÇÒ ÆäÀÌÁö¸¦ ÁöÁ¤Çϵµ·Ï ÇÑ´Ù.
###########################################
# Theme Configuration
###########################################
# Theme Name
$print[theme] = "KO-default";
ÀÌ °ªÀº ¿µ¹® ÆäÀÌÁö·Î ¿î¿µÇÏ·Á¸é EN-default ¸¦ ÁöÁ¤ÇÏ°í ÇÑ±Û ÆäÀÌÁö·Î ¿î¿µÇÏ
·Á¸é KO-default ·Î ÁöÁ¤À» Çϵµ·Ï ÇÑ´Ù.
================================================
ÈÞ¿ì ÀÌÁ¦ ³¡³µ³×¿ä. ÀÌÁ¦ È®ÀÎÇغÁ¾ßÁÒ. À¥À¸·Î °¡º¾´Ï´Ù.
http://µµ¸ÞÀÎÁÖ¼Ò/jsboard-2.0.6/login.php?type=admin
Àâ¼³ : jsboard-2.0.6 ó·³ º¸ÀÌ½Ã´Â°Ô ½ÈÀ¸½Å ºÐÀº public_html/ ¾Æ·¡¿¡¼
mv jsboard-2.0.6/ jsboard
Àú´Â jsboard·Î Çß½À´Ï´Ù¸¸ ´Ù¸¥À̸§À¸·Î Çϼŵµ µÇ½Ã°Ù³×¿ä.
Ãʱ⠰ü¸®ÀÚ ID¿Í Æнº¿öµå´Â admin // 0000 ÀÔ´Ï´Ù. Ãʱâ·Î Á¢¼ÓÈÄ user info
¿¡¼ ¾ÏÈ£´Â º¯°æÇØÁּžߵǰÙÁÒ. ^^ ¾îµå¹Î ID °¡ adminÀÌ ¾Æ´Ñ ´Ù¸¥°É·Î
¹Ù²Ù½Ç·Á¸é db¿¡¼ Á÷Á¢ º¯°æÇØÁÖ¼Å¾ß ÇÕ´Ï´Ù. Àüü°ü¸®ÀÚ´Â »èÁ¦°¡ ºÒ°¡´É
Çϴٴ°͵µ ¾Ë¾ÆµÎ¼¼¿ä. ±×·³ ¼ö°í¸¹À¸¼Ì½À´Ï´Ù. (_ _) by aego
|
|
Page Loading [ 0.13 Sec ]
SQL Time [ 0 Sec ]
|
|
|