在阿里云服务器中安装了redis后,隔了几天突然发现CPU进程,总是100%,用top命令查看发现没有进程占满,应该是top命令被修改了。
然后安装一个htop:
yum -y install epel-release
yum -y install htop
安装crontab:
//vixie-cron软件包是cron的主程序;
[root@CentOS ~]# yum -y install vixie-cron
//rontabs软件包是用来安装、卸装、或列举用来驱动 cron 守护进程的表格的程序
[root@CentOS ~]# yum -y install crontabs
linux安装crontab报错:No package vixie-cron available. Error: Nothing to do
报错,原因可能是epel-release版本不明确,没有相应的资源
执行命令:
yum -y install vim-enhanced.x86_64
启动:
systemctl start crond.service
关闭:
systemctl stop crond.service
重启:
systemctl restart crond.service
开机运行:
systemctl enable crond.service
参考文章:
https://blog.csdn.net/qq_36588424/article/details/111918099
https://blog.csdn.net/weixin_43520670/article/details/114680222