随笔分类 -  linux基础

摘要:背景: 给甲方做项目,项目申请的服务器资源过剩了,甲方要求服务器资源(CPU、内存、磁盘等)要达到一定的要求,不然就会减配,为了方便后续扩展不考虑减配,直接将使用率提高。 CPU:思路:思路是先将CPU占用率直接上到100%,然后用cpulimit限定进程占用上限;解决方法:1、安装cpumit下载 阅读全文
posted @ 2023-11-30 17:19 小肥猪片儿的小小笔记 阅读(122) 评论(0) 推荐(0)
摘要:问题描述:修改nginx.conf配置文件,提示只读 解决: 方法:在目录下执行:ls -a,输入rm -rf .swp结尾的文件,再编辑可正常保存 阅读全文
posted @ 2023-08-10 13:41 小肥猪片儿的小小笔记 阅读(733) 评论(0) 推荐(0)
摘要:漏洞名称: OpenSSH 输入验证错误漏洞(CVE-2019-16905) 漏洞描述: OpenSSH(OpenBSD Secure Shell)是OpenBSD计划组的一套用于安全访问远程计算机的连接工具。该工具是SSH协议的开源实现,支持对所有的传输进行加密,可有效阻止窃听、连接劫持以及其他网 阅读全文
posted @ 2023-07-13 21:20 小肥猪片儿的小小笔记 阅读(1044) 评论(0) 推荐(0)
摘要:Linux查看glibc版本信息 第一种方法: ldd --version 第二种方法: [root@GHDB /]# ls -l /lib64/libc.so.6lrwxrwxrwx 1 root root 12 Apr 15 2020 /lib64/libc.so.6 -> libc-2.28. 阅读全文
posted @ 2023-07-11 11:33 小肥猪片儿的小小笔记 阅读(4003) 评论(0) 推荐(0)
摘要:使用python命令时提示:bash: python: command not found 查看版本: python --version bash: python: command not found whereis python 创建软链接: ln -s /usr/bin/python3.6 /u 阅读全文
posted @ 2023-07-04 10:53 小肥猪片儿的小小笔记 阅读(788) 评论(0) 推荐(0)
摘要:centos8 防火墙: 一、防火墙服务1、启动、关闭、重启防火墙服务。 systemctl start firewalld.service systemctl stop firewalld.service systemctl restart firewalld.service2、显示防火墙的状态。 阅读全文
posted @ 2023-04-07 11:42 小肥猪片儿的小小笔记 阅读(194) 评论(0) 推荐(0)