Nov
12
cp /etc/apt/sources.list /etc/apt/sources.list-bak
echo "deb http://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src http://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb http://mirrors.aliyun.com/debian-security bookworm-security main
deb-src http://mirrors.aliyun.com/debian-security bookworm-security main
deb http://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src http://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb http://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src http://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib">/etc/apt/sources.list
apt install -y apt-transport-https ca-certificates curl software-properties-common gnupg2 mariadb-client vim wireguard
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | apt-key add -
echo"deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/debian $(lsb_release -cs) stable" >/etc/apt/sources.list.d/docker.list
apt update
apt -y install docker-ce
echo "deb http://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src http://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb http://mirrors.aliyun.com/debian-security bookworm-security main
deb-src http://mirrors.aliyun.com/debian-security bookworm-security main
deb http://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src http://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb http://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src http://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib">/etc/apt/sources.list
apt install -y apt-transport-https ca-certificates curl software-properties-common gnupg2 mariadb-client vim wireguard
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | apt-key add -
echo"deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/debian $(lsb_release -cs) stable" >/etc/apt/sources.list.d/docker.list
apt update
apt -y install docker-ce
Apr
28
更新一个版本到更新后,发现有bug.需要进行回滚代码(只限代码出现bug,未出现数据结构或数据更新)
1.在本地的开发副本中,查看需要回溯的分支
git log
commit dc2f72f51522665980e474013dfc577a7a6fb054 (HEAD -> 6.0, origin/HEAD, origin/6.0)
Merge: f96be7b dcd39c8
Author: thinkphp <thinkphp@qq.com>
Date: Tue May 31 12:54:26 2022 +0800
Merge branch '6.0' of github.com:top-think/think into 6.0
commit f96be7b7ede70f5c52aa32d5616eb08a0b252b95
Author: thinkphp <thinkphp@qq.com>
Date: Tue May 31 12:53:51 2022 +0800
去除腾讯统计
1.在本地的开发副本中,查看需要回溯的分支
git log
commit dc2f72f51522665980e474013dfc577a7a6fb054 (HEAD -> 6.0, origin/HEAD, origin/6.0)
Merge: f96be7b dcd39c8
Author: thinkphp <thinkphp@qq.com>
Date: Tue May 31 12:54:26 2022 +0800
Merge branch '6.0' of github.com:top-think/think into 6.0
commit f96be7b7ede70f5c52aa32d5616eb08a0b252b95
Author: thinkphp <thinkphp@qq.com>
Date: Tue May 31 12:53:51 2022 +0800
去除腾讯统计
Mar
20
fallocate -l 1G /swapfile
mkswap /swapfile
chmod 600 /swapfile
swapon /swapfile
echo "/swapfile swap swap defaults 0 0" >> /etc/fstab
Mar
15
昨天出差,发现电脑的续航竟然变成1个小时.原来起码是能玩6,7个小时的.
然后打开任务管理器一看,竟然启用了一堆edge程序,
但我还没有启用过呢.
在任务管理器强制关闭后续航时间就马上可以恢复到6个小时.
最后细看了配置,原来还有一个这样的配置.
然后打开任务管理器一看,竟然启用了一堆edge程序,
但我还没有启用过呢.
在任务管理器强制关闭后续航时间就马上可以恢复到6个小时.
最后细看了配置,原来还有一个这样的配置.
Oct
29
周一的时候发现测试环境有一个命令执行后报
网上基本减于这个错误,基本上是c语言的编译问题,但我大php怎么会有这样的错误?
所以怀疑是系统内核错误.把容器重新打包一次.结果没有改善.
最后发现原为是同事在CommonLogic::__call(),再调用了一次,call_user_func_array([$this, $method_name], $agrs);
class CommonLogic{
function __call($method_name,$agrs){
if(anycheck()){
//and function
}else{
// 如果不符合的,就再调用一次,这个就变成了一个死循环.
// 因为__call就是类里没有对应的方法才会去调用,但这里又再调用一个不存在的方法
return call_user_func_array([$this, $method_name], $agrs)
}
}
}
这个错误算是概念不清引起的错误.
引用
segmentation fault(core dump)
网上基本减于这个错误,基本上是c语言的编译问题,但我大php怎么会有这样的错误?
所以怀疑是系统内核错误.把容器重新打包一次.结果没有改善.
最后发现原为是同事在CommonLogic::__call(),再调用了一次,call_user_func_array([$this, $method_name], $agrs);
class CommonLogic{
function __call($method_name,$agrs){
if(anycheck()){
//and function
}else{
// 如果不符合的,就再调用一次,这个就变成了一个死循环.
// 因为__call就是类里没有对应的方法才会去调用,但这里又再调用一个不存在的方法
return call_user_func_array([$this, $method_name], $agrs)
}
}
}
这个错误算是概念不清引起的错误.