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
Aug
27
Mar
20
nmap -sS -Pn -n --open --min-hostgroup 4 --min-parallelism 1024 --min-rtt-timeout 2 -T4 -p- -v ip
Mar
19
Let's Encrypt在浏览器里能正常访问.
但在linux下出现
或
解决方法:
1.https://letsencrypt.org/zh-cn/certificates/ 下载域名证书签名的版本.(我目前的证书用的是R3).下载pem版本.
2.上传根证书(Root CA)到 /usr/local/share/ca-certificates/ (需要修改为.crt扩展名)
3. 更新 CA certificates
但在linux下出现
unable to get local issuer certificate
或
x509: certificate signed by unknown authority
解决方法:
1.https://letsencrypt.org/zh-cn/certificates/ 下载域名证书签名的版本.(我目前的证书用的是R3).下载pem版本.
2.上传根证书(Root CA)到 /usr/local/share/ca-certificates/ (需要修改为.crt扩展名)
3. 更新 CA certificates
update-ca-certificates
Sep
6
最近git的服务进行更换.导致本地的项目都需要更换新的地址
但路径还是使用原来的路径.
一个个修改太浪费时间了.
# 找到需要更新的config文件路径,并保存到filepath.txt文件名,可以根据实例情况进行删除部分路径
find ./ -name 'config'|grep '.git' |grep -v 'vendor' >filepath.txt
# 替换
cat filepath.txt |xargs sed -i "s/teambition/aliyun/g"
但路径还是使用原来的路径.
一个个修改太浪费时间了.
# 找到需要更新的config文件路径,并保存到filepath.txt文件名,可以根据实例情况进行删除部分路径
find ./ -name 'config'|grep '.git' |grep -v 'vendor' >filepath.txt
# 替换
cat filepath.txt |xargs sed -i "s/teambition/aliyun/g"