随笔 - 121
文章 - 0
评论 - 2
阅读 -
68745
随笔分类 - linux
openEuler 安装NVIDIA 显卡驱动
摘要:1、安装显卡驱动编译工具 yum install gcc make kernel-devel -y 2、安装显卡驱动依赖包 yum install vulkan-loader -y 3、安装对应GPU 型号的NVIDIA GPU 驱动 驱动官网:https://www.nvidia.cn/drive
阅读全文
tcping 工具安装
摘要:1、wget -O tcping https://soft.mengclaw.com/Bash/TCP-PING chmod +x tcping mv tcping /usr/bin/ 例子:tcping 10.103.111.4 92000 正常: 异常:
阅读全文
java进程CPU彪高分析
摘要:1、top -Hp 101801 查找对应的线程2、printf "0x%x" 101818 #将线程转为16进制3、jstack 101801 |grep 0x18dba -A5 #jstack工具跟踪堆栈定位代码
阅读全文
SSH 登录机器显示提示信息配置
摘要:1、vim /etc/motd 配置内容如下即可: ********************************************************* 你已成功登录节点,注意你所有的行为都被记录! ** 业务名称:测试 ** 节点类型:K8S集群测试节点 * ************
阅读全文
执行shell 脚本报 error: "karmadactl init" does not take any arguments, got ["\r"]处理方法
摘要:现象:执行shell 脚本报 error: "karmadactl init" does not take any arguments, got ["\r"] 1、分析原因 因为在 Windows 系统中,行尾通常使用回车符(\r)和换行符(\n),而在 Unix 系统中,只使用换行符。当从 Win
阅读全文
centos 主机名不全问题处理
摘要:[root@192 ~]# 主机名不全的问题添加如下参数到环境变量里面即可 添加参数 到/etc/profile,立即生成source !$ export PS1="[\u@\H \W]\$"
阅读全文
主机集群chrony 时间同步服务配置
摘要:背景:centos7+ 支持chrony 时间同步配置,centos8 不支持ntp 时间同步,chrony 配置比ntp 更简单高效 1、chrony server 端配置如下配置需要修改 cat /etc/chrony.conf server time2.aliyun.com minpoll 4
阅读全文
linux 清除buff/cache 缓存
摘要:1、查看缓存命令 free -h 2、清除缓存的命令 echo 1 > /proc/sys/vm/drop_caches echo 2 > /proc/sys/vm/drop_caches echo 3 > /proc/sys/vm/drop_caches echo 0 是不释放缓存echo 1 是
阅读全文
设置宿主机时间问题
摘要:设置系统时间操作步骤 1.timedatectl set-timezone Asia/Shanghai 2.#将当前的 UTC 时间写入硬件时钟 timedatectl set-local-rtc 0 3.#重启依赖于系统时间的服务 systemctl restart rsyslog systemc
阅读全文
openvpn 部署教程
摘要:文章目录 简介 1.环境规划 2.生成证书 2.1下载证书生成工具easy-rsa 2.2 创建证书环境目录 2.3 生成秘钥前,准备vars文件 2.4 初始化 2.5 创建根证书 2.6 创建server端证书和私钥文件 2.7 给server证书签名 2.8 创建Diffie-Hellman文
阅读全文
运行脚本时报 line 1: #!/bin/bash: No such file or directory
摘要:背景:运行脚本是报 line 1: #!/bin/bash: No such file or directory 原因:一般 which bash 文件存在的话,就是dos格式的问题,dos格式要改成 uninx 格式,才能正常运行! 如果我们在windows系统下创建了一个文件,默认的换行格式就是
阅读全文
privoxy 正向代理设置问题
摘要:服务端: 1.yum install privoxy -y (代理服务器)2./etc/privoxy/config 改成 listen-address 0.0.0.0:8118 客户端:1.cat /etc/systemd/system/docker.service.d/proxy.conf [S
阅读全文