随笔分类 -  linux

摘要:https://cloud.tencent.com/developer/article/1792750 阅读全文 »
posted @ 2025-01-14 10:43 忧伤恋上了快乐 编辑
摘要:https://blog.csdn.net/qq_32923745/article/details/78286385 阅读全文 »
posted @ 2024-12-13 15:21 忧伤恋上了快乐 编辑
摘要:一、LVS-DR数据包流向分析 1、为方便进行原理分析,将client与群集机器放在同一网络中,数据包流经的路线为1-2-3-4 2.、client 向目标VIP发出请求,Director(负载均衡器)接收3.、Director根据负载均衡算法选择RealServer_1,不修改也不封装IP报文,而 阅读全文 »
posted @ 2024-11-04 16:44 忧伤恋上了快乐 编辑
摘要:[root@jenkins-server ~]# wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo -O /etc/yum.repos.d/docker-ce.repo [root@jenkins-server 阅读全文 »
posted @ 2024-07-11 14:37 忧伤恋上了快乐 编辑
摘要:https://blog.csdn.net/ly7472712/article/details/114299133 阅读全文 »
posted @ 2024-04-30 12:24 忧伤恋上了快乐 编辑
摘要:https://www.cnblogs.com/kk8085/articles/17227008.html 1、先查看磁盘分区是否是lvm格式 执行lsblk命令,可以看到root为lvm类型,表示磁盘可以扩容 2、查看磁盘容量 执行fdisk -l 可以看到有一个500多G的盘没有使用 3、新建分 阅读全文 »
posted @ 2024-04-29 17:46 忧伤恋上了快乐 编辑
摘要:#!/bin/bash ############################################################################################# # 用途:CentOS7.5 内核版本升级 # 作者:Dy1an<1214966109@ 阅读全文 »
posted @ 2024-04-23 17:40 忧伤恋上了快乐 编辑
摘要:Linux fdisk命令简介 Linux fdisk 是一个创建和维护分区表的程序,它兼容 DOS 类型的分区表、BSD 或者 SUN 类型的磁盘列表。 # fdisk --help fdisk:无效选项 -- - 用法: fdisk [选项] <磁盘> 更改分区表 fdisk [选项] -l < 阅读全文 »
posted @ 2024-04-23 11:05 忧伤恋上了快乐 编辑
摘要:https://blog.csdn.net/weixin_46560589/article/details/126465198 分区步骤 1.添加新的磁盘如果是自己的虚拟机,则手动添加磁盘(后续操作省略不写): 2.查看新的磁盘 # 查看当前系统的分区情况:root@fbi:~# fdisk -l 阅读全文 »
posted @ 2024-04-23 10:25 忧伤恋上了快乐 编辑
摘要:https://cloud.tencent.com/developer/article/2165428 Linux-Redhat系统更改系统时区 [root@localhost ~]# date #查看本地时间 Thu May 19 23:41:32 EDT 2022 [root@localhost 阅读全文 »
posted @ 2024-03-25 17:12 忧伤恋上了快乐 编辑
摘要:WORK_DIR=$(cd $(dirname $0); pwd) bash 如何获取当前文件的绝对路径 WORK_DIR : 变量,后续可用; $(dirname $0) : 获取shell脚本所处的文件夹路径; cd $(dirname $0) : 切换到shell脚本所处的文件夹; cd $( 阅读全文 »
posted @ 2023-08-17 10:01 忧伤恋上了快乐 编辑
摘要:免密登录命令:1.进入.ssh目录: cd ~/.ssh 2.生成一对密钥: ssh-keygen -t rsa 3.发送公钥: ssh-copy-id 192.168.xx.xxx 4.免密登录测试: ssh 192.168.xx.xxx 目录 一、免密登录原理 二、配置ssh 1.查看 .ssh 阅读全文 »
posted @ 2023-03-24 11:18 忧伤恋上了快乐 编辑
摘要:写在前面awk命令求极值和均值需要熟悉该命令的基本用法,如果你不熟悉该命令,请先阅读shell脚本之awk命令——分隔符介绍一文。本篇博文带你熟悉求平均值、最大值、最小值的方法,并以实际的应用带你进一步掌握awk的高级用法。以下为求平均值、最大值、最小值用到的文件data,使用cat data查看内 阅读全文 »
posted @ 2023-03-15 17:53 忧伤恋上了快乐 编辑
摘要:https://www.codenong.com/cs106725225/ 阅读全文 »
posted @ 2023-02-22 17:00 忧伤恋上了快乐 编辑
摘要:https://blog.csdn.net/m0_52165864/article/details/127961271 阅读全文 »
posted @ 2023-02-22 11:01 忧伤恋上了快乐 编辑
摘要:CentOS 7安装Java17或者8以及Tomcat10或者9 阅读全文 »
posted @ 2023-02-20 10:37 忧伤恋上了快乐 编辑
摘要:https://www.bilibili.com/read/cv16258140 大规模Windows环境下,采用Nginx反向代理服务后,操作系统会产生较多TIME_WAIT的TCP(Transmission Control Protocol)连接,操作系统默认TIME_WAIT的TCP连接回收时 阅读全文 »
posted @ 2022-12-27 10:54 忧伤恋上了快乐 编辑
摘要:https://blog.csdn.net/asty9000/article/details/81536441 sysctl -a |grep keepalive 发现为默认的配置 net.ipv4.tcp_keepalive_time = 7200 net.ipv4.tcp_keepalive_p 阅读全文 »
posted @ 2022-12-26 16:54 忧伤恋上了快乐 编辑
摘要:1 #登录 2 su - oracle 3 sqlplus "/as sysdba" 4 #查询数据库版本 5 SQL> select * from v$version; 6 #查询当前数据库进程的连接数 7 SQL> select count(*) from v$process; 8 #数据库允许 阅读全文 »
posted @ 2022-12-23 15:51 忧伤恋上了快乐 编辑

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