linux shell工具集合
2016-01-10 00:00
513 查看
1)判断进程是否存在,如果不存在再执行启动命令,可以避免一个脚本同时启动多份
2)如何批量kill进程?
3)查看端口
4)查看服务器有没有来源某个ip的连接
5)分析 access log慢请求
6)查看服务状态
原文地址:
linux shell工具集合
【改变mysql 日志位置Bug】Could not use mysql.log for logging (error 13)
最有用的Linux命令行使用技巧集锦
我的Mac软件集
IOS 移除storyboard
if [ $(ps -ef |grep bastion_account.sh|grep -v grep|wc -l) -eq 0 ];then nohup sh bastion_account.sh & fi
2)如何批量kill进程?
ps -ef|grep 'python' |grep -v grep| awk '{print $2}’ | xargs kill -9
3)查看端口
netstat -lnpt 查看服务 ss -e 查看所有的连接数
4)查看服务器有没有来源某个ip的连接
netstat -anpl |grep '192.168.10.15'
5)分析 access log慢请求
cat access.log | awk ' $1>0.5 {print $1,$12}'
6)查看服务状态
service --status-all
原文地址:
linux shell工具集合
智能推荐
开启 NFS 文件系统提升 Vagrant 共享目录的性能【改变mysql 日志位置Bug】Could not use mysql.log for logging (error 13)
最有用的Linux命令行使用技巧集锦
我的Mac软件集
IOS 移除storyboard
相关文章推荐
- bash学习前方
- 用Xshell连接 VMware的cent OS 系统过程
- -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
- linux bash 自动补全功能
- -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such fi
- Windows下写shell脚本到Linux下执行遇到的问题及解决方案
- erlang接入远程shell
- Shell 排序大文件
- 给shell脚本中加上执行日志
- shell 简介 编程 应用
- 利用commands模块执行Linux shell命令
- ovirt-shell 使用
- ssh信任,scp远程到本地不输密码
- awk与shell变量互相赋值
- -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
- HDFS Shell 常用命令
- Linux FTP Shell
- RHEL / CentOS Bash命令自动完成功能
- linux在shell中获取时间
- shell export 作用