0 Star 0 Fork 0

RunAtWorld / runatworld.github.io

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sre.md 2.00 KB
一键复制 编辑 原始数据 按行查看 历史
RunAtWorld 提交于 2020-02-18 22:38 . 目录调整

SRE面试题

  1. 实现WEB流量负载均衡的方式有哪些?描述其工作原理及优缺点
  2. 查看redhat或centos系统版本的命令
cat /proc/version
lsb_release
cat /etc/os-release
cat /etc/redhat-release
  1. 查看 Linux 启动信息的命令
dmesg | more
  1. 查看 CPU 型号的命令
cat /proc/cpuinfo | grep 'name' | cut -f2 -d : |uniq -c

输出了 CPU 型号及其 core 数

2  Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz
  1. 查看 CPU Core 数
cat /proc/cpuinfo | grep 'cores' | uniq
  1. 查看进程及其CPU使用率,并查看进程的目录

  2. 根据端口号查找进程启动bin

  • 方法1: 使用 netstat -apn | grep {端口号} 查找到 pid , 使用 ps -aux | grep {pid} 启动的cmd , cmd 里有启动的bin文件 【如果使用的是相对路径启动的,则使用方法2】
  • 方法2: 使用 netstat -apn | grep {端口号} 查找到 pid , 使用 'll /proc/{pid}' 查看 exe 文件对应的软链接即为启动的bin文件
  1. 如何修改 kernel 参数,修改 kernel 参数有什么作用,请举一例

  2. 如何分析 nginx 日志,写出过程及使用工具

  3. 讲出网线连线顺序

568A: 白绿 、绿 、白橙 、蓝 、白蓝、橙 、白棕、棕
568B: 白橙 、橙 、白绿 、蓝 、白蓝、绿 、白棕、棕 【白程程把驴拦下来,白拦了驴,等到胡子白淙淙】
  1. 编写一个简单的 nginx 启动脚本,放在 /etc/init.d 下面(nginx目录,nginx配置文件,pid文件自定义即可)

  2. 写出接触过的所有监控工具,描述其优缺点

  3. 有用户反映网站访问很慢,请给出排查过程和解决办法,需要哪些帮助?

  4. 描述用户从输入 http://www.baidu.com 到最后页面显示的过程

  5. 描述用户访问 http://www.baidu.com 缓存的使用


@RunAtWorld的csdn @RunAtWorld的github

1
https://gitee.com/RunAtWorld/runatworld.github.io.git
git@gitee.com:RunAtWorld/runatworld.github.io.git
RunAtWorld
runatworld.github.io
runatworld.github.io
master

搜索帮助