
linux 基础
文章平均质量分 84
我叫她狗子
这个作者很懒,什么都没留下…
展开
-
linux服务器如何通过后台查看硬件信息
一、查看服务器硬件信息(1)查看服务器型号、序列号(base) [root@master ~]# dmidecode|grep "System Information" -A9|egrep "Manufacturer|Product|Serial"Product Name即为服务器型号(2)查看主板型号(base) [root@master ~]# dmidecode |grep -A16 "System Information$" (3)查看BIOS信息(base) [root@ma原创 2021-09-23 16:47:45 · 1832 阅读 · 0 评论 -
linux中的sed 命令
sed的基本语法 sed [-hnV][-e’script’][-f script文件][文本文件]参数说明:-h或–help 显示帮助; -n或- -quiet或–silent 仅显示script处理后的结果; -V或- -version 显示版本信息。 -e ‘script’]或- -expression=’script’ 以选项中指定的script来处理输入的文本文件。-e可以省...原创 2018-09-10 15:25:50 · 828 阅读 · 0 评论 -
在CentOS上创建 Software RAID 10的详解
做 Software RAID 不要求硬盘都一模一样,但是强烈推荐用同一厂商、型号和大小的硬盘。为啥 RAID 10,不选 RAID0, RAID1, RAID5 呢?答:RAID0 太危险,RAID1 性能稍逊一些,RAID5 频繁写情况下性能差,RAID10 似乎是当今磁盘阵列的最佳选择,特别适合做 KVM/Xen/VMware 虚拟机母机(host)的本地存储系统(如果不考虑 SAN 和分布...原创 2018-10-06 16:18:40 · 1152 阅读 · 0 评论 -
Linux下彻底关闭某个RAID磁盘阵列
1、查看RAID磁盘阵列信息,确认一下要关闭哪个。如:关闭md0这个阵列[root@kashu ~]# cat /proc/mdstatPersonalities : [raid6] [raid5] [raid4]md0 : active raid5 sdb5[3](S) sdb1[0] sdb2[1] sdb3[4]1043456 blocks super 1.2 level 5, 51...原创 2018-10-07 22:38:08 · 7229 阅读 · 0 评论 -
YUM中断修复
操作方法1.安装yum-complete-transactionyum install yum-utils2.运行yum-complete-transactionyum-complete-transaction --cleanup-only3.清除可能存在的重复包package-cleanup --dupes4.清除可能存在的损坏包package-cleanup --problem...原创 2018-10-29 16:24:20 · 1166 阅读 · 0 评论 -
rsync常见问题及解决办法(亲测)
错误一:password file must not be other-accessiblecontinuing without password filePassword:rsync客户端路径是否写错,权限设置不对,需要再次输入密码,客户端和服务端的密码文件都应该是600的权限才可以错误二:@ERROR: Unknown module ‘bak’rsync error: error...转载 2018-10-29 16:59:34 · 26112 阅读 · 3 评论 -
centos7 设置系统时间与网络同步
1.安装ntpdate工具sudo yum -y install ntp ntpdate2.设置系统时间与网络时间同步sudo ntpdate cn.pool.ntp.org3.将系统时间写入硬件时间sudo hwclock --systohc4.查看系统时间timedatectl如果没有执行步骤3,则Local time与RTC time显示的值可能不一样...转载 2018-11-20 20:39:33 · 421 阅读 · 0 评论