随笔分类 -  Linux

CentOS7
摘要:curl -O https://ftp.openssl.org/source/openssl-1.1.1k.tar.gz \ && tar xf openssl*.gz \ && cd openssl* \ && ./config --prefix=/usr --openssldir=/etc/ss 阅读全文
posted @ 2024-01-19 11:23 LeoShi2020 阅读(284) 评论(0) 推荐(0) 编辑
摘要:# 杀死带有‘python’关健字的所有进程 # grep -v 过滤掉 'color'关健字的进程 kill -9 `ps -aux | grep python | grep -v color | awk '{print $2}'` 阅读全文
posted @ 2023-03-30 09:51 LeoShi2020 阅读(16) 评论(0) 推荐(0) 编辑
摘要:echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf sysctl -p 阅读全文
posted @ 2022-09-20 19:46 LeoShi2020 阅读(348) 评论(0) 推荐(0) 编辑
摘要:yum -y install deltarpm 阅读全文
posted @ 2022-09-06 16:44 LeoShi2020 阅读(32) 评论(0) 推荐(0) 编辑
摘要:[root@SRV1 ~]# free -h total used free shared buff/cache available Mem: 31G 2.4G 224M 33M 28G 28G Swap: 2.0G 2.0M 2.0G [root@SRV1 ~]# sync [root@SRV1 阅读全文
posted @ 2022-09-06 16:43 LeoShi2020 阅读(417) 评论(0) 推荐(0) 编辑
摘要:1. 问题 [root@localhost ~]# yum install https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm Repository extras is listed more than once in the 阅读全文
posted @ 2022-08-31 18:30 LeoShi2020 阅读(1700) 评论(0) 推荐(0) 编辑
摘要:mkfs.xfs -K /dev/sdx 阅读全文
posted @ 2022-08-24 08:59 LeoShi2020 阅读(261) 评论(0) 推荐(0) 编辑
摘要:1. 添加repo库 yum -y install https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm 2. 导入签名 rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo 阅读全文
posted @ 2022-08-14 20:48 LeoShi2020 阅读(1028) 评论(0) 推荐(1) 编辑
摘要:1. 查找软件支持的版本 yum --showduplicates list <软件名称> 2. 安装指定的版本 [root@localhost ~]# yum --showduplicates list kubelet | grep 1.21.1 kubelet.x86_64 1.21.1-0 k 阅读全文
posted @ 2022-08-12 21:11 LeoShi2020 阅读(249) 评论(0) 推荐(0) 编辑
摘要:1. 生成证书 ssh-keygen -b 2048 -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Created directory ' 阅读全文
posted @ 2022-08-10 17:03 LeoShi2020 阅读(47) 评论(0) 推荐(0) 编辑
摘要:SSH9.0 RPM安装包制作 cat > 01-ssh9.0-upgrade.sh << 'EOF' #!/bin/bash # 1. 安装依赖 yum install -y rpm-build gcc gcc-c++ glibc glibc-devel openssl-devel openssl 阅读全文
posted @ 2022-06-25 17:04 LeoShi2020 阅读(676) 评论(0) 推荐(0) 编辑
摘要:1. 扩容sdc [root@DB2 ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdc 8:32 0 200G 0 disk └─sdc1 8:33 0 200G 0 part └─centos-root 253:0 0 1.2T 0 lvm 阅读全文
posted @ 2021-09-25 12:11 LeoShi2020 阅读(429) 评论(0) 推荐(0) 编辑
摘要:1. ES Docker启动错误需要优化Linux系统 echo "vm.max_map_count = 262144" > /etc/sysctl.d/99-docker-desktop.conf sysctl -p 阅读全文
posted @ 2021-09-13 10:28 LeoShi2020 阅读(188) 评论(0) 推荐(0) 编辑
摘要:1. 创建窗口并重命名 screen -S <pyenv> 2. 强制删除窗口 screen -X -S <screen id> quit 3. Attached状态登录 screen -D -r <screen id> 4. 开启日志记录 # 创建日志文件夹 mkdir /var/log/scre 阅读全文
posted @ 2021-09-08 17:36 LeoShi2020 阅读(850) 评论(0) 推荐(0) 编辑
摘要:1. 安装rar工具 yum install rar -y 2. 解压缩文件到当前目录 rar e <压缩包.rar> rar e huaweiusg6kv-usg.rar 3. 解压缩带路径 rar x huaweiusg6kv-usg.rar END 阅读全文
posted @ 2021-08-22 22:07 LeoShi2020 阅读(69) 评论(0) 推荐(0) 编辑
摘要:1. 下载安装包 pip download -d <包路径> <包名称> pip download -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com -d paramiko paramiko 2. 安装依赖包 pip i 阅读全文
posted @ 2021-08-16 11:09 LeoShi2020 阅读(222) 评论(0) 推荐(0) 编辑
摘要:1. 下载地址 curl -O https://packages.microsoft.com/rhel/7/prod/powershell-7.1.3-1.rhel.7.x86_64.rpm 2. 安装依赖 yum install -y libicu 3. 安装powercli rpm -ivh p 阅读全文
posted @ 2021-08-12 16:14 LeoShi2020 阅读(413) 评论(0) 推荐(1) 编辑
摘要:1. 修改转发配置文件 echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf 2. 配置文件生效 sysctl -p 3. 配置防火墙 --add-forward-port=port=<portid>[-<portid>]:proto=<protocol> 阅读全文
posted @ 2021-08-10 23:56 LeoShi2020 阅读(425) 评论(0) 推荐(0) 编辑
摘要:抓取源ip是10.10.10.122数据包。 # tcpdump -i eth0 -vnn src host 10.10.10.122 抓取目的ip是10.10.10.122数据包 # tcpdump -i eth0 -vnn dst host 10.10.10.122 阅读全文
posted @ 2021-07-14 11:45 LeoShi2020 阅读(192) 评论(0) 推荐(0) 编辑
摘要:yum install epel-release yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm yum install ffmpeg 阅读全文
posted @ 2021-06-13 11:06 LeoShi2020 阅读(71) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示