CentOS如何设置crontab定时访问一个网址?
linux crontab函数语法假设希望每隔3分钟就访问一个网站, 在linux下, 可以用:crontab -e然后输入如下命令:*/3 * * * * curl http://www.baidu.com其中*/3 表示每3分钟访问一次. curl将http的内容(html)返回输出.
View ArticleCentOS救援模式实验笔记详解
centos救援模式实验笔记1、首先在BIOS中把启动选项设置成DVD光驱启动或者USB启动也是可以的2、从光盘启动之后再出现的选项中选择“Rescue installed...
View ArticleCentOS7.0命令更新新版特性详解
查看系统版本信息#uname -a#cat /etc/redhat-release升级所有包,改变软件设置和系统设置,系统版本内核都升级#yum -y update升级所有包,不改变软件设置和系统设置,系统版本升级,内核不改变#yum -y upgradeCentOS7中主机名的配置文件发生了改变,不再是/etc/sysconfig/network,更改/etc/hostname才会生效#vi...
View ArticleCentOS如何检查某软件包是否已安装?
1、rpm包安装的,可以用rpm -qa看到,如果要查找某软件包是否安装,用 rpm -qa | grep "软件或者包的名字"。2、以deb包安装的,可以用dpkg -l能看到。如果是查找指定软件包,用dpkg -l | grep "软件或者包的名字"; 3、yum方法安装的,可以用yum list installed查找,如果是查找指定包,命令后加 | grep "软件名或者包名";...
View ArticleCentOs7如何修复MBR和GRUB?
一、修复MBR: MBR(Master Boot Record主引导记录):硬盘的0柱面、0磁头、1扇区称为主引导扇区。其中446Byte是bootloader,64Byte为Partition table,剩下的2Byte为magic number。备份MBR:#dd if=/dev/sda of=/root/mbr.bak count=1 bs=512破坏bootloader:#dd...
View ArticleCentOS下查看温度及风扇转速的方法
CentOS下如何查看自己本本的CPU和GPU的温度及 Fan(风扇) 的转速操作如下: 1、安装 lm_sensors 软件包 (如果已安装了此软件了,1和2步都跳过吧): $ sudo yum install lm_sensors 2、手动配置下(一路yes或enter就行了): $ sudo sensors-detect 3、最后打开终端输入: $ sensors...
View ArticleCentOS永久禁止PackageKit后台运行解析
使用centos时,使用yum安装软件,老是会遇到这种提示:1.Existing lock /var/run/yum.pid: another copy is running as pid 3053. 2.Another app is currently holding the yum lock; waiting for it to exit... 3.The other...
View Article折腾 Linux 4.9 BBR 拥堵控制算法
新年折腾 BBR 人是一种很奇怪的东西,以前家里科学上网速度很慢的时候,只要能打开就很满意了。 现在换了联通,Google 明明已经秒开了,却又开始不满足现状了。 恰巧最近看到了各种 KCP, BBR 技术的介绍,就想给自己的梯子折腾折腾了。 KCP 介绍 KCP 是开源社区的一个新轮子,看 commit 记录是从 2014 年开始开发的。算是一个很新的东西了。 KCP是一个快速可靠协议,能以比...
View ArticleSet up Samba Ubuntu 12.04 LTS+
Samba is a useful program for setting up shared directories which are easily accessible from any modern operating system using CIFS or SMB. It’s a program widely associated with “windows shares” so is...
View Article11款最棒的Linux数据恢复工具发布啦!
无论你使用的是台式电脑还是笔记本,需要关注的重点之一都是如何保护好你的宝贵数据。因为总会有各种突发情况使你的系统崩溃,然后你要做的就是恢复数据。不管你怎么想,要是我失去了所有的数据却无法恢复的话,我会分分钟肢解了这台破电脑。不过幸好的是,现在市场上有不少的数据恢复工具,能帮助我们从系统的硬盘上恢复数据。...
View ArticleHowTo Fix Tiny Font On High DPI Screen in Ubuntu
I recently acquired a new Dell XPS15 laptop, thanks to a very generous gift from Dell . It has a very nice screen, and much higher DPI than I’m used to. However, after installing Ubuntu 16.04 LTS on...
View ArticleKillDisk Ransomware Now Targets Linux, Prevents Boot-Up, Has Faulty Encryption
Researchers have discovered a linux variant of the KillDisk ransomware, which itself is a new addition to the KillDisk disk wiper malware family, previously used only to sabotage companies by randomly...
View ArticleN25_第五周
1、显示/boot/grub/grub.conf中以至少一个空白字符开头的行; grep -E "^[[:space:]]+" /boot/grub2/grub.cfg 2、显示/etc/rc.d/rc.sysinit文件中以#开头,后面跟至少一个空白字符,而后又有至少一个非空白字符的行; grep -E "^#[[:space:]]+[^[:space:]]+"...
View ArticleGOG: Pizza Tycoon
BUY ITEM Buy item owned Buy item pre-order ADDED TO CART 5.99 Free {{ product.price.amount }} {{ product.price.baseAmount }} {{ product.price.amount }} You save {{ product.price.discountDifference }}...
View ArticleWriting a (better) application to run shell scripts with admin rights
Following on from mypost yesterday, in which I describe a method of creating an application using Automator to run shell scripts that require administrator privileges ( sudo ), I have now figured out...
View ArticleMakefile/cmake/node-gyp中区分不同平台的方法
最近用 QTK 开发一个下载(下载到开发板)工具,同时用到了Makefile/cmake和node-gyp,而且都要针对不同平台做不同的处理。这里做个记录,以备以后有需要时查阅。 Makefile 在Makefile中,可以用OS变量判断当前系统是否是windows,然后用uname来判断当前系统是MacOS还是其它系统。 ifeq ($(OS),Windows_NT)...
View ArticleLinux命令学习笔记
使用gitbook做笔记 工作三年多,从第一次接触linux系统到现在,陆陆续续使用了、熟悉了、了解了、知道了、听说过一些Linux系统下的命令。 有的命令已经熟练,有的刚刚知道怎么用,有的刚听说还没实际使用过。这么命令要么就是在脑子里记着,要么就是在某个txt文档里记着,乱七八糟,想用的时候又找不到。...
View ArticleKushal Das: Using rkt and systemd
Few days back, Iwrote about my usage of rkt containers . As rkt does not have any daemon running, the simplest way to have a container running is to start it inside some screen or tmux session. I...
View Article为什么你总是学不好Linux技术?这是我的答案
我们为什么要学习 linux ,最近几年Linux发展迅速,特别服务器领域,带来了很多新技术, 云计算 ,虚拟化, 大数据 等 技术,还有安全方面都有了很大的发展同时也给了 Linux运维工作带来了,更多的要求和挑战。Linux 作为服务器的系统,服务于各行业,在市场使用中越来越广泛,这得益于 Linux的稳定,高效和灵活。Linux 在桌面领域也得到了长足的发展,特别是在...
View Articlesupport-optional
support-optional support-optional provides a Java 8 optional that supports Java 6, Android and RetroLambda development while having an easy migration to the real optional class. This library is much in...
View Article