![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Shell
常用Shell 命令收集
congcong_2008
这个作者很懒,什么都没留下…
展开
-
检查Linux 服务器是否绑核
1)for procid in $(ps -ef|grep -v grep|awk '{print $2}');do taskset -cp $procid;done 2)ps -ef|grep -v grep|awk '{print $2}'|xargs -n 1 taskset -cp原创 2019-12-31 09:42:52 · 346 阅读 · 0 评论 -
Linunx 得到服务器的IP
ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'原创 2019-12-31 09:40:23 · 116 阅读 · 0 评论