搜索列表
-
linux命令行(文本模式)下配置网络
【RedHat/Centos】除了通用的ifconfig外,对于Redhat/Fedora发行版,有专用的配置工具-netconfig。比较而言,netconfig可以设置IP获取方式(静态或者DHCP获取)等。netconfig --helpUsage: netconfig [OPTION...] --bootproto=(dhcp|bootp|none)
-
介绍两个很常用的Linux命令
【RedHat/Centos】1)yum list |grep 安装包名 这个命令经常用于查找在源上是否有某个安装包。 2)find 目录 -name 目标文件名 这个命令用于查找某个文件所在的路径。
-
Linux系统下ISO镜像文件的制作与刻录
【RedHat/Centos】1、检验下载的ISO镜像的MD5值:$ md5sum download.iso2、刻录ISO:1)先下载cdrecord:$sudo apt-get install cdrecord2)寻找设备(刻录机):$ cdrecord --scanbus (这会给出类似这样的一组数字:0,0,0)3)开始刻录:$ cdrecord dev=0,0,
-
查看Apache的在线用户数方法
【RedHat/Centos】# netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
方法在线查看forinprintENDNF-nawktcp/netstat -
Linux操作系统下双网卡路由表配置
【RedHat/Centos】如果eth0为192.168.10.123/255.255.255.0,eth1为192.168.20.231/255.255.255.0,则命令格式如下:#route add -net 192.168.10.0 netmask 255.255.255.0 dev eth0#route add -net 192.168.20.0 netmask 255.255.255.0 dev eth1上面的命令
配置路由网卡操作系统 命令eth0IP#route -
Linux系统用命令批量修改图片尺寸
【RedHat/Centos】经常拍照片经常会需要把大量的照片尺寸缩小,以方便网上传输或者存储。 下面介绍一种简单的方法把大量照片变到指定尺寸 find ./ -name '*.jpg' -exec convert -resize 600x480 {} {} \; 注意空格和最后的分号。转换后会覆盖源文件。这里用到两个命令。 这条命令的意思是找到当前目录所有jpg文...
图片尺寸修改批量系统命令 文件照片find -
出现The file /boot/grub/stage1 not read cor 解决办法
【RedHat/Centos】重装了操作系统,grub也随之被覆盖,为了恢复启动,我拿了一张ubuntu的live cd启动,进入linux后,进入命令行恢复grub。首先要挂载原来的/分区sudo mkdir /mnt/rootsudo mount /dev/sda7 /mnt/rootsudo mount -t proc none /mnt/root/procsudo mou
解决办法出现sudo分区grub进入设备mount/mnt/root -
linux 服务器常用维护命令
命令维护常用服务器安装文件目录export
Warning: Illegal string offset 'id' in /home/wwwroot/cczh0002/wwwroot/view/search.php on line 71
Notice: Uninitialized string offset: 0 in /home/wwwroot/cczh0002/wwwroot/view/search.php on line 71
Warning: Illegal string offset 'classname' in /home/wwwroot/cczh0002/wwwroot/view/search.php on line 72
Notice: Uninitialized string offset: 0 in /home/wwwroot/cczh0002/wwwroot/view/search.php on line 72
【】这里我会把网上看到的、自己平时用到的、和感兴趣的都整理出来,大部分采纳与网络分享的案例 -
linux学习笔记
笔记学习显示系统文件设置quota用户设定使用
Warning: Illegal string offset 'id' in /home/wwwroot/cczh0002/wwwroot/view/search.php on line 71
Notice: Uninitialized string offset: 0 in /home/wwwroot/cczh0002/wwwroot/view/search.php on line 71
Warning: Illegal string offset 'classname' in /home/wwwroot/cczh0002/wwwroot/view/search.php on line 72
Notice: Uninitialized string offset: 0 in /home/wwwroot/cczh0002/wwwroot/view/search.php on line 72
【】linux目录架构/ 根目录/bin 常用的命令 binary file 的目錄/boot 存放系统启动时必须读取的档案,包括核心 (kernel) 在内/boot/grub/menu.lst GRUB设置/boot/vmlinuz 内核/boot/initrd 核心解壓縮所需 RAM Disk/dev 系统周边设备/etc 系统相关 -
LINUX系统grub常见错误分析
【RedHat/Centos】1 : Filename must be either an absolute filename or blocklist 解释 :1号错误表示文件名格式错误。在 GRUB 中要么是以绝对路径给出文件 例子 : grub> ker
错误分析常见系统解释引用grub>表示Error文件 -
Linux查看文件夹大小的命令
【RedHat/Centos】查看linux文件目录的大小和文件夹包含的文件数 统计总数大小 du -sh xmldb/ du -sm * | sort -n //统计当前目录大小 并安大小 排序 du -sk * | sort -n du -sk * | grep guojf //看一个人的大小 du -m | cut -d "/" -f 2 //看第二个/ 字符前的文字 查看此文件夹有多少文件 /*/*/* 有多少文件 du xmldb/ du xml...
命令大小文件夹查看du多少文件//xmldb/-nsort -
linux 系统中软件raid 配置方法
配置方法软件系统RAID成员我们硬盘设备一个
Warning: Illegal string offset 'id' in /home/wwwroot/cczh0002/wwwroot/view/search.php on line 71
Notice: Uninitialized string offset: 0 in /home/wwwroot/cczh0002/wwwroot/view/search.php on line 71
Warning: Illegal string offset 'classname' in /home/wwwroot/cczh0002/wwwroot/view/search.php on line 72
Notice: Uninitialized string offset: 0 in /home/wwwroot/cczh0002/wwwroot/view/search.php on line 72
【】1 什么是RAID,RAID的级别和特点 ;什么是RAID呢?全称是 “A Case for Redundant Arrays of Inexpensive Disks (RAID)”,在1987年,由加州大学伯克利大学发表的论文而来,其实就是这个标题的缩写就是RAID;中译为“磁盘阵列”;RAID就