AngusWong's 博客

  • 首页
  • Linux
  • Mac
  • PHP
  • 数据库
  • 路由相关
国内源
Linux

PVE8修改软件仓库源和 CT模板(LXC)源为国内源

替换前先更新下证书,否则可能由于证书不可用导致 https 无法使用,进而无法下载所有软件 sudo apt install apt-transport-https ca-certificates 首先替换通用软件源, Debian 的软件源配置文件是 /etc/apt/sources.list 备份后输入以下命令直接填充 curl -fsSL https://mirrors.ustc.edu.cn/repogen/conf/debian-https-4-bookworm -o /etc/apt/sources.l…

2025年3月5日 0条评论 252点热度 0人点赞 Sean 阅读全文
Linux

Debian12更换国内源

新的版本已经移除文件 /etc/apt/sources.list,现在使用文件/etc/apt/sources.list.d/debian.sources 文件内容如下: Types: deb # http://snapshot.debian.org/archive/debian/20250224T000000Z URIs: http://deb.debian.org/debian Suites: bookworm bookworm-updates Components: main Signed-By: /usr/…

2025年3月5日 0条评论 262点热度 0人点赞 Sean 阅读全文
PHP

Composer 国内镜像设置

#下载并安装 curl -sS https://getcomposer.org/installer | php #添加执行权限 chmod a+x composer.phar #加入全局命令 mv composer.phar /usr/local/bin/composer #查看版本号 composer --version 镜像名 地址 赞助商 更新频率 备注 阿里云 Composer 镜像 https://mirrors.aliyun.com/composer/ 阿里云 96 秒 推荐 腾讯云 Composer …

2021年3月26日 0条评论 3455点热度 1人点赞 Sean 阅读全文
Mac

Mac 安装 homebrew 并修改为国内源

1、安装 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" 2、切换为清华源 cd "$(brew --repo)" git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git cd "$(brew --repo)/Library/Taps/homebrew/ho…

2021年2月3日 0条评论 9369点热度 0人点赞 Sean 阅读全文
分类
  • Linux
  • Mac
  • PHP
  • 其他
  • 前端
  • 数据库
  • 路由相关
最新 热点 随机
最新 热点 随机
macOS Sonoma, macOS Sequoia删除Mac启动台里删不掉的图标 PVE8修改软件仓库源和 CT模板(LXC)源为国内源 Debian12更换国内源 构建宝塔面板Docker镜像 无需root!卸载小米电视/盒子内置应用 检查系统是否被入侵
无需root!卸载小米电视/盒子内置应用 Gitlab13.* 最新社区版本使用GitLab Runner自动部署代码 Git忽略已经提交过一次文件 Linux 添加普通用户,并加入管理员用户组wheel 检查系统是否被入侵 使用宝塔面板安装的Gitlab更改配置

COPYRIGHT © 2021 huangyuqiang.cn. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang