系统环境:Kali GNU/Linux Rolling
#1 安装服务
#!/bin/sh # 安装Cron服务: apt-get install cron # 启动并开机自启动Cron服务: systemctl enable cron systemctl start cron # 查看服务状态: systemctl status cron # 如果手动启动Cron服务可以执行: cron & # 推荐使用systemd的方式来启动cron服务。
#2 启动服务
#!/bin/sh # 安装服务 apt-get install cron # 启动并开机自启动服务 systemctl enable cron systemctl start cron # 如果手动启动Cron服务可以执行: cron & # 推荐使用systemd的方式来启动cron服务。
#3 查看服务状态
# 查看服务状态: systemctl status cron