原创 Nginx取消泛解析
定義兩個“虛擬主機” 第一個定義 listen 80 default; 這個定義裏面沒有server_name 第二個定義 listen 80; 這個定義裏面有server_name 舉例: server {
原创 A script shows server basic information when you log on
1. vi /root/script/start_script.sh #!/bin/bash #Author: Matt Song #Date: 2011/03/20 hostname=`un
原创 Linux shell 除法運算
num1=1 num2=2 num3=`echo "scale=2; ${num1}/${num2}" |bc` .50
原创 使nginx支持PHP
rpm -ivh epel-release-5-4.noarch.rpm yum -y install lighttpd yum -y install lighttpd-fastcgi yum install spawn-fcgi
原创 A simple script for remove users
echo -n "input the user name: " read username echo -n "remove the home directory?[yes/no] " read confirm if [ $confir
原创 Linux下創建指定大小文件
dd if=/dev/sda1 of=/data/test.zip bs=1M count=2500
原创 How to Setup a windows 2008 Failover cluster[01]
Chapter 01: Environment Deployment Author: Matt Song Date: 12/25/2010 Topology: Machine List: Hostname Domain
原创 Deploy vSphere Infrastructure [01]: Environment & Architecture
Author: Matt Song Date: 11/21/2010 In this chapter we are gonna deploy a vSphere infrastructure in virtual enviro
原创 How to Install VM Tools for Linux Platform in VMware Workstation
Author: Matt Song Date: 11/27/2010 This artical mainly show you how to install VM tools for Linux platform in