随笔分类 -  linux

摘要:【实验:按照下述要求安装一台Server】/boot 100M/ 10G/data 50G/var/ftp LVM 6G :/dev/vg_ftp/lv_ftpswap 2048M主机名:server.yimiao.comip:192.168.10.254网络设置为VMNET1关闭防火... 阅读全文
posted @ 2014-09-14 15:38 Yolandafans 阅读(733) 评论(0) 推荐(0)
摘要:SHH 配置文件/etc/shhd_config 服务端配置文件/etc/ssh_config 客户端配置文件[root@localhost ssh]# chkconfig --list sshdsshd 0:关闭 1:关闭 2:启用 3:启用 ... 阅读全文
posted @ 2014-09-14 12:13 Yolandafans 阅读(201) 评论(0) 推荐(0)
摘要:1.tar -P是否保留根目录 -t查看压缩文件内容 -N 201401010备份日期以后[root@localhost /]# tar -zcPf /tar/data2.tar.gz /etc/*.conf[root@localhost /]# cd tar/[root@localhost t... 阅读全文
posted @ 2014-09-08 16:37 Yolandafans 阅读(363) 评论(0) 推荐(0)
摘要:[root@localhost ~]# ifconfigeth0 Link encap:Ethernet HWaddr 00:0C:29:78:F6:12 inet addr:172.17.4.128 Bcast:172.17.4.255 Mask:255.255.... 阅读全文
posted @ 2014-09-08 12:02 Yolandafans 阅读(282) 评论(0) 推荐(0)
摘要:计划任务的授权1.at任务 /etc/at.allow /etc/at.deny2.crontab任务 /etc/cron.allow /etc/cron.deny【注:如果allow文件存在,则allow中的用户可以使用计划任务,allow文件不存在则去找deny文件,deny文件中的用户不可... 阅读全文
posted @ 2014-08-17 17:16 Yolandafans 阅读(151) 评论(0) 推荐(0)
摘要:一次性计划任务 at /etc/init.d/atd[root@localhost ~]# at 22:18at> /bin/ls /etc |wc -l > /tmp/yimiao_demo.txt #ctrl+d提交计划任务,执行的命令用绝对路径,避免产生错误,可用which查看at> job ... 阅读全文
posted @ 2014-08-17 14:30 Yolandafans 阅读(184) 评论(0) 推荐(0)
摘要:1.查看进程ps - processes snapshotps aueps -elf[root@localhost ~]# ps aueUSER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMANDroot ... 阅读全文
posted @ 2014-08-17 11:54 Yolandafans 阅读(225) 评论(0) 推荐(0)
摘要:启动的配置文件/etc/inittab,修改完配置文件以后 init q立即生效# Default runlevel. The runlevels used by RHS are:# 0 - halt (Do NOT set initdefault to this)# 1 - Single ... 阅读全文
posted @ 2014-08-10 17:02 Yolandafans 阅读(210) 评论(0) 推荐(0)
摘要:启动引导:1.主机加电自检,加载BIOS信息2.读取MBR的引导文件【grub lilo】3.引导linux内核4.运行第一个进程init pid=15.进入相应的运行级别【0-6】6.运行终端,输入用户名,密码 阅读全文
posted @ 2014-08-10 16:31 Yolandafans 阅读(151) 评论(0) 推荐(0)
摘要:RAID廉价冗余磁盘阵列 Redundant Arrays of Inexpensive Disks 不同级别的RAID功能、特性各不相同对比项RAID0RAID1RAID10RAID5磁盘数>=2>=2>=4>=3存储利用率 100% 50% 50% N/N-1 冗余校验盘 00... 阅读全文
posted @ 2014-08-10 13:56 Yolandafans 阅读(237) 评论(0) 推荐(0)
摘要:LVM逻辑卷机制 PV(Physical Volume 物理卷) - 物理分区或整个物理磁盘 - 由PE(Physical Extent,基本单元)租场 VG(Volume Group 卷组) - 一个或多个物理卷组成的逻辑整体 LV(logical Volume 逻辑卷) ... 阅读全文
posted @ 2014-08-03 10:31 Yolandafans 阅读(213) 评论(0) 推荐(0)
摘要:磁道:track扇区:sector磁头:head柱面:cylinder每个扇区,512字节每个磁道划分为63个扇区逻辑磁头(盘面)数设为255 一个柱面的大小 =255 * 63 * 512 = 8M硬盘或分区的容量=柱面大小 * 柱面数[root@localhost ~]# fdisk -l ... 阅读全文
posted @ 2014-07-13 14:36 Yolandafans 阅读(239) 评论(0) 推荐(0)
摘要:用户权限:drwxr-xr-x 4 root root 1024 06-22 17:36 boot #权限位 硬连接数 所属用户 所属组 大小 最后修改时间 文件/目录#r w x4 2 1用户权限位分为3段,分别对应USER GROUP OTHERrwxr-xr-x 755 默认... 阅读全文
posted @ 2014-06-29 13:15 Yolandafans 阅读(146) 评论(0) 推荐(0)
摘要:用户的添加 useradd demo (默认是普通用户 uid从500开始)[root@localhost usr]# tail -n 1 /etc/passwddemo01:x:501:501::/home/demo01:/bin/bash #以:分割 ... 阅读全文
posted @ 2014-06-22 12:13 Yolandafans 阅读(210) 评论(0) 推荐(0)
摘要:RPM软件包 RPM软件包一般的安装位置(分散): 管理程序:/sbin/* /usr/sbin/* 普通用户程序:/bin/* /usr/bin/* rpm -q ===> rpm -query rpm -qa 列出所有已安装的rpm软件包 rpm -q 软件包 查找某个软... 阅读全文
posted @ 2014-06-22 09:41 Yolandafans 阅读(182) 评论(0) 推荐(0)
摘要:文件,目录 pwd:查看当前目录 Print Working Directory cd,ls(ll),mkdir -p Change Directory List Make Directory du -sh 评估目录或者文件大小 touch 创建新文件 ln -s source dest ... 阅读全文
posted @ 2014-06-07 21:36 Yolandafans 阅读(163) 评论(0) 推荐(0)
摘要:查看linux版本信息:http://distrowatch.com/linux根目录下系统文件夹的含义/boot 该目录下默认存放的是linux的启动文件和内核,一般200Mswap交换分区,一般设置成内存的两倍。别超过3,4G/initrd它的英文含义是boot loader initializ... 阅读全文
posted @ 2014-05-30 22:26 Yolandafans 阅读(179) 评论(0) 推荐(0)