use fabric deploy guoku online servers

first: install fabric

$sudo easy_install fabric
or 
$sudo pip install fabric

second: write fabfile for restart apache and save to fibfile.py

#!/usr/bin/env python
# encoding: utf-8

from fabric.api import run

def reload_apache():
    run("sudo /etc/init.d/apache reload")

finally: use fabric

$fab -u user -H 192.168.1.100 -f fibfile.py reload_apache
out
[192.168.1.100] Executing task 'reload_apache'
[192.168.1.100] run: sudo /etc/init.d/apache reload

Done.
Disconnecting from 192.168.1.100... done.