꽃

Fedora Core 6(x86_32) + DNS + sendmail + dovecot + APM(RPM) + APM(SOURCE COMPILE)

· 2008-03-25 (화) 11:14:55 · 5311
 (2006-11-12 03:33:04, Hit : 743, Vote : 141) 
 
 
 
  http://www.rootda.org
 
 
  FC6.txt (6.4 KB), Download : 10
 
 
  Fedora Core 6
 

이전 버전들에 비해서 많이 깔끔해보인다.....

Fedora Core 6(x86_32) + DNS + sendmail + dovecot + APM(RPM) + APM(SOURCE COMPILE)

OS 최소 설치가 종료되면 시스템 업데이트
yum -y update
yum install vim-enhanced

터미널 한글입출력 지정
cat /etc/sysconfig/i18n
LANG="ko_KR.eucKR"
SUPPORTED="ko_KR.eucKR:ko_KR:ko"
SYSFONT="latarcyrheb-sun16"

네임서버 설정
yum -y install bind
yum -y install bind-chroot

cat /var/named/chroot/etc/named.conf
options {
        version "RHCE.PE.KR";
        directory "/var/named";
        allow-transfer {
                127.0.0.1;
        };

        allow-query { any; };

        notify no;
};

logging {
        //category queries { query-log; };
        category lame-servers { null; };
        category unmatched { null; };
        category network { null; };
        category notify { null; };
        category update { null; };
};

/* a caching only nameserver config */

zone "." IN {
        type hint;
        file "named.ca";
};

/* local network configuration */

zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "named.local";
        allow-update { none; };
};

/* user level configuration */

zone "rhce.pe.kr" IN  {
        type master;
        file "rhce.pe.kr.zone";
        allow-update { none; };
};

zone "196.115.211.in-addr.arpa" IN {
        type master;
        file "rhce.pe.kr.rev";
        allow-update { none; };
};

ln -s /var/named/chroot/etc/named.conf /etc/named.conf
chown root.named /var/named/chroot/etc/named.conf

cat /var/named/chroot/var/named/rhce.pe.kr.zone
$TTL    120
@       IN      SOA     ns.rhce.pe.kr. admin.rhce.pe.kr.  (
                                      2006110723 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      120 )    ; Minimum
        IN      NS      ns.rhce.pe.kr.
        IN      NS      ns2.rhce.pe.kr.
        IN      MX 10   mail.rhce.pe.kr.
        IN      TXT     "v=spf1 mx ip4:211.115.196.37 -all"
        IN      A       211.115.196.37
@       IN      A       211.115.196.37
ns      IN      A       211.115.196.37
ns2     IN      A       211.115.196.37
mail    IN      A       211.115.196.37
www     IN      A       211.115.196.37
*       IN      A       211.115.196.37

cat /var/named/chroot/var/named/rhce.pe.kr.rev
$TTL    120
@       IN      SOA     ns.rhce.pe.kr. admin.rhce.pe.kr.  (
                                      2006110723 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      120 )    ; Minimum
        IN      NS      ns.rhce.pe.kr.
        IN      NS      ns2.rhce.pe.kr.
        IN      MX 10   mail.rhce.pe.kr.
        IN      TXT     "v=spf1 mx ip4:211.115.196.37 -all"
37      IN      PTR     rhce.pe.kr.

/etc/init.d/named start
chkconfig --level 3 named on

센드메일 설정
yum -y install sendmail-cf
yum -y install dovecot
yum -y install cyrus-sasl*
vi /etc/mail/sendmail.mc
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')dnl
echo rhce.pe.kr >> /etc/mail/local-host-names
cat /etc/mail/virtusertable
[email protected]        defcon3
[email protected]    defcon3
[email protected]        defcon3
makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
chkconfig --level 3 sendmail on

dovecot 설정
vi /etc/dovecot.conf 에서는 protocols = imap, default_mail_env 지정
/etc/init.d/dovecot start
chkconfig --level 3 dovecot on

saslauthd 시작
/etc/init.d/saslauthd start
chkconfig --level 3 saslauthd on

APM(RPM) 설치
yum -y install mysql-server
mysql_install_db --user=mysql
/etc/init.d/mysqld start
chkconfig --level 3 mysqld on

yum -y install httpd*
/etc/init.d/httpd start
chkconfig --level 3 httpd on

yum -y install php
yum -y install php-imap php-gd libc-client php-mysql php-pear php-xml php-mbstring php-xmlrpc php-mhash php-mcrypt

이젠 APM(RPM)을 지우고... SOURCE로도 깔아볼까...

기본 라이브러리 설치
yum -y install gd gd-devel freetype freetype libpng libmng* libtiff* libjpeg* libc-client* giflib*

yum -y install ncurses*
yum -y install gcc-c++
yum -y install flex
yum -y install libxml*
yum -y install gdbm-devel

openssl 설치
./config --prefix=/usr/local --openssldir=/usr/local/openssl
make
make test
make install

