原创 python SSH登錄遠程主機腳本實例

剛學習python寫的玩的,通過輸入ip地址,關閉遠程主機#!/usr/bin/env python import paramiko  hostname = raw_input("Hostname : ")username = 'user

原创 Jetty安裝腳本

#!/bin/bash #the script is how to install the jetty echo $1 $2 $3 if [ $1 = "" ] || [ $2 = "" ] || [ $3 = "" ];then   

原创 nginx基礎配置

1.安裝 nginx 在安裝之前首先要安裝pcre-7.9.tar.gz     # tar zxvf pcre-7.9.tar.gz       # cd pcre-7.9       # ./configure       # mak

原创 Linux下ifconfig配置IP地址

靜態修改方式: 編輯文件/etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 //設備名稱 BOOTPROTO=static //獲得IP的方式或依賴的協議,可以是static/