
linux
小喜子898
这个作者很懒,什么都没留下…
展开
-
ping按时间返回
ping -i 0.2 172.16.8.114 | while read pong; do echo “date +%Y-%m-%d' '%H:%M:%S.%N: $pong”; done原创 2021-09-27 16:07:57 · 424 阅读 · 0 评论 -
CentOS下调整home和根分区大小
目标:将VolGroup-lv_home缩小到20G,并将剩余的空间添加给VolGroup-lv_root 1.首先查看磁盘使用情况[root@localhost ~]# df -h文件系统 容量 已用 可用 已用% 挂载点Filesystem Size Used Avail Use% Mounted on /dev转载 2017-07-19 09:50:18 · 483 阅读 · 0 评论 -
Centos6.5 安装zabbix3
1.安装PHPZabbix 3.0对php的要求最低为5.4,而CentOS6默认为5.3.3,完全不满足要求,故需要利用第三方源,将PHP升级到5.4以上,注意,不支持PHP7rpm -ivh http://repo.webtatic.com/yum/el6/latest.rpmyum install php56w php56w-gd php56w-mysql php56w-b转载 2017-07-19 10:00:49 · 306 阅读 · 0 评论 -
Linux使用高压缩率的lzma和xz
gnu tar的1.26版本开始支持lzma和xz压缩,具体压缩实例如下压缩tar -c --xz -f my_archive.tar.xz /some_directory # results in my_archive.tar.xztar -c --lzma -f my_archive.tar.lzma /some_directory # re转载 2017-07-26 10:22:28 · 1696 阅读 · 0 评论 -
比top更好用的进程监控工具htop
官网下载最新安装包:http://hisham.hm/htop/index.php?page=downloads源码包安装# tar zxvf htop-1.0.2.tar.gz# cd htop-1.0.2# ./configure # make && make install 注意查看日志编译过程中有没有error信息,如果没有说明编译安原创 2017-11-21 09:47:41 · 952 阅读 · 0 评论 -
yum安装时报404错误
问题:Trying other mirror.http://172.16.100.100/Packages/rpm-devel-4.8.0-47.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"Trying other mirror.http://172...原创 2018-11-06 10:10:09 · 3482 阅读 · 2 评论