随笔分类 - Linux
摘要:若出现 磁盘/映像太小 可以修改写入方式为 RAW
阅读全文
摘要:##############################压缩######################################## 不使用并行time tar -czvf mybak20250124.tar.gz ./mybak20250124real 43m38.657suser 3
阅读全文
摘要:获取主机hostidselect * from hosts where host='redis-1000001' Memory usage##总内存select itemid,name from items where hostid=10636;| 43574 | 可用内存量 || 43575 |
阅读全文
摘要:环境:OS:Centos 7 说明:当前已经升级了openssh的情况下进行升级openssl[root@node2 Python-3.12.7]# ssh -VOpenSSH_9.8p1, OpenSSL 1.1.1w 11 Sep 2023 我之前安装的openssl比较新的版本,比如3.0.1
阅读全文
摘要:1.虚拟机配置桥接模式(与宿主机同个网段) 2.修改网卡配置[root@node2 network-scripts]# more ifcfg-enp0s3 TYPE=EthernetPROXY_METHOD=noneBROWSER_ONLY=noBOOTPROTO=static ##静态,不采用dh
阅读全文
摘要:环境:OS:Centos 6.5 1.查看当前的版本[root@localhost soft]# ssh -VOpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013[root@localhost soft]# 2.下载rpm安装包我们这里计划升级到9.8[roo
阅读全文
摘要:环境:OS:Centos 7 1.安装Telnet服务要在CentOS 6上使用Telnet,需要安装telnet-server包。使用以下命令进行安装:yum install telnet-server [root@localhost ~]# yum -y install xinetd telne
阅读全文
摘要:环境:OS:Centos 7 1.查看当前的ssh和ssl版本[root@localhost ~]# ssh -VOpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 2.下载最新的版本OpenSSH9.8:wget http://down.tag.gg/Op
阅读全文
摘要:环境: OS:Centos 6.9 1.进入到yum配置目录 cd /etc/yum.repos.d 2.备份cp CentOS-Base.repo CentOS-Base.repo.bk 3.下载wget -O CentOS-Base.repo https://mirrors.aliyun.com
阅读全文
摘要:环境:OS:Centos 6 1.查看当前的ssh和ssl版本[root@localhost ~]# ssh -VOpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013 2.下载最新的版本OpenSSH9.8:wget http://down.tag.gg/Op
阅读全文
摘要:环境:Os:Centos 7jenkins:jenkins-2.346-1.1 1.查看当前java版本[root@host134 soft]# java -versionjava version "1.8.0_361"Java(TM) SE Runtime Environment (build 1
阅读全文
摘要:[root@master ~]# yum -y install docker-ce Loaded plugins: fastestmirror, langpacks Determining fastest mirrors Could not retrieve mirrorlist http://mi
阅读全文
摘要:环境:OS:Centos 7 1.当前openssl版本[root@host134 soft]# openssl versionOpenSSL 1.0.2k-fips 26 Jan 2017 2.安装基础依赖 yum install openssl-devel bzip2-devel expat-d
阅读全文
摘要:环境:OS:Centos 7 步骤1: [root@localhost yum.repos.d]# yum install -y yum-utils device-mapper-persistent-data lvm2 Loaded plugins: fastestmirror, langpacks
阅读全文
摘要:1.安装fontconfigyum -y install fontconfig 2.创建chinesem目录/usr/shared/fonts目录下新建一个目录chinese#cd /usr/share/fonts#mkdir chinese 3.上传如下两个文件到目录/usr/share/font
阅读全文
摘要:1.服务器上执行tcpdump -i any -nn port 6379|grep hello 2.服务端执,特定主机和端口的链接(192.168.1.100为客户机器ip)tcpdump -i any -nn host 192.168.1.100 and port 6379|greo hello
阅读全文
摘要:环境:OS:Centos 7 1.安装sftp[root@localhost /]# yum install vsftpd -y 2.启动并设置开机自启[root@localhost ~]# systemctl start vsftpd //启动服务器[root@localhost ~]# syst
阅读全文
摘要:virtualbox在界面上添加了网卡后,开机发现没有相应的网卡文件,可以通过如下命令添加 [root@localhost network-scripts]# nmcli con add con-name enp0s8 type ethernet ifname enp0s8
阅读全文