实验添加两块30G硬盘在不重新启动的情况下,让Linux系统识别到新添加的磁盘使用putty连接linux操作服务器[root@ns1~]#fdisk–l没有识别到新添加的两块磁盘[root@ns1~]#echo"---">/sys/class/scsi_host/host0/scan[root@ns1~]#echo"---">/sys/class/scsi_host/host2/scan..
分类:
系统相关 时间:
2014-08-15 02:52:07
阅读次数:
337
1.场景2.POC环境#uname-aLinuxlocalhost3.10.0-123.el7.x86_64#1SMPMonJun3012:09:22UTC2014x86_64x86_64x86_64GNU/Linux#cat/etc/redhat-releaseCentOSLinuxrelease7.0.1406(Core)3.具体操作3.1.分区#fdisk-lDisk/dev/sdc:32.2GB,32212254720bytes,62914560sectorsUnits=secto..
分类:
系统相关 时间:
2014-08-15 02:50:47
阅读次数:
551
RAID1试验试验要求:两块磁盘做raid1破坏其中一个硬盘(做删除操作)恢复破坏的磁盘及数据实现过程:1.准备linux,配置IP,链接putty2.查看系统信息[root@localhost~]#uname-aLinuxlocalhost.localdomain2.6.32-358.el6.x86_64#1SMPTueJan2911:47:41EST2013x86_64x86_64x86_64G..
分类:
系统相关 时间:
2014-08-15 02:48:49
阅读次数:
375
1.安装vsftpd软件包[root@ser5pub]#yum-yinstallvsftpd2.设置服务器的IP地址192.168.4.53.在/var/ftp/目录下建立测试文件anon.txt[root@ser5/]#ifconfig>/var/ftp/anon.txt4.在用户lisi的宿主目录下建立测试文件lisi.txt[root@ser5/]#useraddlisi[root@ser5/]#passwdlisi更..
分类:
系统相关 时间:
2014-08-15 02:47:57
阅读次数:
420
服务器IP:192.168.4.51.安装samba服务软件包[root@ser5桌面]#yum-yinstallsamba[root@ser5桌面]#rpm-qsambasamba-3.6.9-164.el6.x86_64[root@ser5桌面]#rpm-qsamba-client2.修改配置文件smb.conf对配置文件做备份[root@ser5桌面]#cp/etc/samba/smb.conf/etc/samba/smb.conf.ba..
分类:
系统相关 时间:
2014-08-15 02:47:39
阅读次数:
354
服务器IP地址:192.168.4.5服务器主机名:srv5.tarena.com1.在服务器端安装httpd软件包[root@ser5/]#yum-yinstallhttpd[root@ser5/]#servicehttpdstart[root@ser5/]#chkconfighttpdon2.在客户机端验证在浏览器中输入192.168.4.5如果显示欢迎页面表示服务器搭建成功3.部署网页文..
分类:
Web程序 时间:
2014-08-15 02:47:08
阅读次数:
266
linux下配置静态路由实验拓扑图1、首先在B计算机下给eth0和eth1设置IP地址打开配置文件#vim/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=网卡的代号BOOTPROTO=是否使用dhcp,试验中选择不使用HWADDR=是否加入网卡卡号(MAC)IPADDR=就是IP地址NETMASK=掩码NETWORK=网域,也就..
分类:
系统相关 时间:
2014-08-15 02:43:07
阅读次数:
337
//调用
//char*ptr=(char*)malloc(sizeof(char)*128);
//ptr=get_passwd();
//printf("\n");#include<stdio.h>#include<termios.h>#include<unistd.h>#include<assert.h>#include<string.h>#include<stdlib.h>intgetch(){ intc=0; structt..
分类:
系统相关 时间:
2014-08-15 02:42:17
阅读次数:
300
Linux下修改图片格式
在终端上安装imagemagick
sudo apt-get install imagemagick
cd到相应的图片所在目录
#把 .png 转到 .jpg
convert *.png *.jpg
rm -r *.png...
分类:
系统相关 时间:
2014-08-15 00:08:06
阅读次数:
405
http://www.1987.name/141.html
shell基础
终端打印、算术运算、常用变量Linux下搜索指定目录下特定字符串并高亮显示匹配关键词
从键盘或文件中获取标准输入
[read命令]
文件的描述符和重定向数组、关联数组和别名使用函数的定义、执行、传参和递归函数条件测试操作与流程控制语句获取时间日期格式和延时
[date、sleep命令]内部字段分...
分类:
系统相关 时间:
2014-08-15 00:01:57
阅读次数:
316