MySQL 설치
./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=euckr --with-language=korean --with-mysql-user=mysql --with-extra-charsets=all;
make;
make install;
./scripts/mysql_install_db;
groupadd -g 400 mysql;
useradd -u400 -g400 -d /usr/local/mysql -s /sbin/nologin mysql;
chgrp -R mysql /usr/local/mysql;
chown -R mysql /usr/local/mysql/data;
cp support-files/my-huge.cnf /etc/my.cnf;
cp support-files/mysql.server /etc/init.d/mysqld;
chmod 755 /etc/init.d/mysqld;
chkconfig --level 3 mysqld on;

아파치 설치
./configure --prefix=/usr/local/apache --enable-shared=max --enable-rule=SHARED_CORE --enable-module=so --enable-ssl=shared --enable-ssl --with-ssl=/usr/local/openssl
make
make install

php 설치
./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache/bin/apxs --enable-sysvshm=yes --enable-sysvsem=yes --enable-debug=no --enable-track-vars=yes --enable-url-fopen-wrapper=yes --with-ttf --with-png-dir=/usr --with-zlib-dir --with-jpeg-dir=/usr --with-gdbm=/usr --enable-ftp --with-tiff-dir=/usr --enable-memory-limit --enable-mbstring --with-expat-dir=/usr --enable-sockets --enable-wddx --with-freetype-dir=/usr --enable-bcmath --enable-mbstr-enc-trans --enable-mbregex --enable-exif --with-gd --enable-gd-native-ttf --enable-gd-imgstrttf --enable-calendar --with-openssl=/usr/local/openssl
make
make install

openssl genrsa -des3 1024 > /usr/local/apache/conf/localhost.key
openssl req -new -key /usr/local/apache/conf/localhost.key > /usr/local/apache/conf/localhost.csr
openssl req -x509 -days 3650 -key /usr/local/apache/conf/localhost.key -in /usr/local/apache/conf/localhost.csr > /usr/local/apache/conf/localhost.crt


 


 
 (2007-02-12 19:17:34)  
 
./configure --prefix=/usr/local/apache2 --enable-module=so --enable-mods-shared=all --enable-rewrite --enable-ssl --with-ssl


[출처] http://cafe.naver.com/h4c

[이 게시물은 관리자님에 의해 2011-10-31 17:32:05 Linux에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
10-09-25 조회 2,761
10-09-19 조회 2,796
10-09-15 조회 2,810
10-09-15 조회 4,218
10-09-15 조회 3,452
10-09-15 조회 2,544
10-09-07 조회 3,663
10-08-27 조회 4,121
10-06-11 조회 4,301
10-05-31 조회 2,548
10-02-27 조회 5,060
10-02-09 조회 3,807
09-10-10 조회 7,401
09-03-19 조회 3,254
09-02-09 조회 3,524
09-02-09 조회 4,572
08-11-01 조회 2,956
08-09-29 조회 4,611
08-09-26 조회 3,542
08-09-26 조회 3,617
08-09-26 조회 2,754
08-09-26 조회 3,795
08-09-26 조회 3,526
08-09-26 조회 4,295
08-09-18 조회 3,638
08-09-09 조회 3,272
08-08-28 조회 2,817
08-07-06 조회 3,581
08-05-21 조회 4,745
08-05-13 조회 4,588
08-04-17 조회 4,955
08-02-19 조회 3,572
08-01-18 조회 3,907
08-01-10 조회 3,870
07-10-22 조회 3,700
07-10-09 조회 4,366
07-10-03 조회 3,581
07-07-06 조회 4,247
07-07-06 조회 4,464
07-07-06 조회 4,080
07-06-28 조회 3,605
07-06-05 조회 3,622
07-06-05 조회 4,178
07-05-30 조회 3,334
07-05-02 조회 3,714
07-04-15 조회 5,201
07-04-11 조회 3,680
07-04-05 조회 3,980
07-03-31 조회 3,188
07-03-31 조회 4,161
07-03-30 조회 3,781
07-03-24 조회 4,037
07-03-22 조회 3,699
07-03-12 조회 4,455
07-02-16 조회 3,325
07-02-14 조회 5,203
07-02-10 조회 4,048
07-02-09 조회 4,430
07-01-19 조회 4,095
07-01-16 조회 5,027
06-12-16 조회 5,891
06-11-30 조회 3,649
06-11-25 조회 3,763
06-10-15 조회 5,114
06-09-26 조회 5,349
06-09-26 조회 5,470
06-09-22 조회 4,333
06-09-21 조회 3,577
06-09-21 조회 3,676
06-09-02 조회 3,521
06-08-08 조회 5,157
06-07-20 조회 3,783
06-07-17 조회 3,403
06-07-13 조회 4,231
06-07-11 조회 3,521
06-07-11 조회 3,523
06-07-11 조회 3,883
06-06-29 조회 6,125
06-06-19 조회 6,499
06-06-02 조회 3,567
06-05-24 조회 5,033
06-05-14 조회 7,835
06-05-08 조회 3,941
06-02-02 조회 5,498
05-12-16 조회 4,570
05-12-05 조회 5,203
05-06-28 조회 4,167
05-04-11 조회 4,117
05-04-11 조회 4,296
05-04-11 조회 3,356
05-03-13 조회 3,268
05-03-12 조회 4,330
04-12-08 조회 7,821
04-12-01 조회 5,226
04-11-28 조회 3,421
04-11-28 조회 3,251
04-08-05 조회 5,670
04-08-05 조회 5,013
04-08-05 조회 5,626