随笔分类 - Linux
一些Linux问题的解决方案
摘要:1. 使用Linux的top命令查找CPU占用高的PID 然后使用Java提供的jstack备份快照 top -H jstack 2. 使用阿里巴巴开源的arthas工具 https://arthas.aliyun.com/ thread -n1 上面的命令会找出最高占用CPU的线程,然后打印出相应
阅读全文
摘要:1.安装 rsync远程同步工具 apt install -y rsync 2.配置host映射【略】 vi /etc/hosts 3.配置SSH免密登录 使用SSH远程登陆Linux 4.编写xsync集群分发脚本 vi /usr/bin/xsync #! /bin/bash #1 获取输入参数个
阅读全文
摘要:参考地址:https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/ 1.下载apt Repo https://dev.mysql.com/downloads/repo/apt/ 2.安装Mysql Apt Repo dpkg -i mysql-
阅读全文
摘要:1.安装[可选,如已安装则跳过] apt install ntp 2.启动NTP服务 systemctl start ntpd systemctl enable ntpd 3.查看NTP服务运行状态 systemctl status ntpd 4.修改配置文件 vi /etc/ntpsec/ntp.
阅读全文
摘要:本文以Dotnet 6为例 1.下载 https://dotnet.microsoft.com/zh-cn/download/dotnet/6.0 2.解压 tar -zxvf aspnetcore-runtime-6.0.21-linux-x64.tar.gz 3.配置环境变量 vim /etc/
阅读全文
摘要:参考地址:[Set environment variables from file of key/value pairs](https://stackoverflow.com/questions/19331497/set-environment-variables-from-file-of-key-
阅读全文
摘要:#### 1.选择需要添加的中文字体到一个目录中。 `从Windows中拷贝出需要的字体即可,目录地址:C:\Windows\Fonts` #### 2.编辑Dockerfile,添加中文字体【以dotnet镜像为例,其基于Debian】 ```Dockerfile FROM mcr.microso
阅读全文
摘要:`官方介绍地址:`https://learn.microsoft.com/zh-cn/windows-server/administration/openssh/openssh_install_firstuse ## 安装方式 #### 1.使用设置 -> 应用进行安装  我做了实验 R3G稳定2.2
阅读全文
摘要:## 1.Windows 使用where命令 ```shell where java ```  ## 2
阅读全文
摘要:#### 1.查看是否安装 ```shell dpkg -l|grep sudo ``` #### 2.安装 ###### 1.切换到root用户 ```shell su - root ``` ###### 2.安装sudo ```shell apt-get install sudo ``` ###
阅读全文
摘要:#### 1.下载安装包 https://www.sonatype.com/products/sonatype-nexus-oss-download  ```shell sudo apt install openssh-server -y ``` ##### 3.使用syste
阅读全文
摘要:官方下载地址:https://www.zabbix.com/download 1.下载rpm包 wget -P /home https://repo.zabbix.com/zabbix/6.2/rhel/8/x86_64/zabbix-release-6.2-3.el8.noarch.rpm 2.安
阅读全文