码迷,mamicode.com
首页 >  
搜索关键字:linux i/o    ( 154931个结果
linux下自动ftp到服务器对比拷贝指定目录下文件
#!/bin/bash process=8 PWD=`pwd` DAT=`date` ftpip="192.168.1.1" user="ftp_username" password="ftp_password" local_dir="/home/" getlist() { ftp-n$ftpip<<EOF|awk‘{print$9}‘|sed‘/^$/d‘>$PWD/list user$user$password cdfile/ dir bye EOF } copy() { if[-f$P..
分类:系统相关   时间:2014-05-27 03:55:34    阅读次数:378
nginx详细配置教程
一.安装nginx安装nginx之前首先需要安装"DevelopmentTools"和"DevelopmentLibraries"两个基本组包。yumgroupinstall"DevelopmentTools""DevelopmentLibraries"。另外还需要安装pcre-devel包。安装pcre-devel:yuminstallpcre-devel安装nginx:添加nginx账号groupadd-g4000nginx;u..
分类:其他好文   时间:2014-05-27 03:35:49    阅读次数:510
linux 挂载windows 共享文件夹
mount-tcifs-ousername=administrator,password=123//$IP//mnt
分类:Windows程序   时间:2014-05-27 03:12:43    阅读次数:325
linux服务器查看网卡连接的交换机IP和PORT
cdpr命令:安装:yum-yinstallcdpr(安装epel库)[21:53:07root@localhost~]#cdpr-h cdpr-CiscoDiscoveryProtocolReporter Version2.4 Copyright(c)2002-2010-MonkeyMental.com d:Specifydevicetouse(eth0,hme0,etc.) h:Printthisusage t:timeinsecondstoabortwaitingforapack..
分类:系统相关   时间:2014-05-21 00:08:27    阅读次数:447
Gentoo Linux安装详解
1.前期准备远程登录:开启ssh服务:/etc/init.d/sshdstart设置密码:passwd以便使用putty、sshclient远程登录上传stage等(有时在线下载很慢,而局域网上传很快)准备磁盘:分区:fdisk/dev/sda/dev/sda1:/boot100M(32-100M)设启动笔记-a/dev/sda2:/20G/dev/sda3:/home20G/dev/..
分类:系统相关   时间:2014-05-20 23:58:58    阅读次数:677
linux系统使用arp-scan检查是否存在IP地址冲突
linux系统使用arp-scan检查是否存在IP地址冲突 如果前期没有做好IP地址规划,即使有IP地址统一不小心也会犯错!推荐服务器IP地址使用要登记明细,上次机房批量部署服务器,就将已再用的IP又分配给另一台服务器,还好对业务没有造成大的影响。那么在给服务器配置IP的时候,怎么..
分类:系统相关   时间:2014-05-20 22:33:29    阅读次数:409
基于IP-SAN的存储Linux挂载
1、卸载原有存储umount/home/weishaostore/2、查看iSCSIsession信息iscsiadm-msession3、设置InitiatorNamevim/etc/iscsi/initiatorname.iscsiInitiatorName=iqn.2014-05.com.ruijie.whistle:whistle-100.e7839d5100InitiatorName=iqn.2014-05.com.ruijie.whistle:whistle-150...
分类:系统相关   时间:2014-05-20 22:22:40    阅读次数:492
启动程序实现很简单的功能在屏幕中央 ;打印一行字符串(汇编+c+red hat linux实现)
编程:启动程序实现很简单的功能在屏幕中央;打印一行字符串(汇编+c+redhatlinux实现)汇编语言编写:boot.asm启动程序代码:;我们的启动程序实现很简单的功能在屏幕中央;打印一行字符串org07c00h;org指令明确告诉编译器我程序开始地址是07c00h,而不是;原来的00000;int汇编指..
分类:系统相关   时间:2014-05-20 19:24:33    阅读次数:501
ioctl使用
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<errno.h> #include<unistd.h> #include<sys/types.h> #include<sys/socket.h> #include<netinet/in.h> #include<arpa/inet.h> #include<sys/ioct..
分类:其他好文   时间:2014-05-20 18:46:37    阅读次数:260
构建高可用的LVS负载均衡集群 入门篇
一、LVS简介LVS是LinuxVirtualServer的简称,也就是Linux虚拟服务器,是一个由章文嵩博士发起的自由软件项目,它的官方站点是www.linuxvirtualserver.org。现在LVS已经是Linux标准内核的一部分,在Linux2.4内核以前,使用LVS时必须要重新编译内核以支持LVS功能模块,但是从Linux..
分类:其他好文   时间:2014-05-20 17:33:26    阅读次数:369
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!