
linux
文章平均质量分 95
翟海飞
这个作者很懒,什么都没留下…
展开
-
df命令卡死及相关的device is busy问题
1、现象服务器ls /和df -h命令都无反应。如果你的机器有用到nfs请直接看第四大点。2、分析 运行mount[root@bioee ~]# mount/dev/sda1 on / type ext4 (rw)proc on /proc type proc (rw)sysfs on /sys type sysfs (rw)devpts on /dev/pts t...原创 2018-07-24 10:29:08 · 3232 阅读 · 0 评论 -
mount及问题
在服务器上mount时出错,问题如下[root@sz74 ~]# mount -t nfs -o nfsvers=3 zileo.com:/nfs/datapool /leostoremount: wrong fs type, bad option, bad superblock on fanshengzileo.com:/nfs/datapool, missing code...原创 2018-07-18 21:53:18 · 3477 阅读 · 0 评论 -
centos常见问题
1 yum源更换为国内的阿里云源1 备份mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/CentOS 5wget -O /etc/yum.rep原创 2018-01-26 15:14:37 · 927 阅读 · 0 评论 -
Ubuntu下安装rsh实现无密码访问
一:环境1.三台服务器ubuntu14.04, 主机名分别为compute,block1和blcok22.两台主机hosts文件都为:root@compute:~# cat /etc/hosts127.0.0.1 localhost192.168.4.132 compute192.168.4.133 block1192.168.4.134 block2原创 2017-03-30 17:14:13 · 3014 阅读 · 0 评论 -
qemu虚拟机与外部网络的通信
一、基本概念为了使虚拟机能够与外界通信,Qemu需要为虚拟机提供网络设备。Qemu支持的常用网卡包括NE2000、rtl8139、pcnet32等。命令行上用-net nic为虚拟机创建虚拟机网卡。例如,qemu的命令行选项 -net nic,model=pcnet表示为虚拟机添加一块pcnet型的以太网卡。如果省略mode转载 2017-02-28 19:18:44 · 4837 阅读 · 0 评论 -
Linux上的基础网络设备总结
1 Linux 上的基础网络设备详解和工作原理http://www.ibm.com/developerworks/cn/linux/1310_xiawc_networkdevice/2 ip操作VLANs managementip link add link eth0 name eth0.2 type vlan id 2ip link add link eth0 name myvlan type原创 2017-02-28 19:17:35 · 3328 阅读 · 0 评论 -
ubuntu下使用virt-install安装虚拟机并配置桥接网络
在http://blog.csdn.net/zhaihaifei/article/details/51153402这篇总结中,只是说明了如何用virt-install创建和安装虚拟机,但是是这个虚拟机是在默认的网络default下启动的。这个默认网络与主机所在的局域网不通,因此要自己手动创建网桥并分配IP,以与主机所在局域网互通。1 创建网桥1.1 Bridge桥接原理原理KVM安装后默认的网络链接原创 2017-02-27 18:44:16 · 17237 阅读 · 1 评论 -
Linux TCP/IP 网络工具对比:net-tools 和 iproute2
原文出处: Dan Nanni 译文出处:Linux.Cn-KayGuoWhu 如今很多系统管理员依然通过组合使用诸如ifconfig、route、arp和netstat等命令行工具(统称为net-tools)来配置网络功能,解决网络故障。net-tools起源于BSD的TCP/IP工具箱,后来成为老版本Linux内核中配置网络功能的工具。但自2001年起,Linux社区已经对其停转载 2017-01-19 16:40:24 · 9748 阅读 · 1 评论 -
RedHat使用CentOS Yum源
RedHat yum源是收费的,没有成功注册RH的机器是不能正常使用yum的,因此配置CentOS的yum源。1 卸载本地yum首先,需要移除系统注册相关软件∘ 查看相关软件:rpm -qa | grep subscription-manager∘ 移除相关软件:yum remove subscription-managerrpm -qa|g原创 2017-01-19 16:16:19 · 3604 阅读 · 0 评论 -
Ubuntu14.04和16.04下安装lxqt
http://www.tecmint.com/install-lxqt-desktop-in-ubuntu-fedora/How to Install Latest LXQt Desktop in Ubuntu 16.04/16.10 and Fedora 22-24LXQt developed from popular components of LXDE and Raz转载 2017-01-14 01:45:00 · 8388 阅读 · 0 评论 -
在ubuntu16.04下,使用unrar解压缩rar文件
1 使用apt-cache命令查找包zhai@zhai:~/Downloads$ apt-cache search rar | grep rarrar - Archiver for .rar filesunrar - Unarchiver for .rar files (non-free version)2 使用apt-get install安装zhai@zhai:~/原创 2016-06-17 09:30:48 · 15386 阅读 · 0 评论 -
IPMI
1 什么是IPMI?IPMI是智能平台管理接口 (IPMI) 是一种开放标准的硬件管理接口规格,定义了嵌入式管理子系统进行通信的特定方法。IPMI 信息通过基板管理控制器 (BMC)(位于 IPMI 规格的硬件组件上)进行交流。使用低级硬件智能管理而不使用操作系统进行管理,具有两个主要优点: 首先,此配置允许进行带外服务器管理; 其次,操作系原创 2016-05-13 16:35:59 · 2662 阅读 · 0 评论 -
在VirtualBox中安装Ubuntu 的增强工具包并实现与win7共享文件
1 在virtualbox中添加共享文件夹添加共享文件夹是d盘,自动挂载2 在virtualbox中安装增强功能启动VM, 点击:设备->安装增强功能3 在ubuntu虚机中安装增强功能安装编译环境,执行如下命令sudo apt-get install build-essential映射设备sudo mount /dev/cdrom /media/c原创 2016-04-27 17:17:53 · 1768 阅读 · 0 评论 -
查看端口范围及是否可用
1 Service Name and Transport Protocol Port NumberService names and port numbers are used to distinguish between differentservices that run over transport protocols such as TCP, UDP, DCCP, andSCT原创 2016-04-23 22:59:59 · 3943 阅读 · 0 评论 -
构建高可用高性能的gpfs集群
GPFS(General Parallel File System)并行文件系统集群GPFS 系统介绍GPFS (General Parallel File System) 是 IBM 公司第一个共享文件系统,起源于 IBM SP 系统上使用的虚拟共享磁盘技术 ( VSD )。作为这项技术的核心, GPFS 是一个并行的磁盘文件系统,它保证在资源组内的所有节点可以并行访问整个文件系转载 2016-04-21 17:18:22 · 2001 阅读 · 0 评论 -
判断当前主机是物理机还是虚拟机
Windows: 1 Systeminfo | findstr /i "System Model" 如果System Model:后面含有Virutal就是虚拟机,其他都是物理机 2 powershell命令:get-wmiobject win32_computersystem | fl modelLinux: 1 dmi原创 2016-04-20 11:44:34 · 10063 阅读 · 0 评论 -
处理器CPU概念及CPU多线程
1 socket, core, thread(1)socket就是主板上插cpu的槽的数目,也即管理员说的”路“ 芯片厂商会把一个或多个Core封装在一个chip上,称作Socket(插槽)。假设一个插槽有两个Core,主板上插2个插槽,就是4核系统。(2)core就是我们平时说的”核“,即双核,4核等。单核(single-core)和多核(multi-core)也称作u原创 2016-03-30 16:55:56 · 9520 阅读 · 2 评论 -
Linux CPU Topology
原文:http://www.wowotech.net/pm_subsystem/cpu_topology.html1. 前言在“Linux CPU core的电源管理(1)_概述”中,我们多次提到SMP、CPU core等概念,虽然硬着头皮写下去了,但是蜗蜗对这些概念总有些似懂非懂的感觉。它们和CPU的进化过程息息相关,最终会体现在CPU topology(拓扑结构)上。因此本转载 2016-03-30 15:28:26 · 2037 阅读 · 0 评论 -
ubuntu中的sources.list文件
1 sources.listNAME sources.list - List of configured APT data sourcesDESCRIPTION The source list /etc/apt/sources.list is designed to support any number of active sources and原创 2016-03-04 18:18:46 · 14495 阅读 · 0 评论 -
LINUX ulimit命令
概述 系统性能一直是一个受关注的话题,如何通过最简单的设置来实现最有效的性能调优,如何在有限资源的条件下保证程序的运作,ulimit 是我们在处理这些问题时,经常使用的一种简单手段。ulimit 是一种 linux 系统的内键功能,它具有一套参数集,用于为由它生成的 shell 进程及其子进程的资源使用设置限制。本文将在后面的章节中详细说明 ulimit 的功能,使用以及它的影响,并以转载 2016-03-01 14:40:21 · 580 阅读 · 0 评论 -
Tun/Tap interface tutorial
Tun/Tap interface tutorialPosted by waldner on26 March 2010, 1:54 pm原文:http://backreference.org/2010/03/26/tuntap-interface-tutorial/Foreword: please note that the code available here is转载 2016-02-03 15:44:47 · 2115 阅读 · 0 评论 -
chroot
1 chroot命令NAME chroot - run command or interactive shell with special root directorySYNOPSIS chroot [OPTION] NEWROOT [COMMAND [ARG]...] chroot OPTIONDESCRIPTION原创 2016-02-02 11:38:18 · 2131 阅读 · 0 评论 -
Loop设备和使用loop设备打开ISO文件
1 Loop设备 在类 UNIX 系统里,loop 设备是一种伪设备(pseudo-device),或者也可以说是仿真设备。它能使我们像块设备一样访问一个文件。 在使用之前,一个 loop 设备必须要和一个文件进行连接。这种结合方式给用户提供了一个替代块特殊文件的接口。 因此,如果这个文件包含有一个完整的文件系统,那么这个文件就可以像一个磁盘设备一样被 mount 起原创 2016-01-28 17:32:09 · 3068 阅读 · 0 评论 -
ubuntu14.04LTS命令行安装xfce4桌面
安装ubuntu14.04LTS后,需要一个桌面,因此选择安装xfce4.1 安装1.1 安装默认版本4.10 sudo apt-get install xfce41.2 安装版本4.12 1 sudo add-apt-repository ppa:xubuntu-dev/xfce-4.12 test@test:~$ sudo add-apt-reposito原创 2016-01-22 16:41:50 · 28244 阅读 · 0 评论 -
ssh-keygen和ssh-copy-id实现SSH无密码登录
安装了jumpserver跳板机,通过跳板机登录到各个服务器,因此想实现ssh无密码登录,用ssh-keygen和ssh-copy-id实现。ssh-keygen: generates, manages and converts authentication keys for ssh 创建公钥和密钥ssh-copy-id: a script that原创 2016-01-15 15:25:38 · 14201 阅读 · 0 评论 -
ethtool测定Linux服务器上网卡硬件与网口的对应关系
1 ethtool DEVNAME 查看相应设备名称对应的设备信息[root@localhost ~]# ifconfig -sIface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flgbr-admin 1500 18082811 0 10 0 15264原创 2015-11-10 11:15:03 · 16809 阅读 · 0 评论 -
ubuntu 实用工具系列文章 upstart把应用封装成系统服务
实用工具系列文章网址:http://blog.fens.me/series-ubuntu/upstart把应用封装成系统服务ubuntu实用工具系列文章操作系统实用工具系列文章,将介绍基于Linux ubuntu的各种工具软件的配置和使用。有些工具大家早已耳熟能详,有些工具经常用到但确依然陌生。我将记录我在使用操作系统时,安装及配置工具上面的一些方法,把使用心得记录下来也便于自己的转载 2015-03-30 15:42:24 · 1029 阅读 · 0 评论 -
ubuntu包管理 dpkg apt-get aptitude ppa
1 包管理基础ubuntu包管理系统继承于Debian包文件扩展名.deb 基本工具:dpkg, apt-get, aptitude2 dpkgdeb是debian linux的安装格式,跟red hat的rpm非常相似,最基本的安装命令是:dpkg -i file.debdpkg 是Debian Package的简写,是为Debian 专门开发的套件管理系统,方便原创 2015-03-25 15:12:27 · 1030 阅读 · 0 评论 -
ubuntu14.04上安装tigervnc
在ubuntu14.04LTS上安装vnc,之前用的是vnc4server,但是显示不好,因此用tigervnc。tigervnc网址:http://tigervnc.org/tigervnc适用于ubuntu的二进制安装包64位:tigervncserver_1.4.3-3ubuntu1_amd64.deb下载网址:https://bintray.com/tigervnc/stabl原创 2015-03-25 14:46:57 · 11598 阅读 · 1 评论 -
ubuntu14.04上安装vncserver
登录服务器或ssh到服务器1 在ubuntu上安装vncserver: sudo apt-get install vnc4server xinetdlocaladmin@ubuntu:~$ sudo apt-get install vnc4server xinetd[sudo] password for localadmin:Reading package lists... Done原创 2015-03-24 17:29:42 · 6638 阅读 · 0 评论 -
查看linux服务器信息
查看的是redhat的版本,不仅仅是linux的版本cat /etc/redhat-releaseuname -rlsb_release -a查看的是redhat的版本more /etc/redhat-releasemore /etc/issue不仅仅是linux的版本uname -a unam原创 2014-11-07 17:49:02 · 1327 阅读 · 0 评论 -
Linux-kernel 网桥代码分析
本文分析的kernel版本为:2.6.24.4,网桥代码目录为:linux-2.6.24.4/net/bridge。 网桥是kernel网络模块中相于独立的module,读者具有简单的kernel网络设备驱动开发和kerenl网络协议的基础知识即可。我在2007 年就开始接触网桥了,当时有位同事为了测试网桥的功能,还特地查看了网桥的代码,还特意转告我一定要看看这部分的代码,他说比较简转载 2014-11-06 13:55:37 · 4205 阅读 · 0 评论 -
httperf测试
HTTPS的压力测试工具 -- httperfhttperf1. 官方描述:Httperf is a tool for measuring web server performance. It provides a flexible facility for generating various HTTP workloads and for measuring server转载 2014-10-16 18:19:29 · 20227 阅读 · 0 评论 -
iperf
什么是Iperf? Iperf 是一个网络性能测试工具。Iperf可以测试TCP和UDP带宽质量。Iperf可以测量最大TCP带宽,具有多种参数和UDP特性。Iperf可以报告带宽,延迟抖动和数据包丢失。编译与安装Iperf2.0.2目前仅提供源码包的下载。当你下载到Iperf源码包后,在类unix系统上,需要先解压缩源码包,使用解压缩命令gzip或tar。解压后会产生新文件夹原创 2014-10-16 18:09:29 · 2835 阅读 · 0 评论 -
Linux curl命令参数常用
Curl是一个命令行方式下传输数据的开源传输工具,支持多种协议包括:FTP,HTTP,HTTPS,IMAP,POP3,TELNET等。同样支持HTTP POST方法,PUT方法,FTP上传,cookie,用户名/密码认证,下载文件端点续传等,功能十分强大。原创 2014-10-15 13:45:42 · 1503 阅读 · 0 评论 -
linux网桥
linux网桥linux网桥 linux网桥是一种以同种协议连接两个局域网的产品。可以把它看成是一个决定发送的包是到自己的局域网还是到另一个局域网的设备。linux网桥检查局域网上所有的包,在同一个局域网中传送它,如果不是同一个网中的,就将它发到别的网上。目录linux网桥的原理linux网桥的功能linux网桥的使用linux网桥的设转载 2014-09-12 18:41:43 · 1400 阅读 · 0 评论 -
vxlan primer
VXLAN Primer-Part 1http://www.borgcube.com/blogs/2011/11/vxlan-primer-part-1/There has been a lot of chatter in the bloggersphere about the advent of Virtual eXtensible Local AreaNetwork (转载 2014-08-15 16:15:40 · 5595 阅读 · 0 评论 -
bonding
bondingBy Linux Foundatio... - November 19, 2009 - 10:23amnetworkingThe Linux bonding driver provides a method for aggregatingmultiple network interfaces into a single logi转载 2014-08-15 15:37:04 · 2053 阅读 · 0 评论 -
vlan基础
vlanBy Linux Foundatio... - November 19, 2009 - 10:23amnetworkingContents1 Linux vlan implementation2 1. What are vlans ?3 2. Two standards4 2.1 ISL5 2.1 802.1q原创 2014-08-15 15:35:27 · 1530 阅读 · 0 评论 -
Ethernet Bridge + netfilter Howto
Ethernet Bridge +netfilter Howto1.IntroductionEthernet bridges connect twoor more distinct ethernet segments transparently.An ethernetbridge distributes ethernet frames coming in on on转载 2014-08-15 15:01:03 · 3392 阅读 · 0 评论