Tip & Tech

qmail(큐메일) 서버 구축 02

event2017-09-14 248 views

01. ucspi-tcp 0.88 설치 [최신버전: http://cr.yp.to/ucspi-tcp/install.html]
[root@localhost]# cd /usr/local/src
[root@localhost]# wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz
[root@localhost]# wget http://djbware.csi.hu/patches/ucspi-tcp-0.88.errno.patch
[root@localhost]# tar xfz ucspi-tcp-0.88.tar.gz
[root@localhost]# cd ucspi-tcp-0.88
[root@localhost]# patch -p1 < ../ucspi-tcp-0.88.errno.patch
================================================================
# patch -p1 < ../ucspi-tcp-0.88.errno.patch
patching file error.h
[root@localhost ucspi-tcp-0.88]#
================================================================
[root@localhost]# echo "/usr/local" > conf-home
[root@localhost]# make
[root@localhost]# make setup check

02. daemontools 0.76 [최신버전: http://cr.yp.to/daemontools/install.html]
02-1. daemontools 설치

[root@localhost]# cd /usr/local/src
[root@localhost]# wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
[root@localhost]# wget http://djbware.csi.hu/patches/daemontools-0.76.errno.patch
[root@localhost]# tar xfz daemontools-0.76.tar.gz
[root@localhost]# cd admin/daemontools-0.76
[root@localhost]# patch -p1 < ../../daemontools-0.76.errno.patch
[root@localhost]# echo "/usr/local" > src/home
[root@localhost]# make -C src

[root@localhost]# mkdir /service /command
[root@localhost]# for i in `cat package/commands`; do cp -a src/$i /usr/local/bin/$i; done
[root@localhost]# for i in `cat package/commands`; do ln -sfv /usr/local/bin/$i /command/$i; done

02-2. daemontools 시작
[root@localhost]# vi /etc/init/svscan.conf
start on runlevel [2345]
stop on runlevel [S016]

respawn
exec /command/svscanboot
[root@localhost]# initctl start svscan
=============================================================
[root@localhost daemontools-0.76]# initctl start svscan
svscan start/running, process 7622
[root@localhost daemontools-0.76]#
=============================================================


 

클립보드에 복사되었습니다.