[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 ]
'🌟2017년 이전 포스팅 모음 🌟 > 💞Linux OS💞' 카테고리의 다른 글
시스템 권한 설정과 전체 퍼미션 정책 설정 (0) | 2011.05.14 |
---|---|
Linux 네트워크 설정 하기 (0) | 2011.05.14 |
portsentry 설치와 설정 (0) | 2011.05.14 |
XP 마운틴 한글 지원 설정 (0) | 2011.05.14 |
[CentOS5] Apache2+php5+mysql6 연동설치와 기본설정 (0) | 2011.05.14 |