|
Linux(RedHat7.3) + Apache(2.0.48) + PHP(4.3.4) + Mysql(4.0.17) + Oracle*8.1.7) +Tomcat(4.1.18)
* ¼³Ä¡¿¡ ¾Õ¼....
¿Ö ÀÌ·± ¼³Ä¡°¡ ÇÊ¿ä ÇÑÁö Á¦°¡ ¼ÂÆà ÇÏ°íµµ Àǹ®ÀÌ µì´Ï´Ù. ¿å½ÉÀ̶ó°í ÇÒ±î¿ä...
ÇÁ·Î±×·¥ À̶ó°í ÇÑÁö °ÅÀÇ 10³âÀÌ Áö³ª °©´Ï´Ù. °í 3¶§ Á÷¾÷ ÈƷÿø¿¡¼ ¹è¿î C¾ð¿¡ ¹ÝÇؼ,
Àü¹®´ë¿¡ ÁøÇÐ ÇÏ°í, µµ½º 6.2¿¡ ºüÁ® Çб³ ÄÄÇ»ÅÍ ´Ù °íÀå³»°í..¤»¤»
±º´ë¸¦ °¡°í, Á¦´ë¸¦ ÇÏ°í, ³ë·®Áø¿¡¼ »ý¼± Àå¼ö·Î Àá±ñ µ·À» ¹ú¸é¼µµ, ÇÁ·Î±×·¥À» ÇÏ°í ½ÍÀº ¿å½É,
´Ù½Ã Á÷¾÷Àü¹®Çб³ ¿¡¼ 6°³¿ù À¥¸¶½ºÅÍ °ÀÇ µè°í...
php ÇÁ·Î±×·¥ ÇÏ´Â Á÷¾÷À¸·Î....
¿å½ÉÀÔ´Ï´Ù. ¾ÆÁ÷Àº ¿å½ÉÀ̰ŵç¿ä..¤»¤»
¼³Ä¡ ¹®¼´Â ³Ê¹« ¸¹ÀÌ ÂüÁ¶¸¦ Çؼ ÀÏÀÏÀÌ ¹àÈ÷±â°¡ ÈûµçÁ¡ »ç°ú µå¸³´Ï´Ù.
±×·³ »ðÁúÀÇ ¼¹ö ¼ÂÆà µé¾î°©´Ï´Ù...
1. ¼³Ä¡ ¼ø¼
1)Linux7.3(KDE ²À¼³Ä¡¿ä!!)
2)Oracle(8.1.7 + jdk118_v3-glibc-2.1.3 + jre118_v3-glibc-2.1.3)
3)imap-2001a
3)Mysql(4.0.17)
4)Apache(2.0.48)
5)PHP(4.3.4)
6)Zend OPTIMIZER(2.1.0)
7)j2sdk-1_3_1_10
8)Tomcat(4.1.18)
9)Tomcat-connectors(4.1.18-src)
2. ¼³Ä¡Àü Àǹ® »çÇ×
À§ÀÇ ¼ø¼ Áß¿¡ jdk°¡ ´Ù¸¥ ¹öÁ¯À¸·Î µÎ¹ø ±ñ´Ù.. ¿©±â¼ Àú´Â °í¹ÎÀ» Çß½À´Ï´Ù.
À§ÀÇ ¼³Ä¡Àü Oracle À» ¼³Ä¡ ÇÒ¶§ java ȯ°æÀ» ¸¸µé¾î Áà¾ß Çϴµ¥ jdk118 ÀÌ°É »ç¿ë ÇÒÁö ¾Æ´Ô j2sdk-1_3_1 À» »ç¿ëÇÒÁö..
°á·ÐÀº µÎ°³¸¦ °°ÀÌ »ç¿ë Çϱâ·Î Çß½À´Ï´Ù. ¼³Ä¡ ÈÄ º°¹®Á¦ ¾øÀÌ µÇ´õ±º¿ä ÀÌÀ¯´Â ¿À¶óŬ ¼³Ä¡¿¡¼ ¹àÈ÷±â·Î ÇÕ´Ï´Ù.
ÇØ°á Çϳª¸¸ ¼³Ä¡ ÇÏ´Â ÇØ°á ¹æ¾Èµµ Áö±Ý ã°í ÀÖ½À´Ï´Ù. ¾Æ½Ã´Â ºÐÀº ¸®Çà ºÎŹ µå¸³´Ï´Ù.
Zend °¡ ¾ÆÆÄÄ¡2 ¿¡¼´Â ¼³Ä¡°¡ ¾ÊµÈ´Ù, ¶Ç´Â PHP 4.3.X ÀÌ»ó ¿¡¼´Â ¾ÈµÈ´Ù´Â ¹®¼ ȤÀº ¼³Ä¡ Èı⸦ ºÃ½À´Ï´Ù.
ÀÏ´Ü ¼³Ä¡°¡ ¼º°ø ÇÏ´Â°É º¸´Ï ±×¸®°í, phpinfo·Î Âï¾îº¸´Ï ¹«¸® ¾øÀÌ µÇ´õ±º¿ä.. ±×·¡¼ ¼³Ä¡ ÇÕ´Ï´Ù.
Tomcat ¼³Ä¡ÈÄ ¾ÆÆÄÄ¡¿Í ÇÔ²² 80Æ÷Æ® ¶ÇÇÑ °°ÀÌ »ç¿ëÇÏ´Â ¹öÃÄÈ£½ºÆà ±îÁö Çѹø Çغ¸°Ú½À´Ï´Ù..
±×·³ º»°Ý ÀûÀÎ »ðÁú·Î °©´Ï´Ù.
3. ¼³Ä¡
1)Oracle(8.1.7)
¿À¶óŬ °èÁ¤ ¼³Á¤
$ su -
password:
# groupadd dba
# useradd oracle -d /home/oracle -g dba
# passwd oracle
# exit
$root °èÁ¤¿¡¼ ÀÛ¾÷
# tar xvfj jdk118_v3-glibc-2.1.3.tar.bz2 -C /usr/local/
# ln -s /usr/local/jdk118_v3 /usr/local/java
# tar xvfj jre118_v3-glibc-2.1.3.tar.bz2 -C /usr/local/
# ln -s /usr/local/jre118_v3 /usr/local/jre
# chown root.root /usr/local/jdk118_v3 /usr/local/jre118_v3 -R
oracle°èÁ¤ÀÇ .bash_profile ¼öÁ¤
$ su - oracle
password:
$ vi ~/.bash_profile
* Âü°í : ÀúÀÇ .bash_profile ȯ°æÀ» ¿Ã¸³´Ï´Ù. ÀÚ½ÅÀÇ ¼³Á¤¿¡ ¸Â°Ô ÆíÁý Çϼ¼¿ä..
####### ¿©±â¼ ºÎÅÍ .bash_profile ###########
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
export ORACLE_BASE=/oracle/app/oracle
export ORACLE_HOME=/oracle/app/oracle/product/8.1.7
export ORACLE_OWNER=oracle
export ORACLE_SID=ORCL
export TMPDIR=$ORACLE_BASE/tmp
export PATH=$PATH:$ORACLE_HOME/bin:/usr/local/java/bin
export JAVA_HOME=/usr/local/java
export TNS_ADMIN=$ORACLE_HOME/network/admin
export NLS_LANG=American_America.KO16KSC5601
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export LD_ASSUME_KERNEL=2.2.5
source /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh
export LANG=C
umask 022
export PATH
unset USERNAME
#### ¿©±â ±îÁö .bash_profile ##########
* Âü°í À§ .bash_profile ¿¡¼ Áß¿äÇÑ°Ç
export LD_ASSUME_KERNEL=2.2.5
source /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh
ÀÌ°Å µÎÁÙÀÔ´Ï´Ù. ÀÌ°É ½áÁÖÁö ¾Ê°í ÇÏ´Â ¹ýµµ ÀÖ½À´Ï´Ù.
ÀÌ°É ÇØÁÖÁö ¾ÊÀ½ ¿À¶óŬ ÀνºÅÚ·¯°¡ ¶ßÁö ¾Ê½À´Ï´Ù. ±»ÀÌ ÇÏ´Â ¹ýÀº
µÚ¿¡ ¼³¸í ÇÏ°Ú½À´Ï´Ù.
¿À¶óŬ ¼³Ä¡ µð·ºÅ丮 »ý¼º
$ su -
password:
# mkdir /oracle/app/oracle/oraInventory -p
# chown oracle.dba /oracle -R
¿À¶óŬ ¾ÐÃà Ç®±â
# tar xvf linux81701.tar -C /tmp
# chown oracle.dba /tmp/Disk1 -R
¿À¶óŬ ¼³Ä¡ (oracle°èÁ¤ÀÇ x-window(KDE)¿¡¼ ½ÇÇàµÇ¾î¾ß ÇÔ)
Å͹ÌÅРâÀ» ¶ç¿ì°í...
$ cd /tmp/Disk1
$ ./runInstaller
Âü°í :
export LD_ASSUME_KERNEL=2.2.5
source /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh
ÀÌ°É ÇØÁÖÁö ¾Ê°í ½ÇÇà ÇÏ¸é ¾Æ¹« ȸ鵵 ³ª¿ÀÁö ¾Ê½À´Ï´Ù.
±×·³
vi /tmp/Disk1//tmp/Disk1/install/or***.ini
ÆÄÀÏÀ» ¼öÁ¤
JRE_LOCATION=/usr/local/java
ÀÌ·¸°Ô ¼öÁ¤ Çϸé ȸéÀÌ ¶á´Ù...
Welcome : Next ¹öÆ°
File Locations
UNIX Group Name ȸé
UNIX Group Name¿¡ dba¸¦ ÀÔ·Â
Oracle Universal Installer
/oracle/app/oracle/product/8.1.7/orainstRoot.shÀ» root±ÇÇÑÀ¸·Î ½ÇÇàÇÏ
¶ó´Â ¾Ë¸²Ã¢ÀÌ ¶á´Ù.
Å͹ÌÅÐÀ» Çϳª ´õ ¶ç¿ö¼ ¾Æ·¡¿Í °°ÀÌ ½ÇÇà
$ su
password :
# /oracle/app/oracle/product/8.1.7/orainstRoot.sh
½ÇÇàÇÑÈÄ¿¡ ´Ù½Ã OUI·Î µ¹¾Æ¿Í¼ retry¹öÆ° Ŭ¸¯
Available Products
Oracle8i Enterprise Edition 8.1.7.0.1 ¼±ÅÃ
Installation Types
Custom ¼±ÅÃ
Available Product Components
net8 components ÀÇ Ç׸ñ ¸ðµÎ ¼±ÅÃ.
tcp/ip°ü·Ã Ç׸ñ ±âº»ÀûÀ¸·Î ¼±ÅÃÀÌ µÇ¾îÀÖÁö ¾Ê±â ¶§¹®¿¡ ¹Ýµå½Ã ¼±ÅÃ
Component Locations ȸé
Java Runtime Environment 1.1.8
(apache¸¦ üũÇÏÁö ¾ÊÀ¸½Ã¸é ÀÌȸéÀº ³ª¿ÀÁö ¾Ê´Â´Ù.)
±×³É ´ÙÀ½ Ŭ¸¯
Privileged Operating System Groups
Database Administrator (OSDBA) Group : dba
Database Operator (OSOPER) Group : dba
Create Database
No ¼±ÅÃ
Summary
(³ª¸ÓÁö ¿°ÅÇÏÁö ¾ÊÀº Ç׸ñµéÀº ±×³É ´ÙÀ½À» Ŭ¸¯)
´ÙÀ½ Ŭ¸¯
Install
¼³Ä¡...
Setup Privileges
´ÙÀ̾ó·Î±× âÀÌ º¸ÀÌ¸é ·çÆ®°èÁ¤ÀÇ µÎ¹ø° ÇÑÅÒ¿¡¼ ´ÙÀ½°ú °°ÀÌ ½ÇÇà
# /oracle/app/oracle/product/8.1.7/root.sh
....[/usr/local/bin]: <enter>
Ok ¹öÆ°
Configuration Toos
Net8 Configuration Assistant in progress...
¼³Ä¡°¡ ¾ÈµÇ¹Ç·Î Net8À» ¼±ÅÃÇÑ ÈÄ Áß´ÜÀ» ´©¸§.
±×¸®°í ´ÙÀ½À» Ŭ¸¯
´Ù½Ã óÀ½È¸éÀ¸·Î µ¹¾Æ°¡´Âµ¥ °è¼Ó ´ÙÀ½À» ´©¸£°í
Available Product Components
¿¡¼ net8 components ÀÇ Ç׸ñÀ» ¸ðµÎ À缳ġ¼±ÅÃ
¼³Ä¡ Áß¿¡
"ins_net_client.mk .. µîÀÇ ¿À·ù°¡ ¹ß»ýÇß½À´Ï´Ù" ¶ó´Â ³»¿ëÀÇ
´ÙÀ̾ó·Î±×°¡ ¶ß¸é ¸ðµÎ ¹«½Ã¸¦ Ŭ¸¯
¼³Ä¡ÇÏ°í ¿Ï·áµÇ¸é Á¾·áÇÔ
¿À¶óŬ ÆÐÄ¡(1)
$ cd Disk1/patch
$ ls
bug1538440 bug1542738
$ cd bug1542738/
$ sh README.1542738
$ cd ../bug1538440
$ export TOP_PATCH_DIR=/Disk1/patch/bug.1538440
$ sh README.1538440
¿À¶óŬ ÆÐÄ¡(2)
$ cd $ORACLE_HOME
$ tar xvfz glibc-2.1.3-stubs.tar.gz
$ ./setup_stubs.sh
DB»ý¼º
$ dbassist
(dbassist°¡ ¾È¶ã°æ¿ì¿¡´Â
$ killall jre -9 ¸¦ ½ÇÇàÇÏ°í ´Ù½Ã ½ÇÇà)
¼ø¼ :
Create A database -> Custom -> Multipurpos(´Ù¸ñÀû) -> Á¢¼Ó À¯Àú¼ö(±âº» : 15) next -> Dedicated Server Mode ->
µ¥ÀÌÅͺ£À̽º¿ëÀ¸·Î ±¸¼ºÇÒ ¿É¼ÇÀ» ¼±Åà ÈÄ [Next] ->
ÀÌÁ¦ºÎÅÍ´Â ÀÚ¼¼ÇÑ È¯°á ¼³Á¤ÀÌ´Ù.
Àü¿ª µ¥ÀÌÅͺ£À̽º¸í : oracle
SID : ORCL
[Change Character Set]¹öÆ°À» Ŭ¸¯ÇÏ¿© ´ÙÀ½À» ¼±ÅÃÇÕ´Ï´Ù.
Character Set(¹®ÀÚÁýÇÕ) :¹®ÀÚÁýÇÕÀ» KO16KSC5601·Î º¯°æÇÕ´Ï´Ù.
National Character Set(±¹°¡º° ¹®ÀÚ ÁýÇÕ) :
±¹°¡º° ¹®ÀÚ ÁýÇÕµµ KO16KSC5601FIXEDº¯°æÇÕ´Ï´Ù.
-> NEXT
-> NEXT
-> NEXT
-> NEXT
-> NEXT
-> NEXT
-> ¡°save information to a shell script¡± ¼±Åà ÈÄ [finish]¹öÆ°À» Ŭ¸¯ÇÕ´Ï´Ù
-> ½ºÅ©¸³Æ® ÆÄÀ̸í(oracle_install) ÀÔ·ÂÈÄ ok ¹öÆ°
-> ÀúÀå °æ·Î È®ÀÎ ÈÄ ok
initoracle.ora ÆÄÀÏ ¼öÁ¤
À§ ÆÄÀÏÀ» ¼öÁ¤ ÇÏÁö ¾ÊÀ½ ¿¡·¯ ³³´Ï´Ù.
¼öÁ¤ :
mts_dispatchers·Î ½ÃÀÛÇÏ´Â ¼³Á¤À» ÁÖ¼®À¸·Î ó¸®ÇÕ´Ï´Ù.
ÁÖ¼® 󸮵ÇÁö ¾ÊÀº °÷Àº µÎ °÷ÀÔ´Ï´Ù. ÇÏ´Ü¿¡ À§Ä¡ÇÏ°í ÀÖ½À´Ï´Ù.
ÁÖ¼® 󸮸¦ ÇÏÁö ¾ÊÀ¸¸é DB¸¦ »ý¼ºÇÒ ¶§ ora00102 ¿¡·¯°¡ ¹ß»ýÇÏ¿© DB°¡ Á¦´ë·Î
»ý¼ºµÇÁö ¾Ê½À´Ï´Ù.
###### ¼öÁ¤ ³»¿ë ½ÃÀÛ ############
[oracle@edu1 oracle]$ cd /oracle/app/oracle/product/8.1.7/dbs/
[oracle@edu1 dbs]$ vi initoracle.ora
mts_dispatchers = "(PROTOCOL=TCP)(SER=MODOSE)"
# Uncomment the following line when your listener is configured for SSL
#mts_dispatchers = "(PROTOCOL=TCPS)(SER=MODOSE)"
mts_dispatchers = "(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)"
# Uncomment the following line when your listener is configured for SSL
# (listener.ora and sqlnet.ora)
[oracle@edu1 dbs]$ vi initoracle.ora
# mts_dispatchers = "(PROTOCOL=TCPS)(PRE=oracle.aurora.server.SGiopServer)"
#mts_dispatchers = "(PROTOCOL=TCP)(PRE=oracle.aurora.server.SGiopServer)"
##### ¼öÁ¤ ³»¿ë ¿©±â ±îÁö #########
½©½ºÅ©¸³Æ® ½ÇÇà
$cd ORACLE_HOME/assistant/dbca
$chmod 755 oracle_install
$ ./oracle_install
db »ý¼ºÀº µÎ¾î ½Ã°£ °É¸³´Ï´Ù...
»ý¼º È®ÀÎ :
$ svrmgrl
Oracle Server Manager Release 3.1.7.0.0 - Production
Copyright (c) 1997, 1999, Oracle Corporation. All Rights Reserved.
Oracle8i Enterprise Edition Release 8.1.7.0.1 - Production
With the Partitioning option
JServer Release 8.1.7.0.1 - Production
SVRMGR> connect internal
Connected.
SVRMGR> startup
ORACLE instance started.
Total System Global Area 93393056 bytes
Fixed Size 73888 bytes
Variable Size 76369920 bytes
Database Buffers 16777216 bytes
Redo Buffers 172032 bytes
Database mounted.
Database opened.
SVRMGR> shutdown
SVRMGR> quit
¸®½º³Ê ¹× tnsname ¼³Á¤ È®ÀÎ
$cd /oracle/app/oracle/product/8.1.7/network/admin/
$vi tnsnames.ora
Âü°í : ÀúÀÇ tnsnames.ora ÆÄÀÏ ÀÔ´Ï´Ù. Âü°í Çϼ¼¿ä...
######## tnsnames.ora ½ÃÀÛ
# TNSNAMES.ORA Network Configuration File: /oracle/app/oracle/product/8.1.7/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ÀÚ½ÅÀÇ ¾ÆÀÌÇÇ ¼³Á¤)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
)
)
INST1_HTTP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = ÀÚ½ÅÀÇ ¾ÆÀÌÇÇ ¼³Á¤)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = ORCL)
(PRESENTATION =
target=_blank>http://admin)
)
)
######## tnsnames.ora ¿©±â ±îÁö
$vi listener.ora
Âü°í : ÀúÀÇ listener.ora ÆÄÀÏÀÔ´Ï´Ù. Âü°í Çϼ¼¿ä...
####### listener.ora ½ÃÀÛ
# LISTENER.ORA Network Configuration File: /oracle/app/oracle/product/8.1.7/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ÀÚ½ÅÀÇ ¾ÆÀÌÇÇ)(PORT = 1521))
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = /oracle/app/oracle/product/8.1.7)
(SID_NAME = ORCL)
)
)
####### listener.ora ¿©±â ±îÁö
¿À¶óŬ µ¥ÀÌŸ º£À̽º, ¸®½º³Ê ±âµ¿
$ svrmgrl
SVRMGRL> connect internal;
SVRMGRL> startup;
SVRMGRL> quit;
$lsnrctl
LSNRCTL> start;
LSNRCTL> quit;
11. ¿À¶óŬ µ¥ÀÌÅÍ º£À̽º, ¸®½º³Ê Á¾·á
$lsnrctl
LSNRCTL> stop;
LSNRCTL> quit;
$svrmgrl
SVRMGRL>connect internal;
SVRMGRL> shutdown;
SVRMGRL> quit;
ÀÌ·¸°Ô ÇÏ¸é ¿À¶óŬ »ý¼º ³¡...
¸®½ºÅÍ ¼³Á¤À» ÆÄÀÏ ÆíÁýÀÌ ¾Æ´Ñ ±×·¡ÇÈ È¸é(¼³Á¤ â)À¸·Î ÇÏ½Ç ºÐÀº db »ý¼ºÈÄ ´ÙÀ½°ú °°ÀÌ Çϼ¼¿ä..
Âü°í : ¸®½º³Ê ¼³Á¤ KDE Å͹̳Πâ¿¡¼(¿À¶óŬ °èÁ¤)
¸®½º³Ê ¼³Á¤
$ vi $ORACLE_HOME/bin/netasst
ÇÑ ÈÄ JREDIR=/usr/local/jre·Î ¼öÁ¤
$ netasst
¸®½º³Ê¸¦ ¼±ÅÃÈÄ ¿ÞÂÊ¿¡ "+" ¹öÆ°À» ´©¸§.
¼ö½ÅÀ§Ä¡Ãß°¡, µ¥ÀÌÅͺ£À̽º Ãß°¡ ÇÑ ÈÄ ÀúÀå.
########## ¿À¶óŬ ¼³Á¤ ³¡ #############
###### ¿À¶óŬ Âü°í ############
¿À¶óŬ8i¸¦ ´Ù½Ã ¼³Ä¡ÇÒ °æ¿ì¿¡´Â °ü·ÃµÈ ÆÄÀϵéÀ» »èÁ¦ÇÑ ÈÄ À缳ġ¸¦
ÇؾßÇÕ´Ï´Ù. oracle °èÁ¤À¸·Î µé¾î°¡¼ ¾Æ·¡ÀÇ ¸í·ÉÀ» ½ÇÇàÇÕ´Ï´Ù.
$ cd $ORACLE_HOME
$ rm -rf *
$ cd $ORACLE_BASE
$ rm -rf *
ÀÌÈÄ root °èÁ¤À¸·Î µé¾î°¡¼ ¾Æ·¡ÀÇ ¸í·ÉÀ» ½ÇÇàÇÕ´Ï´Ù.
# cd /etc
# rm oraInst.loc
# mv oratab oratab.old
# cd /usr/local/bin
# rm dbhome oraenv coraenv
###### ³¡ ####################
2) imap-2001a ¼³Ä¡
¾ÐÃà Ç®±â : tar zxvf imap-2001a.tar.Z
¾ÐÃà Ǭ µð·ºÅ丮¸¦ /usr/local/imap ·Î ¿Å±â±â...
[root@www src]# cd imap-2001a
[root@www imap-2001a]# make slx imapÀ» ÄÄÆÄÀÏ ÇÑ´Ù
ÄÄÆÄÀÏÀÌ ¿Ï·áµÇ¸é imapd µð·ºÅ丮¿¡ imapd°¡ ipopdµð·ºÅ丮¿¡´Â ipop2d, ipop3d°¡ »ý¼ºµÈ´Ù. ipop2d´Â Àß ¾²Áö ¾ÊÀ¸¹Ç·Î º¹»çÇÏÁö ¾Ê¾Æµµ µË´Ï´Ù.
[root@www imap-2001a]# cp imapd/imapd /usr/sbin »ý¼ºµÈ ½ÇÇàÈÀϵéÀ» º¹»ç.
[root@www imap-2001a]# cp ipopd/ipop3d /usr/sbin
[root@www imap-2001a]# cp ipopd/ipop2d /usr/sbin
À̵éÀº xinetd ½´ÆÛµ¥¸ó¿¡ ÀÇÇؼ ½ÇÇàµÇ¹Ç·Î Ŭ¶óÀ̾ðÆ® ÂÊ¿¡¼ Á¢¼ÓÇÏ¿© »ç¿ëÇÒ ¼ö ÀÖµµ·Ï ÇÏ·Á¸é ȯ°æ¼³Á¤À» ¼öÁ¤ÇØ ÁÖ¾î¾ß ÇÑ´Ù.
¹èÆ÷ÆÇ ·¹µåÇÞ6.2ÀÌÇÏ¿¡¼´Â inetd ½´ÆÛµ¥¸ó¿¡ ÀÇÇØ ½ÇÇàµÇ¹Ç·Î ȯ°æ¼³Á¤ÀÌ Á¶±Ý ´Ù¸¨´Ï´Ù.
[root@www imap-2001a]# vi /etc/xinetd.d/imapd imapd ½ÇÇàÀ» À§ÇÑ È¯°æ¼³Á¤ÈÀÏÀ» »ý¼º.
service imap
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/imapd
log_on_success += HOST DURATION
log_on_failure += HOST
}
[root@www imap-2001a]# vi /etc/xinetd.d/ipop3d
service pop3
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/ipop3d
log_on_success += HOST DURATION
log_on_failure += HOST
}
[root@www imap-2001a]# vi /etc/services
......
pop3 110/tcp pop-3 # POP version 3
pop3 110/udp pop-3
......
imap 143/tcp imap2 # Interim Mail Access Proto v2
imap 143/udp imap2
......
º¸Åë À§ÀÇ ³»¿ëÀÌ ÀÖ½À´Ï´Ù. ã¾Æº¸°í ÀÖÀ¸¸é ÁÖ¼®Ã³¸®°¡ µÇ¾î ÀÖÁö ¾Ê´ÂÁö¸¸ È®ÀÎÇÏ°í ±×´ë·Î µÎ¼¼¿ä.
[root@www imap-2001a]# /etc/rc.d/init.d/xinetd restart ½´ÆÛµ¥¸óÀ» Àç°¡µ¿.
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
telnetÀ» ÀÌ¿ëÇÏ¿© ·ÎÄÃÈ£½ºÆ® 110Æ÷Æ®(pop3)·Î Á¢¼ÓÇÏ¿© Å×½ºÆ® ÇÕ´Ï´Ù.
[root@www imap-2001a]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
+OK POP3 localhost.localdomain v2001.78 server ready
user mhbaek
+OK User name accepted, password please
pass abc123
+OK Mailbox open, 0 messages
quit
+OK Sayonara
Connection closed by foreign host.
IMAPÀº ±âº»ÀûÀ¸·Î 143 Æ÷Æ®¸¦ »ç¿ë.
3) Mysql(4.0.17) ¼³Ä¡
Mysql ¾ÐÃà Ç®±â... ÈÄ
$ cd mysql-4.0.17
$ ./configure --prefix=/usr/local/mysql --with-charset=euc_kr --localstatedir=/var/lib/mysql
¿É¼Ç°ú ¿É¼Ç»çÀÌ´Â °ø¹é Çϳª¸¸ ÀÖÀ¸¸é µË´Ï´Ù.
À§ ¿É¼ÇÀº ¼³Ä¡µð·ºÅ丮¸¦ ÁöÁ¤ÇÏ°í ÇѱÛÀ» Áö¿øÇϵµ·Ï ÇÏ°í, --localstatedir ¿É¼ÇÀº DBÆÄÀÏÀ» ÀúÀåÇÒ µð·ºÅ丮¸¦ ÁöÁ¤ÇÕ´Ï´Ù.
Ȥ½Ã ½Ç¼ö·Î ȯ°æ¼³Á¤À» ´Ù½Ã ÇؾßÇÒ °æ¿ì make distclean ¸í·ÉÀ» Çϼ¼¿ä.
$ make
$ make install
$ scripts/mysql_install_db
²À !! Çѹø¸¸.... Á¦¹ß..
ÃÖ±ÙÀÇ MySQL¿¡¼ ´Þ¶óÁø Á¡Àº MySQLÀÌ mysql»ç¿ëÀÚ ±ÇÇÑÀ¸·Î ½ÇÇàµË´Ï´Ù.
ÇØ´çÀ¯Àú°¡ ¾ø¾î¼ ÆÄÀϼÒÀ¯ÀÚ°¡ rootÀÎ °æ¿ì ¿¡·¯°¡ ¹ß»ýÇÕ´Ï´Ù.
µû¶ó¼ ´ÙÀ½°ú °°ÀÌ mysql À¯Àú¿Í ±×·ìÀ» »ý¼ºÇÕ´Ï´Ù. ¹èÆ÷ÆÇ¿¡ µû¶ó ¼³Ä¡µÇ¾ú´ø RPM¹öÀü¿¡ ÀÇÇØ ÀÌ¹Ì »ý¼ºµÇ¾î ÀÖÀ» ¼öµµ ÀÖ½À´Ï´Ù.
$ groupadd mysql
$ useradd -g mysql mysql
$ chown -R mysql /var/lib/mysql
$ chgrp -R mysql /var/lib/mysql
$ vipw º¸¾ÈÀ» À§ÇØ »õ·Î »ý¼ºµÈ mysqlÀ¯Àú°¡ ·Î±×ÀÎÀ» ¸øÇϵµ·Ï ¼öÁ¤.
mysql:x:500:500::/home/mysql:/bin/bash ¶óÀÎÀ» ã¾Æ¼ ´ÙÀ½°ú °°ÀÌ ¼öÁ¤.
mysql:x:500:500::/var/lib/mysql:/sbin/nologin
:x¸¦ ÅëÇØ ÀúÀåÈÄ Á¾·á,
You are using shadow passwords on this system.
Would you like to edit /etc/shadow now [y/n] ¶ó°í ¹°À¸¸é n ¶ó°í ÇÏ¸é µË´Ï´Ù.
ÀúÀåÈÄ Ãʱâ Ȩµð·ºÅ丮ÀÎ /home/mysql¸¦ »èÁ¦
$ rm -rf /home/mysql ȨµðÅØÅ丮´Â »ç¿ëÀÚ¸¶´Ù ´Ù¸¦ ¼öµµ ÀÖ½À´Ï´Ù.
$ ls -al /var/lib/mysql MySQL DBµð·ºÅ丮 È®ÀÎ
ÇÕ°è 16
drwx------ 4 mysql mysql 4096 7¿ù 27 17:05 .
drwxr-xr-x 15 root root 4096 7¿ù 27 17:05 ..
drwx------ 2 mysql mysql 4096 7¿ù 27 17:05 mysql
drwx------ 2 mysql mysql 4096 7¿ù 27 17:05 test
À§¿Í °°Àº Ãâ·ÂÇϸéÀ» º¼ ¼ö ÀÖ½À´Ï´Ù. DB°¡ Çϳª Ãß°¡µÉ ¶§¸¶´Ù µð·ºÅ丮°¡ »ý±é´Ï´Ù.
mysql DB´Â ¾Õ¿¡¼ »ý¼º½ÃŲ MySQLÀ» °ü¸®ÇÒ DBÀÔ´Ï´Ù.
$ cp support-files/my-medium.cnf /etc/my.cnf
$ vi /usr/local/mysql/share/mysql/mysql.server
ÆíÁý±â·Î ¿¾î¼ safe_mysqlÀÌ ½ÇÇàµÇ´Â ¶óÀÎ(107 lineÂë)¿¡ --language=korean ¿É¼ÇÀ» Ãß°¡.
Âü°í·Î mysql.server´Â mysqlÀÌ Á¤»óÀûÀ¸·Î ½ÇÇàµÇµµ·Ï Â¥¿© ÀÖ´Â ½ºÅ©¸³Æ®ÈÀÏÀÔ´Ï´Ù.
$bindir/safe_mysqld --pid-file=$pid_file --datadir=$datadir --language=korean & Çѱ۸޼¼Áö¸¦ ¶ç¿ìµµ·Ï ÇØÁÝ´Ï´Ù.
½Ã½ºÅÛ ºÎÆýÿ¡ ÀÚµ¿ ½ÇÇàµÇµµ·Ï ÇØ ÁÝ´Ï´Ù.
$ cp -p /usr/local/mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysqld
$ ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc3.d/S90mysqld
¸¸ÀÏ Xwindows·Î ºÎÆÃÇÒ °æ¿ì¸¦ À§ÇØ /etc/rc.d/rc5.d/ µðÅØÅ丮¿¡µµ ¸µÅ©¸¦ ¸¸µì´Ï´Ù
$ ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc5.d/S90mysqld
ÀÌÈÄ¿¡ ntsysv¸í·ÉÀ» ÇÏ¸é ½Ã½ºÅÛ ºÎÆýÿ¡ ÀÚµ¿½ÇÇàµÉ µ¥¸óÀ» ½±°Ô ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.
$ ntsysv
mysqlµ¥¸óÀÇ ½ÃÀÛ°ú Á¾·á ¹× °ü·Ã ¸í·É¾î¸¦ »ç¿ëÇϱâ ÆíÇÏ°Ô ÇϱâÀ§Çؼ ½Ã½ºÅÛ ºÎÆÃȯ°æ¿¡ PATH¸¦ ÁöÁ¤ÇØ µÓ´Ï´Ù.
$ vi /root/.bash_profile
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/usr/local/mysql/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"
½Ã½ºÅÛ ºÎÆÃȯ°æÀº ¹èÆ÷ÆǸ¶´Ù Á¶±Ý¾¿ ´Ù¸¦ ¼ö ÀÖÀ¸´Ï »ç¿ëÀÚÀÇ È¯°æ¿¡ ¸Â°Ô ÀûÀýÈ÷ ¼³Á¤Çϼ¼¿ä.
$ /etc/rc.d/init.d/mysqld start
$ ps -ef | grep mysql MySQL ÇÁ·Î¼¼½º È®ÀÎÇϱâ
$ /etc/rc.d/init.d/mysqld stop MySQL µ¥¸ó Á¾·áÇϱâ
4)Apache(2.0.48)]
$tar xvfz httpd-2.0.48.tar.gz
$cd httpd-2.0.48
* ./configure À» ÀÏÀÏÀÌ ¼³Á¤Çϱ⠱ÍÂú¾Æ¼ ½ºÅ©¸³Æ® ÆÄÀÏ·Î ¸¸µé¾ú½À´Ï´Ù...¤»¤»
$vi apache_install
#!/bin/sh
./configure \
--prefix=/usr/local/apache \
--enable-rule=SHARED_CORE \
--enable-module=so \
--enable-so \
--enable-mods-shared=all \
--with-mpm=threadpool \
--enable-file-cache \
--sysconfdir=/usr/local/apache/conf \
--datadir=/usr/local/apache \
$chmod 755 apache_install
$./apache_install
$make
$make install
½Ã½ºÅÛ ºÎÆýà ÀÚµ¿½ÇÇàÀÌ µÇµµ·Ï Çϱâ À§ÇÏ¿© ¼³Á¤À» ÇÕ´Ï´Ù.
$ cp -p /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd
$ vi /etc/rc.d/init.d/httpd
$ ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc3.d/S85httpd
$ ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc5.d/S85httpd
½Ã½ºÅÛ Á¾·á ¹× ÀçºÎÆÃÀ» À§ÇÏ¿©....
$ ln -s /etc/rc.d/init.d/apachectl /etc/rc.d/rc0.d/K15httpd
$ ln -s /etc/rc.d/init.d/apachectl /etc/rc.d/rc1.d/K15httpd
$ ln -s /etc/rc.d/init.d/apachectl /etc/rc.d/rc6.d/K15httpd
ȯ°æ¼³Á¤ ÆÄÀÏ ÆíÁý
¾ÆÆÄÄ¡ ȯ°æ¼³Á¤ÈÀÏÀ» ¿¾î¼ ´ÙÀ½°ú °°Àº ȯ°æ¼³Á¤À» ÇÕ´Ï´Ù.
$ vi /usr/local/apache/conf/httpd.conf
Default ½ÃÀÛÆäÀÌÁö ¼³Á¤À» ¼öÁ¤ÇØ ÁÝ´Ï´Ù
<IfModule mod_dir.c>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>
Section 2ÀÇ <IfModule mod_mime.c>´Ü¶ô¿¡¼ ¾Æ·¡ ³»¿ëÀ» Ãß°¡ÇÕ´Ï´Ù.
<IfModule mod_mime.c>
................................
# And for PHP 4.x, use:
AddType application/x-httpd-php .php .php3 .inc .ph .htm
AddType application/x-httpd-php-source .phps
.................................
</IfModule>
ȯ°æ¼³Á¤ ¼öÁ¤ÈÄ ÀúÀåÀ» ÇÕ´Ï´Ù.
$ /usr/local/apache/bin/httpd -t ¿£Å͸¦ µÎµå¸®°í ´ÙÀ½°ú °°Àº ¸Þ½ÃÁö¸¸ ÀÖÀ¸¸é ¾ÆÆÄÄ¡ ȯ°æÀÌ Àß ¼³Á¤µÇ¾ú½À´Ï´Ù.
Syntax OK
¸¸ÀÏ ¿¡·¯°¡ ¹ß»ýÇÏ¿´´Ù¸é ¸î ¹ø° ¶óÀο¡¼ À߸øµÇ¾ú´Ù´Â ¸Þ½ÃÁö¸¦ º¸°í ¼öÁ¤Çϼ¼¿ä.
$ /usr/local/apache/bin/apachectl start ¾ÆÆÄÄ¡¸¦ ½ÇÇà½Ãŵ´Ï´Ù. ÁßÁö´Â stop Àç½ÃÀÛÀº restart Àμö¸¦ »ç¿ëÇÏ¸é µË´Ï´Ù.
¾ÆÆÄÄ¡ °ü·Ã ½ºÅ©¸³Æ®¸¦ ½±°Ô ½ÇÇàÇϱâ À§ÇÑ È¯°æ¼³Á¤À» ÇÕ´Ï´Ù.
$ vi /root/.bash_profile
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/usr/local/mysql/bin:/usr/local/apache/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"
root ¿¡¼¸¸ ÇÊ¿äÇϹǷΠrootÀÇ PATH¿¡ ¾ÆÆÄÄ¡ÀÇ µð·ºÅ丮¸¦ ÁöÁ¤ÇÕ´Ï´Ù. ´Ù½Ã root·Î ·Î±×ÀÎ ÇÏ¸é ¼³Á¤À» Àû¿ëÇÏ¿© »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.
10. Test Çϱâ
Å×½ºÆ® ÈÀÏÀ» ¸¸µé¾î È®ÀÎÀ» ÇØ º¸¼¼¿ä. ¹°·Ð ȨÆäÀÌÁö°¡ ¶ã ¼ö ÀÖ´Â µð·ºÅ丮°¡ µÇ¾î¾ß ÇÕ´Ï´Ù.
¸ÞÀΠȨÆäÀÌÁö °æ·Î´Â ¾ÆÆÄÄ¡ ÄÄÆÄÀϿɼÇ(--htdocsdir=/home/httpd/html) ¶Ç´Â ¾ÆÆÄÄ¡ ȯ°æ¼³Á¤ÆÄÀÏ 325¶óÀÎ Á¤µµ¿¡¼ DocumentRoot "/home/httpd/html"¿¡ ÀÇÇØ ¼³Á¤µÈ °æ·ÎÀÔ´Ï´Ù.
$ vi /home/httpd/html/phpinfo.php
¿¡µðÅÍ Ã¢¿¡¼ ´ÙÀ½³»¿ëÀ» ÀÔ·ÂÇÕ´Ï´Ù.
<?
phpinfo();
?>
ÀúÀåÀ» ÇÏ°í ºê¶ó¿ìÀú¿¡¼ http://localhost/test.php ¶Ç´Â ȨÆäÀÌÁöURL/test.php¸¦ ÀÔ·ÂÇÏ¿© ¾î¶² ³»¿ëÀÌ Ãâ·ÂµÇ´ÂÁö º¾½Ã´Ù.
#### ±âŸ ÀÚ¼¼ÇÑ »çÇ×Àº... ÀÚ½ÅÀÇ ¼³Á¤À» ¸Â°Ô ¼³Á¤ ÇÏ¸é µË´Ï´Ù..
Âü°í »çÀÌÆ®..
target=_blank>http://httpd.apache.org/docs-2.0
5)PHP(4.3.4)
$tar xvfz php-4.3.4.tar.gz
$cd php-4.3.4
php ¼³Á¤À» ½ºÅ©¸³Æ®·Î ÀÛ¼º
$vi php_install
#!/bin/sh
./configure \
--with-exec-dir=/usr/bin \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-apache-install=/usr/local/apache \
--with-oci8=/oracle/app/oracle/product/8.1.7 \
--with-oracle=/oracle/app/oracle/product/8.1.7 \
--with-mysql=/usr/local/mysql \
--with-config-file-path=/etc \
--disable-debug \
--enable-safe-mode \
--enable-track-vars \
--enable-sockets \
--with-png-dir=/usr/lib \
--with-freetype-dir=/usr/include/freetype2 \
--with-mod_charset \
--with-charset=euc_kr \
--with-xml \
--with-language=korean \
--enable-mailparse \
--enable-calender \
--enable-sysvsem=yes \
--enable-sysvshm=yes \
--enable-ftp \
--enable-magic-quotes \
--enable-gd-native-ttf \
--enable-versioning \
--enable-url-includes \
--enable-trans-id \
--enable-inline-optimization \
--enable-bcmath \
--with-pspell \
--with-jpeg \
--with-png \
--with-zlib \
--with-jpeg-dir=/usr/src \
--with-gd \
--with-ttf \
--with-gettext \
--enable-sigchild \
--with-imap=/usr/local/imap-2001a \
--enable-module=so \
$chmod 755 php_install
$./php_install
$make
$make install
$cp /usr/local/src/php-4.3.2/php.ini-dist /etc/php.ini
$vi /etc/php.ini
Âü°í :
º¯°æÀü : register_globals = OFF
º¯°æÈÄ : register_globals = ON
È®ÀÎ »çÇ×
default_mimetype = "text/html"
default_charset = "euc_kr"
À§¿Í °°ÀÌ µÇ¾î ÀÖÁö ¾ÊÀ¸¸é ÇѱÛÀÌ ±ú¾î Á®¼ ³ª¿Â´Ù
¾ÆÆÄÄ¡ ¸ðµâ ÀÎ½Ä È®ÀÎ
$vi /usr/local/apache/conf/httpd.conf
¾Æ·¡¿Í °°ÀÌ ÀÖÀ¸¸é php ÀνÄ
LoadModule php4_module modules/libphp4.so
6) Zend Optimizer ¼³Ä¡
¾ÐÃà Ç®°í....
$cd ../ZendOptimizer-1.3.2-Linux_glibc21-i386
$ ./Install.sh
°£´ÜÇÑ ³»¿ëÀÇ Áú¹®À» Àаí ȯ°æ¿¡ ¸Â°Ô ÀÔ·ÂÇØÁÝ´Ï´Ù.
Welcome to the Zend Optimizer 2 Installation Script!
For more information on this script, see the Installation
section in the Zend Optimizer User Guide.
Specify the location where to install Zend Optimizer
/usr/local/Zend
Confirm the location of your php.ini file
/etc
Are you using the Apache web server?
Yes
Specify the location of your Apache root directory
/usr/local/apache
Install has detected PHP version 4.X.X
Does this look correct?
Yes
Your php.ini is relocated to the /usr/local/Zend/etc directory
and symbolic link from the former place /etc/httpd/php.ini is created.
The installation completed successfully and your Zend Optimizer
is setup for use.
You must RESTART your Apache web server for the modifications to take effect
¼³Ä¡ ¿Ï·á ¸Þ½ÃÁö Áö½Ã´ë·Î ¾ÆÆÄÄ¡¸¦ Àç½ÃÀÛ ÇØÁÝ´Ï´Ù.
$ /usr/local/apache/bin/apachectl restart
7)j2sdk-1_3_1_10 ¼³Ä¡
$chmod 755 j2sdk-1_3_1_10-linux-i586.bin
$./j2sdk-1_3_1_10-linux-i586.bin
$mv j2sdk-1_3_1_10 /usr/local/j2sdk-1_3_1_10
$cd /usr/local/
$ln -s j2sdk-1_3_1_10 /usr/local/java
$vi /etc/profile
#j2sdk config
PATH="$PATH:/usr/local/java/bin"
export JAVA_HOME="/usr/local/java"
$source /etc/profile
$java -version ÀÚ¹Ù ¼³Ä¡ È®ÀÎ
8) Tomcat ¼³Ä¡
$tar xvfz tomcat-4.1.18.tar.gz -C /usr/local/tomcat
$vi /etc/profile
CATALINA_HOME=/usr/local/tomcat
PATH=$PATH:$JAVA_HOME/bin:$CATALINA_HOME/bin
export CATALINA_HOME
$source /etc/profile
$cd /usr/local/tomcat/conf
$vi server.xml
´ÙÀ½À» ã¾Æ¼ ¹Ù·Î ¹Ø¿¡ ´ÙÀ½À» ÀÔ·ÂÇÑ´Ù.
<Server port="8005" shutdown="SHUTDOWN" debug="0">
ÀÔ·Â »çÇ× ==>
# <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" />
³»¿ëÁß ´ÙÀ½À» ã¾Æ¼ ¹Ù·Î ¹Ø¿¡ ´ÙÀ½À» ÀÔ·ÂÇÑ´Ù.
<Host name="localhost" debug="0" appbase="webapps">
ÀÔ·Â »çÇ× =>
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true" />
$../bin/catalina.sh start
¼öÁ¤ :
# Tomcat À» Àç½ÃÀÛÇϸé,
# /usr/local/tomcat/conf µð·ºÅ丮 ¾Æ·¡¿¡
# auto µð·ºÅ丮¿Í jk µð·ºÅ丮°¡ »ý°åÀ» °ÍÀÌ°í, auto ¾Æ·¡¿¡ mod_jk.conf°¡ »ý°åÀ»°ÍÀÌ´Ù.
$cd /usr/local/tomcat/conf/jk
$vi workers.properties
# ¾Æ·¡ ³»¿ëÀº ¾ø´Â °ÍÀÌ´Ï ¾Æ·¡³»¿ëÀ» º¹»çÇؼ »ý¼ºÀ» ÇÏ¸é µÈ´Ù.
workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/local/java
ps=/
worker.list=ajp12, ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
$/usr/local/tomcat/bin/catalina.sh stop
$/usr/local/tomcat/bin/catalina.sh start
$nmap localhost <== ¼ºñ½º Æ÷Æ® È®ÀÎ
* /usr/local/tomcat/conf/auto/mod_jk.conf ¼öÁ¤À» ´ÙÀ½°ú °°ÀÌ ¼öÁ¤
$vi /usr/local/tomcat/conf/auto/mod_jk.conf
<IfModule !mod_jk.c>
LoadModule jk_module modules/mod_jk.so
</IfModule>
<VirtualHost localhost>
ServerName localhost
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /admin ajp13
JkMount /admin/* ajp13
JkMount /webdav ajp13
JkMount /webdav/* ajp13
JkMount /examples ajp13
JkMount /examples/* ajp13
JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13
JkMount /manager ajp13
JkMount /manager/* ajp13
</VirtualHost>
9)Tomcat-connectors(4.1.18-src)
* tomcat °ú ¾ÆÆÄÄ¡¸¦ ¿¬µ¿ Çϱâ À§Çؼ´Â mod_jk ¸¦ ¼³Ä¡ ÇØ¾ß ÇÑ´Ù.
$tar xvfz tomcat-connectors-4.1.18-src.tar.gz
$cd jakarta-tomcat-connectors-4.1.18-src/
$cd jk/native
$./buildconf.sh
$./configure --with-apxs=/usr/local/apache/bin/apxs
$make; make install
$ls -al /usr/local/apache/modules
ÇÏ°í ÆÄÀÏÁß¿¡¼ mod_jk.so
ÆÄÀÏÀÌ ÀÖ´ÂÁö È®ÀÎ ÇÑ´Ù.
¼öÁ¤ : ¾ÆÆÄÄ¡¿Í ¿¬µ¿À» À§ÇØ ¼öÁ¤
$vi /usr/local/apache/conf/httpd.conf
#Load mod_jk
#
LoadModule jk_module modules/mod_jk.so
#
#Configure mod_jk
#
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel info
Include /usr/local/tomcat/conf/auto/mod_jk.conf
### Section 3: Virtual Hosts ¹Ù·Î À§¿¡ ³Ö¾îÁÖ¸é µÈ´Ù...
* ¾ÆÆÄÄ¡¿Í tomcat À» restart ÈÄ È®ÀÎ
target=_blank>http://localhost
target=_blank>http://localhost:8080
* apache¿Í tomcat¿¡¼ÀÇ °¡»óÈ£½ºÆ®¼³Á¤
$vi /usr/local/apache/conf/httpd.conf
±âÁ¸ÀÇ apache °¡»ó È£½ºÆ® ¼³Á¤ ³»¿ë...
<VirtualHost ÀÚ½ÅÀÇ ¾ÆÀÌÇÇ:80>
ServerAdmin webmaster@abc.co.kr
DocumentRoot /www/web/abc
ServerName www.abc.co.kr
ErrorLog /var/logs/error_log/www.abc.co.kr
CustomLog /var/logs/www.abc.co.kr combined
</VirtualHost>
* ¼öÁ¤
<VirtualHost ÀÚ½ÅÀǾÆÀÌÇÇ:80>
ServerAdmin webmaster@abc.co.kr
DocumentRoot /www/web/abc
ServerName www.abc.co.kr
ErrorLog /var/logs/error_log/www.abc.co.kr
CustomLog /var/logs/www.abc.co.kr combined
JkMount /*.jsp ajp13
JkMount /webapps/* ajp13
JkMount /ROOT/* ajp13
</VirtualHost>
tomcat ºÎºÐ Ãß°¡
$vi /usr/local/tomcat/conf/server.xml
<Host name="abc.co.kr" >
<Context path="" docBase="/www/web/abc" reloadable="true"/>
<Alias>www.abc.co.kr</Alias>
</Host>
* ±¸¹®ÀÇ Á¾¼Ó°ü°è¿¡ ÁÖÀÇÇؼ À§ÀÇ ¼³Á¤À» ³Ö¾îÁØ´Ù. </host>·Î ³¡³ª´Â ºÎºÐ ¾Æ·¡ ÂÊ¿¡ ³Ö¾îÁÖ¸é µÈ´Ù.
apache¿Í tomcat¸¦ Àç½ÃÀÛ ÇÏ°í JSP°¡ 80Æ÷Æ®·Î Á¦´ë·Î ¿¬µ¿ÀÌ µÇ´ÂÁö Å×½ºÆ®...
ÀÌ»óÀ¸·Î ¸ðµç ÀÛ¾÷Àº ³¡³µ´Ù.
ÀÚ¼¼ÇÑ ¼³Á¤ »çÇ×µéÀº »ç¿ëÀÚÀÇ È¯°æ¿¡ ¸Â°Ô ¼³Ä¡¸¦ ÇÏ¸é µË´Ï´Ù..
ÀÌ ÀÛ¾÷ Çϴµ¥ ¹«·Á4ÀÏ À̳ª °É·È½À´Ï´Ù.
error 1) kde ¼³Á¤ÀÌ Àß ¸ø µÇ¾î ¶ßÁú ¾Ê´Â °æ¿ì.
ÇØ°á : ¸®´ª½º ¼³Ä¡ Áß ÆÐÅ°Áö ¼³Ä¡¿¡¼ ¸ðµÎ ¼³Ä¡¸¦ ÇϵçÁö,
kde + XFree86 À» ¸ðµÎ ¾÷µ¥ÀÌÆ® ÇϵçÁö Çؼ ÇØ°á
error 2) ¿À¶óŬ db »ý¼º½Ã ¿¡·¯
À§ÀÇ ¿À¶óŬ ¼³Ä¡ ÆÄÀÏÀ» ¸ðµÎ Áö¿ì°í ´Ù½Ã ¼³Ä¡ (3¹ø ¸¸¿¡ ¼º°ø)
±âŸ ÀÚÀßÇÑ ¿¡·¯´Â ¿¡·¯ ³»¿ëÀ» ÀÚ¼¼È÷ º¸½Ã¸é ÇØ°á ¹æ¹ýÀÌ ÀÖ½À´Ï´Ù.
±×·³ ¼º°ø ÇϽñæ.....
|