手机站
网通分站
电信主站
密 码:
用户名:
当前位置 : 主页>网站运营>建站经验>列表

Fedora Core3上ClamAntiVirus的安装

来源:互联网 作者:west263.com 时间:2008-04-16
西部数码-全国虚拟主机10强!40余项虚拟主机管理功能,全国领先!双线多线虚拟主机南北访问畅通无阻!免费赠送企业邮局,.CN域名,自助建站480元起,免费试用7天,满意再付款! P4主机租用799元/月.月付免压金!


#see how we were called.

prog="clamd"
progdir="/usr/local/sbin"

#Sourece configuration

if [ -f /etc/sysconfig/$prog ];then
. /etc/sysconfig/$prog
fi

start() {
echo -n $"Starting $prog:"
$progdir/$prog
retval=$?
echo
[ $retval -eq 0 ] && toch /var/run/clamav/clamd.pid
return $retval
}

stop() {
echo -n $"Stoping $prog:"
killall $prog
retval=$?
echo [ $retval -eq 0 ] && rm -f /var/run/clamav/clamd.pid
return $retval
}
rhstatus() {
status clamd
}
restart() {
stop
start
}
reload() {
echo -n $"Reloading clam daemon configuration:"
killall clamd
retval =$?
echo
return $retval
}

case "" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
reload)
reload
;;
status)
shstatus
;;
*)
echo $"Usage: [start|stop|status|reload|restart}"
exit 1
esac
exit 0

存盘退出。
执行下面三条指令,给这个文档加上可执行属性,并把clamd 加为服务起动。
增加可执行属性
#chmod 755 /etc/init.d/clamd
把clamd加为服务
#chkconfing --add clamd
让电脑每次启动时把Clamd也启动起来
#chkconfig clamd on

文章整理:西部数码--专业提供域名注册虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!