首页
赞助
时间轴
追番
留言
友人帐
关于
个人导航
更多
学习笔记
壁纸
Search
1
【台式机】2020-06-07,上半年618推荐配置(都是AMD)
972 阅读
2
21年下半年笔记本挑选
934 阅读
3
域名备案成功
807 阅读
4
2020.10 手机号码正则表达式
744 阅读
5
Mybatis缓存
713 阅读
日常
代码
❤心情
博客插件
电脑推荐
KMS服务
登录
Search
标签搜索
电脑推荐
组装电脑
博客插件
跨域访问错误
Maven
Mybatis
Linux
node.js
WebSocket
SpringBoot
跨域
网页背景效果
音乐播放器
看板娘
Pio插件问题
气泡通知
轻薄本
全能本
笔记本推荐
伪静态
旧梦未眠
累计撰写
77
篇文章
累计收到
14
条评论
今日撰写
1
篇文章
首页
栏目
日常
代码
❤心情
博客插件
电脑推荐
KMS服务
页面
赞助
时间轴
追番
留言
友人帐
关于
个人导航
学习笔记
壁纸
用户登录
登录
搜索到
77
篇与
Jammm
的结果
2025-05-03
Linux换源-Centos,Ubuntu,Rocky
最后执行 - 换源完成后执行更新Centossudo yum clean all sudo yum makecacheUbuntusudo apt-get update sudo apt-get dist-upgrade sudo apt-get upgradeRocky# 清理旧缓存 sudo dnf clean all # 生成新缓存 sudo dnf makecache # 验证配置是否生效(检查仓库地址) sudo dnf repolist换源Centos7目录:/etc/yum.repos.d/CentOS-Base.repo#备份yum原文件 sudo cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak #阿里云源 sudo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo #清华大学源 sudo wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.tuna.tsinghua.edu.cn/repo/Centos-7.repo Centos8 #阿里云源 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo #清华大学源 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.tuna.tsinghua.edu.cn/repo/centos8/CentOS-Base.repo Ubuntu22源目录:/etc/apt/sources.list注意:此为Ubuntu22源#腾讯源 deb http://mirrors.cloud.tencent.com/ubuntu jammy main restricted deb http://mirrors.cloud.tencent.com/ubuntu jammy-updates main restricted deb http://mirrors.cloud.tencent.com/ubuntu jammy universe deb http://mirrors.cloud.tencent.com/ubuntu jammy-updates universe deb http://mirrors.cloud.tencent.com/ubuntu jammy multiverse deb http://mirrors.cloud.tencent.com/ubuntu jammy-updates multiverse deb http://mirrors.cloud.tencent.com/ubuntu jammy-backports main restricted universe multiverse deb http://mirrors.cloud.tencent.com/ubuntu jammy-security main restricted deb http://mirrors.cloud.tencent.com/ubuntu jammy-security universe deb http://mirrors.cloud.tencent.com/ubuntu jammy-security multiverse #阿里源 deb https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse Ubuntu24源#清华源 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ noble main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ noble-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ noble-backports main restricted universe multiverse deb http://ports.ubuntu.com/ubuntu-ports/ noble-security main restricted universe multiverse #阿里开源站 deb https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse deb https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse deb-src https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse Rocky换源sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \ -e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.tuna.tsinghua.edu.cn/rocky|g' \ -i.bak \ /etc/yum.repos.d/rocky*.repo
2025年05月03日
1 阅读
0 评论
0 点赞
2025-03-24
记一次ibd文件数据库恢复过程
起因之前服务器安装某个程序需要.net8 要修改glibc更改版本,修改后正常使用,不小心更新宝塔后保存 需要glibc_2.33 2.34,安装2.34的时候直接报错,导致内存异常,ssh连不上,重启后无法进入系统,进入救援模式后,拷贝出数据库data目录文件,进行数据恢复frm,MYD,MYI文件这些文件新建一个数据库,把这个三个文件拷贝进去 刷新数据库即可出现表数据,非常简单。frm,IBD文件需要一个Linux服务器,下载dbsake后,用dbsake解析出表结构,新建一个表,后删除表空间引用,拷贝ibd文件再使用import导入即可。下面是具体步骤。下载dbsakecurl -s http://get.dbsake.net > dbsake给dbsake权限chmod u+x dbsake拷贝frm文件到服务器,使用dbsake 将后面的路径以及文件换成你的路径和文件./dbsake frmdump /www/disk1/dbsake/xxx.frm运行结果:[root@ser3VswS91UBrbe dbsake]# ./dbsake frmdump /www/disk1/dbsake/typecho_weixin.frm -- -- Table structure for table `typecho_weixin` -- Created with MySQL Version 5.7.40 -- CREATE TABLE `typecho_weixin` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `openid` varchar(64) DEFAULT NULL, `name` varchar(32) DEFAULT NULL, `mail` varchar(150) DEFAULT NULL, `ban` int(10) unsigned DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;创建上面的表删除空间引用alter table typecho_weixin DISCARD TABLESPACE将ibd文件拷贝到你用来恢复机子数据库的目录,若不知道使用以下命令查询show variables like '%datadir%';复制ibd文件后,导入ibd数据alter table typecho_weixin IMPORT TABLESPACE导入后就可以正常查看了,之后就是导出sql文件去新服务器上执行就行
2025年03月24日
5 阅读
0 评论
0 点赞
2025-03-02
【2025年3月】AMD,3A平台 5K电脑推荐,6750gre显卡配置电脑
不着急建议等AMD的9060显卡不着急建议等AMD的9060显卡不着急建议等AMD的9060显卡以下仅代表个人认为性格比+质量在一个比较平衡范围内的配置。价格都是淘宝或者天猫店铺的,可以去pdd上瞅一瞅,价格会更低。对于其他价格区间,根据自己的需求在硬盘、显卡、CPU、内存大小上省。不推荐在电源上省钱,固态硬盘尽量买有质保,机械硬盘不推荐二手。本文章内涉及的价格为淘宝/天猫价格,仅供参考。本文章内涉及的链接均为参考,无任何广告行为。机箱根据自己预算和喜好自行选择。{dotted startColor="#ff6c6c" endColor="#1989fa"/}有能力建议在加一个P44 Pro可以去京东上1T版本大概589元。长期保存重要资料建议加一个机械硬盘重要资料一定要多份备份 + 云盘{dotted startColor="#ff6c6c" endColor="#1989fa"/}电脑配件 名称产品价格渠道购买地址CPU+主板R5 7500F散片+铭瑄 B650M 终结者1593淘宝店铺地址散热器利民AS120 V2 白色83.16天猫店铺地址内存条金百达银爵 4800Mhz 16x2 共32G469天猫店铺地址机箱航嘉S920162天猫店铺地址电源利民TR-TG750S【金牌直出黑扁线版本】326淘宝店铺地址固态硬盘雷克沙NM710 1TB359淘宝店铺地址显卡蓝宝石RX6750GRE 10G极地2029天猫店铺地址总金额 5021.16
2025年03月02日
14 阅读
0 评论
0 点赞
2025-02-17
Halo博客搭建配置
https://halo.jampang.cn我使用的Jar包部署,相对而且麻烦一些Yamlserver: # 运行端口 port: 8090 spring: # 数据库配置,支持 MySQL、MariaDB、PostgreSQL、H2 Database,具体配置方式可以参考下面的数据库配置r2dbc:pool:mysql://{HOST}:{PORT}/{DATABASE} r2dbc: url: r2dbc:pool:mysql://localhost:3306/halo username: halo password: 1234 sql: init: mode: always # 需要配合 r2dbc 的配置进行改动 platform: mysql halo: caches: page: # 是否禁用页面缓存 disabled: true # 工作目录位置 work-dir: /www/wwwroot/halo.jampang.cn/halo/Halo # 外部访问地址 external-url: http://localhost:8090 # 附件映射配置,通常用于迁移场景 attachment: resource-mappings: - pathPattern: /upload/** locations: - migrate-from-1.xhalo.service需要将下面的目录换成你自己JDK以及Jar包所在目录[Unit] Description=Halo Service Documentation=https://docs.halo.run After=network-online.target Wants=network-online.target [Service] Type=simple ExecStart=/opt/jdk-22.0.1/bin/java -server -Xms256m -Xmx256m -jar /www/wwwroot/halo.jampang.cn/halo/Halo/halo.jar --spring.config.additional-location=optional:file:/www/wwwroot/halo.jampang.cn/halo/Halo/application.yaml ExecStop=/bin/kill -s QUIT $MAINPID Restart=always StandOutput=syslog StandError=inherit [Install] WantedBy=multi-user.target服务启动重载systemdsystemctl daemon-reload启动服务器systemctl start halo开机自启systemctl enable halo
2025年02月17日
12 阅读
0 评论
0 点赞
2025-02-10
Nginx开启目录下载
Nginx开启目录下载location /10086 { alias /www/disk1/xxxxx/download; # 换成自己的目录 autoindex on; #开启索引功能 autoindex_exact_size off; #关闭计算文件确切大小(单位bytes), #只显示大概大小(单位kb、mb、gb) charset 'utf-8'; #防止乱码,需要加上编码 autoindex_localtime on; #显示本机时间而非 GMT 时间 }
2025年02月10日
11 阅读
0 评论
0 点赞
1
2
...
16