随笔分类 -  Linux

一些Linux问题的解决方案
摘要:1. 使用Linux的top命令查找CPU占用高的PID 然后使用Java提供的jstack备份快照 top -H jstack 2. 使用阿里巴巴开源的arthas工具 https://arthas.aliyun.com/ thread -n1 上面的命令会找出最高占用CPU的线程,然后打印出相应 阅读全文
posted @ 2025-02-21 16:52 SpringCore 阅读(1) 评论(0) 推荐(0) 编辑
摘要:1.安装 rsync远程同步工具 apt install -y rsync 2.配置host映射【略】 vi /etc/hosts 3.配置SSH免密登录 使用SSH远程登陆Linux 4.编写xsync集群分发脚本 vi /usr/bin/xsync #! /bin/bash #1 获取输入参数个 阅读全文
posted @ 2024-01-02 13:31 SpringCore 阅读(226) 评论(0) 推荐(0) 编辑
摘要:参考地址: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- 阅读全文
posted @ 2023-12-24 20:10 SpringCore 阅读(357) 评论(0) 推荐(0) 编辑
摘要:1.安装[可选,如已安装则跳过] apt install ntp 2.启动NTP服务 systemctl start ntpd systemctl enable ntpd 3.查看NTP服务运行状态 systemctl status ntpd 4.修改配置文件 vi /etc/ntpsec/ntp. 阅读全文
posted @ 2023-12-09 17:49 SpringCore 阅读(6200) 评论(0) 推荐(0) 编辑
摘要:本文以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/ 阅读全文
posted @ 2023-09-12 14:58 SpringCore 阅读(242) 评论(0) 推荐(0) 编辑
摘要:参考地址:[Set environment variables from file of key/value pairs](https://stackoverflow.com/questions/19331497/set-environment-variables-from-file-of-key- 阅读全文
posted @ 2023-09-07 13:15 SpringCore 阅读(15) 评论(0) 推荐(0) 编辑
摘要:#### 1.选择需要添加的中文字体到一个目录中。 `从Windows中拷贝出需要的字体即可,目录地址:C:\Windows\Fonts` #### 2.编辑Dockerfile,添加中文字体【以dotnet镜像为例,其基于Debian】 ```Dockerfile FROM mcr.microso 阅读全文
posted @ 2023-08-29 13:44 SpringCore 阅读(932) 评论(0) 推荐(1) 编辑
摘要:`官方介绍地址:`https://learn.microsoft.com/zh-cn/windows-server/administration/openssh/openssh_install_firstuse ## 安装方式 #### 1.使用设置 -> 应用进行安装 ![image](https 阅读全文
posted @ 2023-08-21 15:21 SpringCore 阅读(400) 评论(0) 推荐(0) 编辑
摘要:#### 1.SSH 参考恩山论坛的帖子SSH即可 [[R3G] R3G 和 R3GV2 解锁 SSH](https://www.right.com.cn/forum/thread-8278054-1-3.html "[R3G] R3G 和 R3GV2 解锁 SSH") 我做了实验 R3G稳定2.2 阅读全文
posted @ 2023-07-29 09:55 SpringCore 阅读(824) 评论(0) 推荐(0) 编辑
摘要:## 1.Windows 使用where命令 ```shell where java ``` ![image](https://img2023.cnblogs.com/blog/1364290/202307/1364290-20230728093312522-1030575843.jpg) ## 2 阅读全文
posted @ 2023-07-28 09:34 SpringCore 阅读(27) 评论(0) 推荐(0) 编辑
摘要:#### 1.查看是否安装 ```shell dpkg -l|grep sudo ``` #### 2.安装 ###### 1.切换到root用户 ```shell su - root ``` ###### 2.安装sudo ```shell apt-get install sudo ``` ### 阅读全文
posted @ 2023-07-17 11:22 SpringCore 阅读(4719) 评论(0) 推荐(0) 编辑
摘要:#### 1.下载安装包 https://www.sonatype.com/products/sonatype-nexus-oss-download ![image](https://img2023.cnblogs.com/blog/1364290/202307/1364290-2023071016 阅读全文
posted @ 2023-07-10 16:32 SpringCore 阅读(292) 评论(0) 推荐(0) 编辑
摘要:#### 1.更新本地包缓存 ```shell sudo apt update ``` #### 2.查看可以升级的软件包 ```shell apt list --upgradable ``` #### 3.预览升级 ```shell apt -s upgrade ``` #### 4.升级 ### 阅读全文
posted @ 2023-07-06 14:44 SpringCore 阅读(4723) 评论(0) 推荐(0) 编辑
摘要:#### 1.安装 ```shell sudo apt-get update sudo apt-get install neofetch ``` #### 2.执行 ```shell neofetch ``` 阅读全文
posted @ 2023-06-12 10:05 SpringCore 阅读(18) 评论(0) 推荐(0) 编辑
摘要:转自https://www.cnblogs.com/tonyc/p/10432871.html 设置方法如下: vi /etc/pam.d/gdm-autologin 找到下面这一行 auth required pam_succeed_if.so user != root quiet_success 阅读全文
posted @ 2023-05-02 15:25 SpringCore 阅读(340) 评论(0) 推荐(0) 编辑
摘要:1.将用户和Shell环境一起切换成root身份 su - root 2.编辑sshd_config文件 vi /etc/ssh/sshd_config 3.修改配置 默认的Authentication区块 # Authentication: #LoginGraceTime 2m #PermitRo 阅读全文
posted @ 2023-05-02 15:11 SpringCore 阅读(1535) 评论(0) 推荐(0) 编辑
摘要:##### 1.更新源 ```shell sudo apt update && sudo apt upgrade -y ``` ##### 2.安装SSH(OpenSSH) ```shell sudo apt install openssh-server -y ``` ##### 3.使用syste 阅读全文
posted @ 2023-05-02 14:12 SpringCore 阅读(1425) 评论(0) 推荐(0) 编辑
摘要:官方下载地址: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.安 阅读全文
posted @ 2023-01-14 12:09 SpringCore 阅读(469) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
more_horiz
keyboard_arrow_up light_mode palette
选择主题