dmidecode是一个信息转换工具,能把系统中的硬件信息输出为友好的可读性的信息展现给我们;
月度归档:2014年08月
MEMORY CHECK PLUGIN FOR NAGIOS
Validate Image extensions
we have checked the posted file of the FileUpload and pass it to the IsImageFile() method that returns a Boolean type for checking the actual type of the posted file. If the file contains image extension such as “jpg”, “gif”, “bmp” and “png” then it will return TRUE else it will return false. 继续阅读
mod_pagespeed
mod_pagespeed is an open-source Apache module that automatically optimizes web pages and resources on them. It does this by rewriting the resources using filters that implement web performance best practices. Webmasters and web developers can use mod_pagespeed to improve the performance of their web pages when serving content with the Apache HTTP Server.
mod_pagespeed includes several filter that optimize JavaScript, HTML and CSS stylesheets. It also includes filters for optimizing JPEG and PNG images. The filters are based on a set of best practices known to enhance web page performance. Webmasters who set up mod_pagespeed in addition to configuring proper caching and compression on their Apache distribution should expect to see an improvement in the loading time of the pages on their websites. 继续阅读
使用 ipmitool 远程管理服务器
使用 ipmitool 实现 Linux 系统下对服务器的 ipmi 管理
简介: IPMI 是一种可扩展的标准,它定义了如何监控硬件和传感器、控制系统部件以及记录重大事件,随着 ipmi 技术在服务器中的应用,利用 ipmi 的众多优势就成为服务器管理特别是集群管理中不可缺少的部分。本文首先介绍了 ipmi 的一些基本概念,然后给出了如何利用 ipmitool 这一工具实现 linux 系统中ipmi 管理的具体步骤和方法。 继续阅读
手动注册Microsoft Project Web Access ActiveX控件
获取Linux命令源代码的方法
如果想进一步了解linux系统,熟悉一些系统底层的东西还是非常必要的,我们可以先了解一些linux命令是如何实现相关功能的,那么如何获得命令的源代码呢?本文将详细介绍一下。
下面以获取cat命令的源代码为例说明:
rpm -qif `which cat` 将显示如下信息:
————————————————————————–
Name : coreutils Relocations: (not relocatable)
Version : 5.2.1 Vendor: Red Hat, Inc.
Release : 31.8.el4_7.1 Build Date: 2008年10月23日 星期四 21时04分08秒
Install Date: 2009年04月07日 星期二 10时17分33秒 Build Host: ls20-bc2-14.build.redhat.com
Group : 系统环境/基础 Source RPM: coreutils-5.2.1-31.8.el4_7.1.src.rpm
Size : 7314345 License: GPL
Signature : DSA/SHA1, 2008年10月27日 星期一 22时56分59秒, Key ID 219180cddb42a60e
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : ftp://alpha.gnu.org/gnu/coreutils/
Summary : GNU 核心工具:一组在 shell 脚本中常用的工具。
Description :
这些是 GNU 的核心工具。该软件包是老的 GNUfileutils、sh-utils、
和 textutils 软件包的组合。
————————————————————————– 继续阅读
shell how tos
shell how to主要收集在shell使用过程中遇到的经典案例,或疑难实现以及shell使用技巧等。
1、 shell如何实现逐行读取文件
#!/bin/sh
继续阅读
filepath="/home/test/test.txt"
while read LINE
do
user=`echo $LINE | awk '{print $1}'`
pwd=`echo $LINE | awk '{print $2}'`
done <$filepath
How To Set Up Apache2 With mod_fcgid And PHP5 On Linux
This tutorial describes how you can install Apache2 with mod_fcgid and PHP5 on Fedora 13. mod_fcgid is a compatible alternative to the older mod_fastcgi. It lets you execute PHP scripts with the permissions of their owners instead of the Apache user. 继续阅读
Microsoft Chart Controls
.NET 3.5 发布功能强大的新控件(Winform&WebForm) —— Chart
前言
11月25号,Scott在博客上发布了基于.NET Framework 3.5 SP1的图表控件——Chart,可在WinForm和WebForm下使用!并同时提供了大量的示例…