![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
文章平均质量分 77
zs12344444
计算机专业的学生
展开
-
Basics of telnet and http
Basics of telnet and HTTPSay you want to request a webpage… Normally, one would use a web browser, right? But sometimes you just need to see what is really going on… In this blog post I will sh转载 2013-07-06 00:12:52 · 881 阅读 · 0 评论 -
Add new disk via LVM in linux
An Overview of Logical Volume Management (LVM)LVM provides a flexible and high level approach to managing disk space. Instead of each disk drive being split into partitions of fixed sizes onto whi转载 2013-03-13 22:11:08 · 1020 阅读 · 0 评论 -
How to add new partition in centos
Mounted File Systems or Logical VolumesThere are two ways to configure a new disk drive into a CentOS system. One very simple method is to create one or more Linux partitions on the new drive, c转载 2013-03-13 16:24:48 · 1157 阅读 · 0 评论 -
How to Install RSyslog+MySQL with LogAnalyzer on CentOS
Gathering information message is important on Data Center, in some situations you’ll want to store all entries of logfiles on another server. If a server crashes or gets hacked it will be able to trac转载 2013-03-01 07:31:28 · 616 阅读 · 0 评论 -
X Over SSH2 - A Tutorial
Introduction:Have you ever wanted to run a graphical application securely and remotely with Linux or Unix? How about from a Microsoft Windows PC to a Linux/UNIX host? This tutorial is about X, S转载 2013-03-12 09:11:30 · 1426 阅读 · 0 评论 -
DNS Queries & Resolution Process and Response
IntroductionThis section will help you understand how the DNS queries work on the Internet and your home network. There are two ways to use the domain name system in order to resolve a host or dom转载 2013-02-27 17:01:21 · 1139 阅读 · 0 评论 -
Bash Scripting and Nagios plugin
ntERLab at AIT: Network Management WorkshopPart 1: Create a a Nagios Plug-in Part 2: Set Up Nagios Notification for our New Plug-in Part 3: Update Our Plug-in for any Number of Hosts转载 2013-02-16 15:36:56 · 403 阅读 · 0 评论 -
nagios python template
Python Nagios Plugin TemplateArchivado en: python, nagios — Etiquetas: python, bash — Ruben @ 11:51This is a very simple nagios plugin template.Just run it this way:$ python template.p转载 2013-02-15 15:42:03 · 703 阅读 · 0 评论 -
nagios remote monitoring nrpe vs ssh
We use Nagios to monitor quite a few (~130) servers. We monitor CPU, Disk, RAM and a few other things on each server. I've always used SSH to run the remote commands, purely because it requires little转载 2013-02-10 15:05:21 · 538 阅读 · 0 评论 -
witre nagios plugin with python
Our Solarwinds Network Performance Monitor has a problem rendering custom reports on occasion. For something like that, there isn't an existing plugin for Nagios. Writing these plugins is easy. All th转载 2013-02-15 15:39:40 · 453 阅读 · 0 评论 -
Remotely monitor servers with the Nagios check_by_ssh plugin
Takeaway: If you are using Nagios to monitor remote servers, you have more than one method to execute checks, including the use of the check_by_ssh plugin. Vincent Danen tells you how to set up this转载 2013-02-10 18:30:06 · 622 阅读 · 0 评论 -
linux 技巧:使用 screen 管理你的远程会话
你是不是经常需要 SSH 或者 telent 远程登录到 Linux 服务器?你是不是经常为一些长时间运行的任务而头疼,比如系统备份、ftp 传输等等。通常情况下我们都是为每一个这样的任务开一个远程终端窗口,因为他们执行的时间太长了。必须等待它执行完毕,在此期间可不能关掉窗口或者断开连接,否则这个任务就会被杀掉,一切半途而废了。元凶:SIGHUP 信号让我们来看看为什么关掉窗口/断转载 2013-02-08 20:53:41 · 301 阅读 · 0 评论 -
Install nagios on linux
http://assets.nagios.com/downloads/nagioscore/docs/Installing_Nagios_Core_From_Source.pdf-----------------------------------The Industry Standard in IT Infrastructure MonitoringPurposeThis d转载 2013-01-21 11:36:20 · 361 阅读 · 0 评论 -
How to change screen resolution in redhat
look for a section called Screen in /etc/X11/xorg.conf, which will have a line likeCode:Mode"800x600" "600x480"change it toCode:Mode "1024x768" "800x600"4) save the file and restart转载 2013-02-05 09:37:39 · 322 阅读 · 0 评论 -
md5sum
md5sum [OPTION]... [FILE]... [功能] linux 下 shell命令 ,制作md5码 也用于软件的md5校验[描述] MD5算法常常被用来验证网络文件传输的完整性,防止文件被人篡改。MD5 全称是报文摘要算法(Message-Digest Algorithm 5),此算法对任意长度的信息逐位进行计算,产生一个二进制长度为128位(十六进制长度就转载 2013-01-17 11:56:09 · 520 阅读 · 0 评论 -
SNMP(MIB(OID)& SMI & SNMP)
Simple Network Management Protocol (SNMP) is an "Internet-standard protocol for managing devices on IP networks. It is used mostly in network management systems to monitor network-attached devices for转载 2013-01-16 14:30:00 · 1838 阅读 · 0 评论 -
grep practise
First create the following demo_file that will be used in the examples below to demonstrate grep command.$ cat demo_fileTHIS LINE IS THE 1ST UPPER CASE LINE IN THIS FILE.this line is the 1st low转载 2013-03-02 09:36:19 · 392 阅读 · 0 评论 -
LINUX下多路径(multi-path)介绍及使用
一、什么是多路径普通的电脑主机都是一个硬盘挂接到一个总线上,这里是一对一的关系。而到了有光纤组成的SAN环境,或者由iSCSI组成的IPSAN环境,由于主机和存储通过了光纤交换机或者多块网卡及IP来连接,这样的话,就构成了多对多的关系。也就是说,主机到存储可以有多条路径可以选择。主机到存储之间的IO由多条路径可以选择。每个主机到所对应的存储可以经过几条不同的路径,如果是同时使用的话,I/O转载 2013-03-14 11:56:04 · 6988 阅读 · 0 评论 -
How to verify ntp service properly or not in linux/unix
This article is all about verifying that your NTP setup is working properly. Normally I use some monitoring tool like nagios to monitor NTP status and alert me if time on my server goes out of sync. H转载 2013-07-13 21:50:26 · 1066 阅读 · 0 评论 -
Linux之RHEL6的开机流程分析
开机——很多人觉得很简单的事情,只要按下电源开关,然后系统就会自然启动,没有什么需要学习的。其实不然,如果系统没有什么问题,可以正常登陆的时候,当然开机很简单。但更多的时候,我们需要知道当机子不能正常开机的如何解决,这才是我们学习的目的。那么我们就来分析一下Linux的开机流程简单来说,系统开机的过程可以汇整成下面的流程:1.加载BIOS的硬件信息、进行自我测试,并依据设定获得第一转载 2013-05-26 12:40:47 · 1296 阅读 · 0 评论 -
Configure Shared Storage for Redhat Linux Servers using iSCSI Technology
Networking between Target and Initiator Nodes:Edit '/etc/hosts':Edit '/etc/hosts' of both the iSCSI Target(SAN) and iSCSI Initiator(RACNODE1) and add the following entries:192.168.15转载 2013-05-22 14:24:26 · 793 阅读 · 0 评论 -
Linux NFS服务器的安装与配置
一、NFS服务简介 NFS 是Network File System的缩写,即网络文件系统。一种使用于分散式文件系统的协定,由Sun公司开发,于1984年向外公布。功能是通过网络让不同的机器、不同的操作系统能够彼此分享个别的数据,让应用程序在客户端通过网络访问位于服务器磁盘中的数据,是在类Unix系统间实现磁盘文件共享的一种方法。 NFS 的基本原则是“容许不同的客户端及服务端转载 2013-05-21 17:31:20 · 517 阅读 · 0 评论 -
Checking a server’s SSH host fingerprint with the web console
Before you dismiss that error message about your server’s SSH host key changing, follow this simple procedure to make sure all is as it should be.Explaining the host keyOne of the fundamen转载 2013-05-06 09:01:20 · 1588 阅读 · 0 评论 -
Disk Quotas
Disk Quotas: This feature of Linux allows the system administrator to allocate a maximum amount of disk space a user or group may use. It can be flexible in its adherence to the rules assigned and i转载 2013-05-17 07:43:47 · 839 阅读 · 0 评论 -
How to Install Apache 2.4.2 from Source on CentOS 6.2 with SSL
http://www.thegeekstuff.com/2012/05/install-apache-2-on-centos-6/f you try to follow the how to install Apache with SSLarticle that we discussed a while back, you’ll face an issue during “make”转载 2013-04-19 11:53:11 · 1016 阅读 · 0 评论 -
Log file and logwatch
Chapter 4. Analyzing and Managing System Log Files¶Contents4.1. System Log Files in /var/log/4.2. Viewing and Parsing Log Files4.3. Managing Log Files with logrotate4.4. Monitoring Log Files w转载 2013-03-26 09:54:14 · 720 阅读 · 0 评论 -
Top 30 Nmap Command Examples For Sys/Network Admins
by NIXCRAFT on NOVEMBER 26, 2012 · 8 COMMENTS· LAST UPDATED DECEMBER 11, 2012in COMMAND LINE HACKS, HOWTO, NETWORKING, SECURITYNmap is short for Network Mapper. It is an open sourc转载 2013-03-26 09:28:20 · 1075 阅读 · 0 评论 -
CentOS reset root password
You forgot your root password. Nice work. Now you'll just have to reinstall the entire machine. Sadly enough, I've seen more than a few people do this. But it's surprisingly easy to get on the machine转载 2013-04-09 09:17:08 · 883 阅读 · 0 评论 -
iptables usage
1. Delete Existing RulesBefore you start building new set of rules, you might want to clean-up all the default rules, and existing rules. Use the iptables flush command as shown below to do this转载 2013-04-07 22:48:38 · 618 阅读 · 0 评论 -
Round-Robin负载均衡算法及其实现原理& Linux下双网卡绑定bond0
毫无疑问,随着互联网、移动网络接入成本的降低,互联网正在日益深入地走入我们的生活,越来越成为人们获取信息的高效平台,ICP行业也顺势呈现出强劲的成长趋势,成为互联网迅猛发展形势下最大的受益者,也直接促成了从web1.0到web2.0以及社区、博客、视频等一系列互联网时代的更迭和运营模式的变动。 但是随着各站点访问量和信息交流量的迅猛增长,如何使用最小的资源成本,提高网络的效率,最优化用户体验转载 2012-12-07 13:36:32 · 10668 阅读 · 0 评论 -
tcpdump usage
tcpdump command is also called as packet analyzer.tcpdump command will work on most flavors of unix operating system. tcpdump allows us to save the packets that are captured, so that we can use it转载 2013-03-31 22:05:22 · 705 阅读 · 0 评论 -
screen
sing Linux Screen for Session ManagementLost your shell connection? Need multiple shell sessions?You are logged into your remote server via SSH and happily plucking along at your keyboard and转载 2013-03-17 23:27:49 · 774 阅读 · 0 评论 -
linux NFS suage
These are systems administration type tasks and must be done as root (su - to root, or sudo) http://www.wikihow.com/Share-Files-Between-Linux-Computers-Using-NFS http://tldp.org/HOW转载 2013-03-15 19:41:42 · 731 阅读 · 0 评论 -
RedHat / CentOS Install and Configure Cacti Network Graphing Tool
Cacti is a network graphing tool similar to MRTG. How do I install and configure common options to collect SNMP data and various other data (such as system load, network link status, hard disk space转载 2013-01-16 13:54:44 · 506 阅读 · 0 评论 -
login shell vs non-login shell
今天遇到的问题,通过su命令切换用户并没有进入该用户的shell环境。这是为什么?先介绍login shell和non-login shell概念:login shell:去的bash时需要完整的登录流程。就是说通过输入账号和密码登录系统,此时取得的shell称为login shellnon-login shell:取得sbash接口的方法不需要重复登录的举动。如以X Wi转载 2013-01-10 16:28:29 · 420 阅读 · 0 评论 -
extundelete usage
Reference: http://extundelete.sourceforge.net/http://www.gnutoolbox.com/extundelete/About extundeleteextundelete is a utility that can recover deleted files from an ext3 or ext4 partit转载 2012-11-05 13:02:54 · 2280 阅读 · 0 评论 -
How to reset password in ubuntu
There are many reasons you might want to reset a password:Someone gave you a computer with Ubuntu installed on it but not the password for the user account.You just installed Ubuntu and forgot wha转载 2012-10-26 19:12:29 · 790 阅读 · 0 评论 -
Difference between ssh and telnet
使用Telnet这个用来访问远程计算机的TCP/IP协议以控制你的网络设备相当于在离开某个建筑时大喊你的用户名和口令。很快会有人进行监听,并且他们会利用你安全意识的缺乏。传统的网络服务程序如:ftp、pop和telnet在本质上都是不安全的,因为它们在网络上用明文传送口令和数据,别有用心的人非常容易就可以截获这些口令和数据。而且,这些服务程序的安全验证方式也是有其弱点的,就是很容易受到“中间人”(转载 2012-09-26 14:04:38 · 396 阅读 · 0 评论 -
apache knowlege
Available Languages: en | fr | ja | ko | tr What is IP-based virtual hostingSystem requirementsHow to set up ApacheSetting up multiple daemonsSetting up a single daemon wi转载 2012-09-10 22:13:52 · 306 阅读 · 0 评论 -
linux ulimit
March 4, 2012Number of Open Files UbuntuOn Linux you are limited to the number of files you can have open at one time. This note tells how to determine the number of open files on Ubuntu转载 2012-09-08 21:20:15 · 995 阅读 · 0 评论