随笔分类 -  Linux

一些Linux问题的解决方案
摘要:官方已提供支持,此文作废 #!/bin/bash # SPDX-License-Identifier: GPL-2.0-only # # Copyright (C) ImmortalWrt.org DEFAULT_COLOR="\033[0m" BLUE_COLOR="\033[36m" GREEN 阅读全文
posted @ 2025-08-24 12:22 SpringCore 阅读(49) 评论(0) 推荐(0)
摘要:1.查看so库是否存在 1.若不存在,则安装相应的包或源码编译相应的so库,并放到/usr/lib 或 /usr/local/lib 执行刷新 sudo ldconfig 这会把 /etc/ld.so.conf 和 /etc/ld.so.conf.d/ 里定义的路径都重新注册到动态链接器缓存。 2. 阅读全文
posted @ 2025-07-25 10:40 SpringCore 阅读(101) 评论(0) 推荐(0)
摘要:pip 安装系统级工具会引发以下错误警告,这表明系统 Python 环境受保护,并在警告内容中告知了具体的解决方案 error: externally-managed-environment × This environment is externally managed ╰─> To instal 阅读全文
posted @ 2025-07-24 23:16 SpringCore 阅读(119) 评论(0) 推荐(0)
摘要:Debian 12中默认安装了Python 3。但使用的命令却是python3,这在很多脚本中会抛出异常导致运行中断 根据安装时选择的运行环境不同,一些Debian12 安装完成后可能安装了Python3却未安装pip3,可以执行以下的命令进行pip3的安装 apt install python3- 阅读全文
posted @ 2025-07-24 22:58 SpringCore 阅读(230) 评论(0) 推荐(0)
摘要:1.移除 1.构建移除 取消menuconfig中 LUCI -> Applications -> luci-app-alist 注释掉config文件中luci-app-alist相关项目 2.固件中移除 opkg remove luci-i18n-alist-zh-cn --autoremove 阅读全文
posted @ 2025-06-21 17:54 SpringCore 阅读(336) 评论(0) 推荐(0)
摘要:1.分区问题 亚瑟和雅典娜默认固件分区为60M,如果固件大于该容量则需要刷大分区,一般的大分区都会移除掉最后一个数据分区。 因此一般将最后容量分出来挂载到 /overlay供安装插件使用 1.使用sgdisk 1.安装sgdisk # 自动安装 opkg update && opkg install 阅读全文
posted @ 2025-06-01 16:18 SpringCore 阅读(765) 评论(0) 推荐(0)
摘要:vmware提示:无法连接到理想的主机控制器。将尝试将该设备连接到可用的最佳主机控制器。这可能会导致该设备出现未定义的行为: 在虚拟机 -> 设置 -> USB控制器 -> USB兼容性,修改为USB 3.1即可。 注意:若U盘为exFAT格式则需安装exfat-fuse包 从Debian 11开始 阅读全文
posted @ 2025-04-28 20:14 SpringCore 阅读(398) 评论(0) 推荐(0)
摘要:Canonical 宣布将于 2025 年 5 月 29 日终止主流支持 Ubuntu 20.04 LTS 发行版,届时用户有 2 个选择 升级到 Ubuntu 22.04 LTS / 24.04 LTS 启用扩展安全维护(Extended Security Maintenance,简称 ESM) 阅读全文
posted @ 2025-04-22 23:07 SpringCore 阅读(418) 评论(0) 推荐(0)
摘要:因为最新源码编译Uboot,而Uboot中一些模块的源码使用到了Python2.7,因此需要在Debian 12 中安装Python 2.7,而Debian 12默认安装了Python3,apt源中已经不再提供Python2.7,因此需要源码编译安装。 1.安装源码编译依赖 apt update a 阅读全文
posted @ 2025-04-18 18:39 SpringCore 阅读(490) 评论(0) 推荐(0)
摘要: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 阅读(18) 评论(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 阅读(330) 评论(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 阅读(437) 评论(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 阅读(6992) 评论(0) 推荐(1)
摘要:本文以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 阅读(298) 评论(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 阅读(19) 评论(0) 推荐(0)
摘要:`官方介绍地址:`https://learn.microsoft.com/zh-cn/windows-server/administration/openssh/openssh_install_firstuse ## 安装方式 #### 1.使用设置 -> 应用进行安装 ![image](https 阅读全文
posted @ 2023-08-21 15:21 SpringCore 阅读(516) 评论(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 阅读(1150) 评论(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 阅读(35) 评论(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 阅读(6553) 评论(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 阅读(367) 评论(0) 推荐(0)