|
|
|
¸®´ª½ºÆÁ Go Unix Power Tools Online Book
Go Bash Guide
|
|
Read No. 169 article |
2002-07-07 14:43:50 |
|
|
|
|
NickName |
Ç®ºñ´© |
Subject |
¼¹ö ¼³Ä¡ ¹× ¼³Á¤(redhat 7.2) |
|
|
http://www.phpschool.com/bbs2/inc_view.html?
id=6970&code=tnt2&start=60&mode=&s_que=&field=&operator=&period=&category_id=
### ÆÄƼ¼ÇÀ» ³ª´ ¶§´Â usrÀ» °í·ÁÇÑ´Ù.
--->¸¸¾à mysql ÀÇ µ¥ÀÌÅ͸¦ usr¿¡ µÎ·Á¸é ±×¸¸Å ³Ë³ËÇÏ°Ô Àâ´Â´Ù.
usr¿¡ µÎÁö ¾Ê°í ´Ù¸¥ °÷¿¡ µÑ°æ¿ì¿¡´Â ±×°÷ÀÇ ÆÄƼ¼ÇÀ» ³Ë³ËÈ÷ ÁØ´Ù.
### ¼¹ö ¼³Ä¡½Ã ¼Ò½º·Î ÄÄÆÄÀÏ ÇÒ°ÍÀ̳ª ÇÊ¿ä¾ø´Â ¼ºñ½º´Â ¼³Ä¡ÇÏÁö ¾Ê´Â´Ù.
### ¸®´ª½º ¼³Ä¡ÈÄ È®ÀÎ ¹× ¼³Á¤
1. ¼¹öÀÇ È£½ºÆ® ³×ÀÓ°ú ±×¹ÛÀÇ ¸î°¡Áö¸¦ È®ÀÎÇÑ´Ù.
vi /etc/sysconfig/network
(hostname°ú gateway, networkingÀ» Á¦¿ÜÇÑ ³ª¸ÓÁö´Â ¾ø¾îµµ µÊ)
--------------------------------------------------------------------
NETWORKING=yes
FORWARD_IPV4=false
HOSTNAME=ns2.abc.net
DOMAINNAME=abc.net
GATEWAY=218.xxx.xxx.65
GATEWAYDEV=eth0
--------------------------------------------------------------------
vi /etc/sysconfig/network-scripts/ifcfg-eth0
--------------------------------------------------------------------
DEVICE=eth0
BOOTPROTO=static
BROADCAST=218.xxx.xxx.127
IPADDR=218.xxx.xxx.99
NETMASK=255.255.255.192
NETWORK=218.xxx.xxx.64
ONBOOT=yes
--------------------------------------------------------------------
vi /etc/hosts
--------------------------------------------------------------------
127.0.0.1 localhost localhost.localdomain
218.xxx.xxx.99 ns2.abc.net ns2
--------------------------------------------------------------------
½Ã½ºÅÛÀ» ÀçºÎÆÃÈÄ hostname¸¦ Ãĺ»´Ù.
-->ifconfig, netstat, route µîÀÇ ¸í·É¾î·Î ³×Æ®¿öÅ© ¼³Á¤µÈ »çÇ×µéÀ» È®ÀÎÇÑ´Ù
-->¸¸¾à ¸ÂÁö ¾Ê°Å³ª À߸ø ¼³Á¤µÇ¾î ÀÖ´Ù¸é setupÀ¸·Î ´Ù½Ã ¼³Á¤ÇÏ°í È®ÀÎÇÑ´Ù.
2. ¼¹öÀÇ ³×Æ®¿÷ ¼³Á¤À» È®ÀÎÇÑ´Ù.
route ¶Ç´Â ifconfigµîÀ¸·Î ¹Ù¸£°Ô ¼³Á¤µÇ¾ú´ÂÁö È®ÀÎÇÑ´Ù.
-->¸ÂÁö ¾ÊÀ»°æ¿ì vi /etc/resolv.conf
--------------------------------------------------------------------
domain abc.net
search abc.net
nameserver 218.xxx.xxx.99
--------------------------------------------------------------------
-->netconfig·Î ¼³Á¤ÇÑ´Ù.
3. apm, gd, zend ¼³Ä¡(ÆÄÀÏ ¸µÅ© http://apmusers.com/file.rar)
adduser hosting(ÀÓÀÇÀÇ °èÁ¤À» Çϳª ¸¸µç´Ù.)
passwd hosting(Æнº¿öµå¸¦ Á¤ÇÑ´Ù.)
#mysql ¼³Ä¡
cd /home/hosting
tar -zxvf mysql-3.23.49.tar.gz
cd mysql-3.23.49
./configure --prefix=/usr/local/mysql --localstatedir=/home/data --with-charset=euc_kr
<--data µð·ºÅ丮¸¦ µ¥ÀÌÅÍ ÀúÀå¼Ò·Î ÁöÁ¤
make
make install
-->useradd mysql -M -s /bin/false <--°èÁ¤¸¸ ÀÖ°í µð·ºÅ丮´Â »ý±âÁö ¾ÊÀ½
cd /usr/local/mysql
./bin/mysql_install_db
chown -R mysql.mysql /home/data <-- »õ·Î »ý¼ºµÈ data µð·ºÅ丮¸¦ ¼ÒÀ¯ÀÚ¿Í ±×·ìÀ» mysql·Î
º¯°æ
./bin/safe_mysqld --language=korean &
-->Á¾·á½Ã ./bin/mysqladmin shutdown
-->·çÆ® Æнº¿öµå Àû¿ë./bin/mysqladmin -u root password 'Æнº¿öµå'
-->./bin/mysql -u root -p mysql Á¢¼ÓÇÑ´Ù.
-->°èÁ¤ Ãß°¡ Å×½ºÆ® INSERT INTO user VALUES ('localhost','program',password('Æнº¿ö
µå'),'N','N','N','N','N','N','N','N','N','N','N','N','N','N');
-->create database program;
-->INSERT INTO db VALUES
('localhost','program','program','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
-->flush privileges;
#gd
cd /home/hosting
tar xvfz gd-1.8.4.tar.gz
cd gd-1.8.4/
make
cd ..
mv /home/hosting/gd-1.8.4 /usr/local/gd
#apache 1
cd /home/hosting
tar xvfz apache_1.3.23.tar.gz
cd /home/hosting/apache_1.3.23
./configure --prefix=/home/httpd/
#zend
cd /home/hosting
tar xvfz ZendOptimizer-1\[1\].2.0-PHP_4.1.0-Linux_glibc21-i386.tar.gz
mkdir /usr/local/Zend
mv ZendOptimizer-1.2.0-PHP_4.1.0-Linux_glibc21-i386 /usr/local/Zend/lib
#php
cd /home/hosting
tar xvfz php-4.1.2.tar.gz
mv /home/hosting/php-4.1.2 /usr/local/php
cd /usr/local/php
./configure --prefix=/usr/local/php/ --with-config-file-path=/usr/local/lib --exec-
prefix=/usr/local/php --with-apache=/home/hosting/apache_1.3.23 --with-
mysql=/usr/local/mysql --with-gd=/usr/local/gd --enable-ftp --enable-socket --enable-
track-vars --disable-debug
make
make install
#apache 2
cd /home/hosting/apache_1.3.23
./configure --prefix=/home/httpd --activate-module=src/modules/php4/libphp4.a --enable-
rule=SHARED_CORE --enable-module=so --enable-shared=max
make
make install
cp /usr/local/php/php.ini-dist /usr/local/lib/php.ini
cd /usr/local/Zend/lib
./install.sh
vi /etc/rc.d/rc.local
-->/home/httpd/bin/apachectl start »ðÀÔ
-->/usr/local/mysql/bin/safe_mysqld --language=korean & »ðÀÔ
vi /etc/profile
--> PATH="$PATH:/usr/X11R6/bin" ¸¦ PATH="$PATH:/usr/X11R6/bin:/usr/local/mysql/bin" ·Î
¹Ù²Þ
vi /home/httpd/conf/httpd.conf
-->318¶óÀÎ #ServerName apmusers.com ¿¡¼ ÁÖ¼®À» Á¦°ÅÇÑ´Ù.
-->404 ¶óÀÎ
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.php <-- À妽º·Î ÀÎ½ÄµÉ ÆÄÀÏ À̸§À» Àû´Â
´Ù.
</IfModule>
-->814 ¶óÀο¡ ´ÙÀ½À» Ãß°¡ÇÑ´Ù.
AddType application/x-httpd-php .php .ph .inc .php3 .html .htm
AddType application/x-httpd-php-source .phps
vi /home/httpd/htdocs/info.php(»õÆÄÀÏÀ» ¸¸µç´Ù)
--------------------------------------------------------------------
<?
phpinfo();
?>
--------------------------------------------------------------------
cd /etc/skel/(°èÁ¤ Ãß°¡½Ã ¸¶´Ù public_htmlÀÌ ÀÚµ¿À¸·Î »ý¼ºµÈ´Ù)
mkdir public_html
chmod 701 public_html/
# qpopper ¼³Ä¡(pop3¸¦ »ç¿ëÇÒ °æ¿ì ¼³Ä¡ÇÑ´Ù.
-->¸ÞÀÏÀ» »ç¿ëÇÏÁö ¾ÊÀ» °æ¿ì ¼³Ä¡ ¾ÈÇصµ µÊ)
cd /home/hosting
tar xvzf qpopper4.0.3.tar.gz
cd /home/hosting/qpopper4.0.3
./configure
make
make install
cd /home/hosting/qpopper4.0.3/popper
cp popper /usr/local/bin
cp popauth.c /usr/local/bin
vi /etc/xinetd.d/pop3
--------------------------------------------------------------------
service pop3
{
disable = no
flags = REUSE
socket_type = stream
wait = no
protocol = tcp
user = root
server = /usr/local/bin/popper
server_args = qpopper -s
port = 110
}
--------------------------------------------------------------------
À§¿Í °°ÀÌ ¼³Á¤ ÇÑÈÄ
/etc/rc.d/init.d/xinetd restart
telnet localhost 110(Å×½ºÆ®)
vi /etc/sendmail.cf
-->
# SMTP daemon options
O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
ºÎºÐ¿¡¼ Addr=127.0.0.1, ºÎºÐÀ» Áö¿î´Ù.
¸¸¾à root·Î º¸³»Áö´Â ¸ÞÀÏÀ» ¹Þ¾Æº¸°í ½Í´Ù¸é ´ÙÀ½°ú °°ÀÌÇÏ¸é µË´Ï´Ù.
#vi /etc/aliases
-->Á¦ÀÏ ÇÏ´Ü¿¡ º¸¸é ´ÙÀ½°ú °°Àº ³»¿ëÀÌ ÀÖ½À´Ï´Ù.
# Person who should get root's mail
root: webmaster at irehnet.net//ÀڱⰡ ¹ÞÀ» ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·Â, ¿ø·¡´Â ÁÖ¼®ÀÌ ´Þ·Á
ÀÖÀ¸´Ï ÁÖ¼®À» Á¦°ÅÇؾßÇÕ´Ï´Ù.
ÀúÀåÇÑ ÈÄ¿¡
newaliases
¶ó°í ÃÄ ÁÖ¸é ·çÆ®·Î ¿À´Â ¸ÞÀÏÀº ¸ðµÎ À§¿¡¼ ÁöÁ¤ÇÑ °÷À¸·Î µé¾î¿É´Ï´Ù.
### ½Ã½ºÅÛ¿¡¼ ¼¶³×ÀÏ ¸¸µå´Â °ÍÀÌ °¡´ÉÇÏ°Ô ÇÒ·Á¸é ´ÙÀ½°ú °°Àº 6°³ÀÇ ¶óÀ̺귯¸® rpmÀ» ¼³
Ä¡ÇÑ´Ù.
-->¸ÕÀú ´ÙÀ½ÀÇ ¸í·ÉÀ¸·Î ¼³Ä¡µÇ¾ù´ÀÁö È®ÀÎÇÑ´Ù.
rpm -qa | grep libgr
rpm -qa | grep libjpeg
-->¼³Ä¡µÇ¾î ÀÖÁö ¾Ê´Ù¸é ´ÙÀ½ÀÇ rpmÀ» ¼³Ä¡ÇÑ´Ù.
rpm -ivh libgr-2.0.13-23.i386.rpm
rpm -ivh libgr-devel-2.0.13-23.i386.rpm
rpm -ivh libgr-progs-2.0.13-23.i386.rpm
rpm -ivh libjpeg6a-6a-5.i386.rpm
rpm -ivh libjpeg-6b-10.i386.rpm
rpm -ivh libjpeg-devel-6b-10.i386.rpm
¸®ºÎÆà Çѹø ÇØÁØ´Ù.
### Áß¿äÈÀÏ ÆÛ¹Ì¼Ç º¯°æ¹× ºÒÇÊ¿äÇÑ ¼ºñ½º¸¦ ³»¸°´Ù.
-->¸ÕÀú ps -aux µ¥¸óµéÀ» È®ÀÎÇÏ°í »èÁ¦ ÇÒ µ¥¸óµéÀ» Á×ÀδÙ.(kill -9 )
rpm -e --nodeps portmap-4.0-38(rpmÀº ÀÚ½ÅÀÇ È¯°æ¿¡ ¸Â°Ô Á¦°ÅÇÑ´Ù)
rpm -e --nodeps pidentd-3.0.14-1
rpm -e --nodeps gpm-1.19.3-20
rpm -e --nodeps gpm-devel-1.19.3-20
rpm -e --nodeps nfs-utils-0.3.1-13
rpm -e apmd-3.0final-34
-->setup, ½Ã½ºÅÛ ¼ºñ½º¿¡¼ atd, netfs³»·ÁÁÜ
-->/etc/passwd ¿Í /etc/group
ftp,xfs,adm,lp,news,gopher,sync,uucp,operator,games,dip(µî ÇÊ¿ä¾ø´Â °èÁ¤Àº ÁÖ¼®À» ´Þ°Å
³ª »èÁ¦ÇÑ´Ù)
-->ÆÛ¹Ì¼Ç º¯°æ
chmod 700 /etc/exports
chmod 700 /etc/fstab
chmod 700 /usr/bin/chage
chmod 700 /usr/bin/wall
chmod 755 /usr/bin/man
chmod 700 /usr/bin/chfn
chmod 700 /usr/bin/write
chmod 700 /usr/sbin/usernetctl
chmod 700 /bin/mount
chmod 700 /bin/umount
chmod 700 /sbin/netreport
chmod 750 /bin/ps
chmod 750 /bin/netstat
chmod 750 /bin/dmesg
chmod 750 /bin/df
chmod 750 /usr/bin/who
chmod 750 /usr/bin/finger
chmod 750 /usr/bin/last
chmod 750 /usr/bin/top
chmod 750 /usr/bin/w
chgrp wheel /bin/ps
chgrp wheel /bin/netstat
chgrp wheel /bin/dmesg
chgrp wheel /bin/df
chgrp wheel /usr/bin/w
chgrp wheel /usr/bin/who
chgrp wheel /usr/bin/finger
chgrp wheel /usr/bin/last
chgrp wheel /usr/bin/top
chmod 751 /home
chmod 751 /var/named
chmod 600 /home/httpd/conf/httpd.conf
chmod 110 /usr/bin/top
chmod 550 /bin/ps
chmod 110 /usr/bin/uptime
chmod 110 /usr/sbin/useradd
chmod 110 /usr/sbin/userdel
chmod 110 /usr/bin/last
chmod 110 /usr/bin/find
º¯°æÇؼ´Â ¾ÈµÇ´Â Áß¿äÇÑ ÆÄÀÏ¿¡´Â chattrÀ» »ç¿ëÇÏ¿© ¶ôÀ» °É¾îÁØ´Ù.
chattr +i ÆÄÀϸí --> ·çÆ®µµ Áö¿ì°Å³ª ¼öÁ¤ ÇÒ¼ö ¾ø´Ù.
Ç®¾îÁÙ¶§´Â ¹Ý´ë·Î
chattr -i ÆÄÀϸí ÇϸéµÈ´Ù.
-->ÃÖ»óÀ§ ·çÆ® ÇÏÀÇ µð·ºÅ丮ÀÇ Æ۹̼ǵéÀº ´ÙÀ½°ú °°ÀÌ ÇÑ´Ù.
drwxr-x--x 2 root root 2048 Jun 8 14:52 bin
drwxr-x--x 4 root root 1024 Mar 27 04:23 boot
drwxr-x--x 17 root root 77824 Jun 10 09:10 dev
drwxr-x--x 35 root root 3072 Jun 10 10:16 etc
drwxr-x--x 18 root root 4096 Jun 7 16:29 home
drwxr-x--x 2 root root 1024 Jun 22 2001 initrd
drwxr-x--x 7 root root 3072 Mar 27 04:25 lib
drwxr-x--x 2 root root 12288 Mar 27 04:19 lost+found
drwxr-x--x 2 root root 1024 Aug 30 2001 misc
drwxr-x--x 4 root root 1024 Mar 26 19:28 mnt
drwxr-x--x 2 root root 1024 Aug 24 1999 opt
dr-xr-xr-x 54 root root 0 Jun 10 2002 proc
drwxr-x--- 3 root root 1024 Jun 7 18:08 root
drwxr-x--x 2 root root 4096 Jun 7 16:00 sbin
drwxrwxrwx 2 root root 1024 Jun 10 09:10 tmp
drwxr-x--x 18 root root 4096 Mar 27 20:12 usr
drwxr-x--x 17 root root 4096 Mar 27 04:23 var
-->°èÁ¤ µð·ºÅ丮ÀÇ Æ۹̼ÇÀº 701·Î ÁØ´Ù.(chmod 701 °èÁ¤¸í)
### ÀüÀÚ¿ìÆí¸¸ »ç¿ëÇÒ¼ö ÀÖ´Â °èÁ¤Ãß°¡Çϱâ
(-d À§Ä¡ ÁöÁ¤, -s ½©ÁöÁ¤, ftpµµ »ç¿ëÇÒ¼ö ¾ø´Ù)
useradd °èÁ¤¸í -d /home/mailbox/dbckdghk -s /bin/false
passwd °èÁ¤¸í
### FTP°èÁ¤¸¸ ÁÖ°í Shell°èÁ¤Àº ÁÖÁö ¾Ê±â
/etc/passwdÀ» ¿¬´Ù.
test:x:500:500::/home/test:/bin/bash <-- /bin/bash ºÎºÐÀÔ´Ï´Ù.
cat /etc/shells (½©ÀÌ µî·ÏµÈ °ÍÀÌ º¸ÀÓ)
/bin/bash2
/bin/bash
/bin/sh
/bin/ash
/bin/bsh
/bin/tcsh
/bin/csh
ÀÌ°÷¿¡ ÀÓÀÇ·Î Çϳª¸¦ µî·Ï ÇÕ´Ï´Ù.
¿¹¸¦ µé¾î /bin/nosh À̶ó°í ¾Æ·¡ºÎºÐ¿¡ Ãß°¡ÇÑÈÄ
cd /bin
touch nosh
±×¸®°í /etc/passwd ÂÊ¿¡¼ ½©ºÎºÐÀÇ ¼¼Æø¸ ¹Ù²ã ÁÖ¸é µË´Ï´Ù.
test:x:500:500::/home/test:/bin/nosh <-- ¿ä±é´Ï´Ù.
### ftp ¸í·É¾î ¸ðÀ½
ascii : Àü¼Û¸ðµå¸¦ ASCII¸ðµå·Î ¼³Á¤ÇÑ´Ù.(ascii¶Ç´Â as)
binary : Àü¼Û¸ðµå¸¦ BINARY¸ðµå·Î ¼³Á¤ÇÑ´Ù.( binary¶Ç´Â bi)
bell : ¸í·É¾î ¿Ï·á½Ã¿¡ º§¼Ò¸®¸¦ ³ª°ÔÇÑ´Ù.(bell)
bye : ftpÁ¢¼ÓÀ» Á¾·áÇÏ°í ºüÁ®³ª°£´Ù.(bye)
cd : remote½Ã½ºÅÛÀÇ µð·ºÅ丮¸¦ º¯°æÇÑ´Ù.(cd µð·ºÅ丮¸í)
cdup : remote½Ã½ºÅÛ¿¡¼ ÇÑ´Ü°è »óÀ§µð·ºÅ丮·Î À̵¿ÇÑ´Ù.(cdup)
chmod : remote½Ã½ºÅÛÀÇ ÆÄÀÏÆ۹̼ÇÀ» º¯°æÇÑ´Ù.(chmod 755 index.html)
close : ftpÁ¢¼ÓÀ» Á¾·áÇÑ´Ù. (close)
delete : remote½Ã½ºÅÛÀÇ ÆÄÀÏÀ» »èÁ¦ÇÑ´Ù.(delete index.old)
dir : remote½Ã½ºÅÛÀÇ µð·ºÅ丮 ³»¿ëÀ» µð½ºÇ÷¹ÀÌÇÑ´Ù.(dir)
disconnect : ftpÁ¢¼ÓÀ» Á¾·áÇÑ´Ù.(disconnect)
exit : ftpÁ¢¼ÓÀ» Á¾·áÇÏ°í ºüÁ®³ª°£´Ù.(exit)
get : ÁöÁ¤µÈ ÆÄÀÏÇϳª¸¦ °¡Á®¿Â´Ù.(get index.html)
hash : ÆÄÀÏÀü¼Û µµÁß¿¡ "#"Ç¥½Ã¸¦ ÇÏ¿© Àü¼ÛÁßÀÓÀ» ³ªÅ¸³½´Ù.(hash)
help : ftp¸í·É¾î µµ¿ò¸»À» º¼ ¼ö ÀÖ´Ù.(help¶Ç´Â help ¸í·É¾î)
lcd : local½Ã½ºÅÛÀÇ µð·ºÅ丮¸¦ º¯°æÇÑ´Ù.(lcd µð·ºÅ丮¸í)
ls : remote½Ã½ºÅÛÀÇ µð·ºÅ丮 ³»¿ëÀ» µð½ºÇ÷¹ÀÌÇÑ´Ù. (ls ¶Ç´Â ls -l)
mdelete : ¿©·¯°³ÀÇ ÆÄÀÏÀ» ÇѲ¨¹ø¿¡ Áö¿ï ¶§ »ç¿ëÇÑ´Ù.( mdelete *.old)
mget : ¿©·¯°³ÀÇ ÆÄÀÏÀ» ÇѲ¨¹ø¿¡ °¡Á®¿À·ÁÇÒ ¶§ »ç¿ëÇÑ´Ù. ( mget *.gz)
mput : ÇѲ¨¹ø¿¡ ¿©·¯°³ÀÇ ÆÄÀÏÀ» remote½Ã½ºÅÛ¿¡ ¿Ã¸°´Ù.(mput *.html)
open : ftpÁ¢¼ÓÀ» ½ÃµµÇÑ´Ù.(open 168.126.72.51¶Ç´Â open ftp.kornet.net)
prompt : ÆÄÀÏÀü¼Û½Ã¿¡ È®ÀΰúÁ¤À» °ÅÄ£´Ù. on/off Åä±Û (prompt)
put : ÇϳªÀÇ ÆÄÀÏÀ» remote½Ã½ºÅÛ¿¡ ¿Ã¸°´Ù.(put index.html)
pwd : remote½Ã½ºÅÛÀÇ ÇöÀç ÀÛ¾÷µð·ºÅ丮¸¦ Ç¥½ÃÇÑ´Ù.(pwd)
quit : ftpÁ¢¼ÓÀ» Á¾·áÇÏ°í ºüÁ®³ª°£´Ù.(quit)
rstatus : remote½Ã½ºÅÛÀÇ »óȲ(version, ¾îµð¼, Á¢¼ÓIDµî)À» Ç¥½ÃÇÑ´Ù.(rstatus)
rename : remote½Ã½ºÅÛÀÇ ÆÄÀϸíÀ» ¹Ù²Û´Ù.(remote ÇöÀçÆÄÀÏ¸í ¹Ù²ÜÆÄÀϸí)
rmdir : remote½Ã½ºÅÛÀÇ µð·ºÅ丮À» »èÁ¦ÇÑ´Ù.(rmdir µð·ºÅ丮¸í)
size :remote½Ã½ºÅÛ¿¡ ÀÖ´Â ÆÄÀÏÀÇ Å©±â¸¦ byte´ÜÀ§·Î Ç¥½ÃÇÑ´Ù.(size index.html)
status : ÇöÀç ¿¬°áµÈ ftp¼¼¼Ç¸ðµå¿¡ ´ëÇÑ ¼³Á¤À» º¸¿©ÁØ´Ù.(status)
type : Àü¼Û¸ðµå¸¦ ¼³Á¤ÇÑ´Ù.(type ¶Ç´Â type ascii ¶Ç´Â type binary)
### ¸ÞÀÏ ¹öÃò¾ó È£½ºÆÃ
vi /etc/mail/local-host-names
ÀÏ´Ü ¿¾î¼ µî·ÏÇÏ°íÀÚ ÇÏ´Â µµ¸ÞÀθíÀÌ ¾øÀ¸¸é Ãß°¡ÇÑ´Ù.
vi /etc/mail/virtusertable
hosting at 1004web.co.kr dbckdghk(°èÁ¤¸í) ¿Í °°Àº ÇüÅ·ΠÃß°¡, ÀúÀåÇÑ´Ù.
makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
./etc/rc.d/init.d/sendmail restart
¸ÞÀÏ µ¥¸óÀ» Àç½ÃÀÛÇÑ´Ù.
### ¸ÞÀÏ Æ÷¿öµù
ÀÚ±â°èÁ¤¿¡´Ù vi .forwardÇÏ°í¼´Â ¹Þ°íÀÚ ÇÏ´Â °÷ÀÇ ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀûÀ¸¸é µË´Ï´Ù.
|
|
Page Loading [ 0.05 Sec ]
SQL Time [ 0 Sec ]
|
|
|