
效率
牛仔好鬼忙
Hope is a good thing, maybe the best of things and no good thing ever dies!
展开
-
运维神器-supervisor使用指南
简介 supervisor是用Python开发的一个client/server服务,是Linux/Unix系统下的一个进程管理工具。可以很方便的监听、启动、停止、重启一个或多个进程。用supervisor管理的进程,当一个进程意外被杀死,supervisor监听到进程死后,会自动将它重启,很方便的做到进程自动恢复的功能,不再需要自己写shell脚本来控制。 安装 注意 supervisor 已经支持python3了。 pip install supervisor 或者 easy_install supe原创 2020-05-19 14:11:21 · 1962 阅读 · 0 评论 -
linux ls命令使用
文件按文件大小从小排列 ls -lhS 文件按时间原创 2014-10-26 13:03:09 · 608 阅读 · 0 评论 -
shell 文件名替换
#!/bin/sh dir=/d/code/css/ for file_name in $(ls -1 $dir); do if [ -f $dir$file_name ]; then dst_name=${file_name//bootstrap/bootstrap.panel} cp $dir$file原创 2014-10-29 13:28:05 · 1773 阅读 · 0 评论 -
expect 使用心得
安装软件 yum install expect 例子 ssh自动登录原创 2014-10-21 20:39:48 · 2185 阅读 · 0 评论