摘要: vim /sbin/service#!/bin/sh. /etc/init.d/functions #读取环境变量.VERSION="$(basename $0) ver. 0.91" #"service[获取的第一个参数] ver. 0.91"对应后面的"service -V"USAGE="Us... 阅读全文
posted @ 2015-07-13 16:44 arun_yh 阅读(518) 评论(0) 推荐(0) 编辑
摘要: ip="192.168.5.166"ssh $ip -o StrictHostKeyChecking=no //ssh登陆不用输入"yes"port="26092"pid=`netstat -anlp|grep $port|awk '{print $7}'|awk -F"/" '{prin... 阅读全文
posted @ 2015-07-13 15:31 arun_yh 阅读(4434) 评论(0) 推荐(0) 编辑