linux 查看硬盘使用时间
需要安装这个: http://smartmontools.sourceforge.net/ 如果是centos直接运行yum install smartmontools -y就可以了 debian系统运行 apt-get install smartmontools -y 然后输入这个: smartctl -A /dev/sda 如果不行用df看看硬盘名称,把sda换了即可 === START OF...
View ArticleTypecho 关闭非中文的垃圾评论
关闭typecho非中文语系的评论 在当前主题模板中找到comments.php文件,在其中找到以下代码 <?php if($this->allow('comment')): ?> 修改为 <?php if($this->allow('comment') && stripos($_SERVER['HTTP_ACCEPT_LANGUAGE'],...
View Articlelinux 下IP、网关、DNS地址配置
一、修改IP地址 vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR=192.168.30.197 NETMASK=255.255.255.0 GATEWAY=192.168.30.1 二、修改网关 vi /etc/sysconfig/network...
View Article