ntsysv服务配置工具
#yum install -y ntsysv //安装ntsysv

chkconfig 服务管理工具
#service 服务名 start |stop| restat //启动,停止,重启系统的预设服务
#/etc/init.d/crond start //启动crond服务
#chkconfig --list //列出所有服务以及每个级别是否开启

0为shotdown动作,1为重启到单用户模式,6为重启。一般系统使用2,3,4,5几个级别。其中2表示无NFS支持的多用户模式,3表示完全多用户模式,4保留给用户自定义,5表示图形登录方式。
#chkconfig --list |grep crond //使用grep命令把cron服务过滤出来
#chkconfig --level 345 crknd off //--level指定级别,后面是服务名345,最后为off或on
#chkconfig crond on //打开crond的2,3,4,5,级别操作
#chkconfig --del crond //删除crond系统服务
#chkconfig --add crond //增加crond 系统服务


被折叠的 条评论
为什么被折叠?



