分页: 1/119 第一页 1 2 3 4 5 6 7 8 9 10 下页 最后页 [ 显示模式: 摘要 | 列表 ]
Mar 20
nmap -sS -Pn -n --open --min-hostgroup 4 --min-parallelism 1024 --host-timeout 30 -T4 -v ip
Mar 19
Let's Encrypt在浏览器里能正常访问.
但在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"
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

    去除腾讯统计


Mar 20

fallocate -l 1G /swapfile
mkswap /swapfile
chmod 600 /swapfile
swapon /swapfile
echo "/swapfile swap swap defaults    0  0" >> /etc/fstab
分页: 1/119 第一页 1 2 3 4 5 6 7 8 9 10 下页 最后页 [ 显示模式: 摘要 | 列表 ]