[root@sunny♥泰用哲學♥/temp/hostsentry]# tar xvfzp hostsentry-0.02.tar.gz
[root@sunny♥泰用哲學♥/temp/hostsentry]# cd hostsentry-0.02
[root@sunny♥泰用哲學♥/temp/hostsentry/hostsentry-0.02]# vi Makefile
INSTALLDIR = /usr/local/hostsentry
[root@sunny♥泰用哲學♥/temp/hostsentry/hostsentry-0.02]# vi hostSentryConfig.py
CONFIG='/usr/local/hostsentry/hostsentry.conf'
[root@sunny♥泰用哲學♥/temp/hostsentry/hostsentry-0.02]# make
[root@sunny♥泰用哲學♥/temp/hostsentry/hostsentry-0.02]# make install
[root@sunny♥泰用哲學♥/temp/hostsentry/hostsentry/etc]# cp -f hostsentry.init /etc/init.d/hostsentry
[root@sunny♥泰用哲學♥/temp/hostsentry/hostsentry/etc]# vi /etc/init.d/hostsentry
start() {
cd /usr/local/hostsentry
stop() {
cd /usr/local/hostsentry
[root@sunny♥泰用哲學♥/temp/hostsentry]# chmod 700 /etc/rc.d/init.d/hostsentry
[root@sunny♥泰用哲學♥/temp/hostsentry]# chown 0.0 /etc/rc.d/init.d/hostsentry
[root@sunny♥泰用哲學♥/temp/hostsentry]# chkconfig --add hostsentry
[root@sunny♥泰用哲學♥/temp/hostsentry]# chkconfig --level 345 hostsentry on
[root@sunny♥泰用哲學♥/usr/local/hostsentry]# vi hostsentry.conf
==========================================================================
IGNORE_FILE = "/usr/local/hostsentry/hostsentry.ignore"
ACTION_FILE = "/usr/local/hostsentry/hostsentry.action"
MODULE_FILE = "/usr/local/hostsentry/hostsentry.modules"
MODULE_PATH = "/usr/local/hostsentry/modules"
WTMP_FILE = "/var/log/wtmp"
DB_FILE = "/usr/local/hostsentry/hostsentry.db"
DB_TTY_FILE = "/usr/local/hostsentry/hostsentry.tty.db"
============================================================================
[root@sunny♥泰用哲學♥/usr/local/hostsentry]# /etc/rc.d/init.d/hostsentry start
HostSentry (을)를 시작 중:                                 [  OK  ]



+ Recent posts