
linux
jinhuazhe2013
Dream, Dare, Do!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【转】Linux 系统如何通过 netstat 命令查看连接数
很多时候我们会遇到服务器遭受 cc 或 syn 等攻击,如果发现自己的网站访问异常缓慢且流量异常。可以使用系统内置 netstat 命令 简单判断一下服务器是否被攻击。常用的 netstat 命令 该命令将显示所有活动的网络连接。 netstat -na 查看同时连接到哪个服务器 IP 比较多,cc 攻击用。使用双网卡或多网卡可用。 netstat -an|awk '{print $4}'|sort|uniq -c|sort -nr|head 查看哪些 IP 连接到服务器连接多,可以查看连接异常 IP转载 2021-08-11 09:51:15 · 2208 阅读 · 1 评论 -
如何免密ssh登录服务器
How to Add SSH Public Key to Server *Public key authentication allows you to access a server via SSH without password. Here are two methods to copy the public ssh key to the server.* I believe you understand the basic SSH concept. Your Linux server has ssh转载 2020-08-18 18:48:37 · 504 阅读 · 0 评论 -
【转】Linux 下文件删除后仍然占用空间的问题
原文:https://blog.csdn.net/zhaojian1988/article/details/40376771 在 Linux 中,当我们使用 rm 删除了大文件,但是如果有进程打开了这个大文件,却没有关闭这个文件的句柄, 那么 Linux 内核还是不会释放这个文件的磁盘空间,最后造成磁盘空间占用 100%,整个系统无法正常运行。 这种情况下,通过 df 和 du 命令查找的磁盘空间...转载 2019-05-09 14:51:22 · 5935 阅读 · 0 评论 -
linux常用命令
linux下查看最消耗CPU、内存的进程 1.CPU占用最多的前10个进程: ps auxw|head -1;ps auxw|sort -rn -k3|head -10 2.内存消耗最多的前10个进程 ps auxw|head -1;ps auxw|sort -rn -k4|head -10 3.虚拟内存使用最多的前10个进程 ps auxw|head -1;ps auxw|sort -rn -k...原创 2019-05-23 10:53:45 · 165 阅读 · 0 评论 -
system环境检查
[root@m01 ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@m01 ~]# uname -r 3.10.0-693.el7.x86_64 [root@m01 ~]# getenforce Disabled [root@m01 ~]# systemctl status firewalld.servi...原创 2019-06-03 18:06:56 · 180 阅读 · 0 评论 -
linux命令grep:根据文件内容查询文件
grep -r sgx_enclave_id_t ./ grep -rnw ‘/path/to/somewhere/’ -e ‘pattern’ -r or -R is recursive, -n is line number, and -w stands for match the whole word. -l (lower-case L) can be added to just give t...原创 2019-08-19 09:45:02 · 482 阅读 · 0 评论