Skip to content

Instantly share code, notes, and snippets.

@zuoRambo
Last active June 12, 2016 13:09
Show Gist options
  • Save zuoRambo/feb67778a7c1e6ec4190180f5ed05fd3 to your computer and use it in GitHub Desktop.
Save zuoRambo/feb67778a7c1e6ec4190180f5ed05fd3 to your computer and use it in GitHub Desktop.
Linux skills
vim /etc/inittab

SU:2345:respawn:/usr/bin/supervisord -c /etc/supervisord.conf

#使其生效
init q 

strace 查看统计系统调用

strace -p `cat /var/run/nginx.pid`
strace -T ./exec_file  //显示每一调用的耗时
strace -e trace=set|file|process|network|signal|ipc //设定跟踪的类型
strace -c //生成统计信息
strace -s 1024 //截断输出字符串长度
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment