摘要: #!/bin/bash#/usr/local/xxx/bin/xxxx.sh start#/usr/local/xxx/bin/startup.shfor i in `find /server -name start.sh` do fadir=`dirname $i` //读取父目录 cd $fad 阅读全文
posted @ 2016-05-14 23:38 知_行 阅读(1288) 评论(0) 推荐(0) 编辑
摘要: #!/bin/env pythonimport os,sysDir = os.popen("basename /root/day1/myfire.py")print Dir.read().strip('\n') 另一种获取文件名和其路径的方法 在工作中遇到很多ICE启动后进程名都一样,难以分辨,现在 阅读全文
posted @ 2016-05-14 23:35 知_行 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 1,开启root 启用root sudo passwd root 2次输入密码后即可 2,开启root远程 将PermitRootLogin without-password 修改为PermitRootLogin yes 3,设置固定IP vim /etc/network/interfaces if 阅读全文
posted @ 2016-05-14 21:17 知_行 阅读(280) 评论(0) 推荐(0) 编辑