Archive for the ‘Linux’ Category

【起因】 zabbix 由于监控条目过多,模板套用不当导致历史数据过大, 因此导致磁盘空间暴涨, 现在准备清理数据库。

Thursday, August 15th, 2019 at 11:38 | 0 comments
Tags:

特别提醒: a、文中测试的Zabbix版本为 3.0.3 。 b、清理数据属于高危操作,请在测试环境中验证后再执行线上操作!!!  

Thursday, August 15th, 2019 at 10:05 | 0 comments
Tags:

Expand a Hard Disk with Ubuntu LVM

Thursday, July 18th, 2019 at 11:38 | 0 comments
Tags:

Linux操作系统定时任务系统 Cron 入门 cron是一个linux下的定时执行工具,可以在无需人工干预的情况下运行作业。由于Cron 是Linux的内置服务,但它不自动起来,可以用以下的方法启动、关闭这个服务: /sbin/service crond start //启动服务 /sbin/service crond stop //关闭服务 /sbin/service crond restart //重启服务 /sbin/service crond reload //重新载入配置 你也可以将这个服务在系统启动的时候自动启动: 在/etc/rc.d/rc.local这个脚本的末尾加上: /sbin/service crond start

Thursday, September 15th, 2011 at 14:08 | 0 comments
Categories: Linux
Tags: ,

在对某个目录进行压缩的时候,有时候想排除掉某个目录,例如: 如果dir目录下有3个子目录,dir1、dir2、dir3。 我现在想只对dir1和dir2目录打包压缩,命令如下: tar -zcvf dir.tar.gz –exclude=dir3 dir 使用exclude参数来过滤不需要的目录或文件,排除某个文件的操作和目录一样。

Thursday, September 15th, 2011 at 13:44 | 0 comments
Categories: Linux, Technology
Tags: ,
TOP