有一说一,这真是一个大难题,如果用 dig -AAA github.com +short,是可以得到 ipv6的,但如果你 dig -AAAA api.github.com +short,返回的就是空。
在这种情况下就啥也拿不到了,查了不少资料。发现确实没有,但还是有好心人做了一个项目,即反代 github的资源,并提供了 ipv6的地址,就在:/etc/hosts 里加入下面的内容
2a01:4f8:c010:d56::2 github.com
2a01:4f8:c010:d56::3 api.github.com
2a01:4f8:c010:d56::4 codeload.github.com
2a01:4f8:c010:d56::5 objects.githubusercontent.com
2a01:4f8:c010:d56::6 ghcr.io
2a01:4f8:c010:d56::7 pkg.github.com npm.pkg.github.com maven.pkg.github.com nuget.pkg.github.com rubygems.pkg.github.com
参考:https://danwin1210.de/github-ipv6-proxy.php。好歹是能用了,不是吗?
看标题知内容,本来也没想着这么急的,今天打开 Aws 的LightSail 看的时候,发现费用涨了1.5刀,原因就是从5-1开始的 ip4要正式收费了。然后这一台服务器的作用其实没有那么大,所以准备尝试着切掉ip4,只保留 ip6 (cloudflare 的域名解析可以直接支持 ipv6,比如A 记录换成了 AAAA 记录,就是 ipv6的)
但问题来了
1、我家里没有 IPv6
2、我得找一台支持 IPv6的机器进行测试一下先。
于是就想到了到 buyvm 的机器上测试,结果一看,buyvm 默认没启用,于是想办法启用一下 ipv6
1、进入管理界面,找到当前这台 VPS
2、在 networking 界面上点击 ipv6
3、生成 ipv6的地址,status 那里要变成 active,保存
理论上是这时候 是OK 了,ifconfig的时候 只能看到 fe80,即相当于127.0.0.1了。没有拿到公网 IP
4、点击 ipv6地址的最右侧齿轮,查看 networking,可以看到 gateway 和 netmask
编辑 /etc/network/interfaces ,增加静态内容
iface eth0 inet6 static
address ipv6地址
netmask 48
gateway gateway 的地址
再执行 systemctl restart networking。如果不启作用可以重启
执行:pin6 2606:4700:4700::1111,直接就看到输出啦
2606:4700:4700::1111,这是 cloudflare 的1.1.1.1对应的 ipv6
至此,搞定
sentry用了2年了,感觉还不错,但是对系统要求比较高,4c8g才勉强能跑,所以实在受不了,换成gilitchtip了,毕竟他兼容了sentry的协议
既然要换,那怎么卸载呢?找了一堆 资料,各种 说法都有。什么docker ps看一下container,如果有sentry开头的,全部停止再删除就行了。
其实在官方的install目录下,就有一个clean.sh,运行后会提示删除后啥也没了,确认就可以了。于是我直接执行:
▶ Initializing Docker Compose ...
☠️ Warning! ? This is highly destructive! ? Are you sure you wish to proceed? [y/n] y
Okay ... good luck! ?
Volume sentry-self-hosted_sentry-nginx-cache Removed
Volume sentry-self-hosted_sentry-clickhouse-log Removed
Image symbolicator-cleanup-self-hosted-local:latest Removed
Image sentry-cleanup-self-hosted-local:latest Removed
Image clickhouse-self-hosted-local:latest Removed
Image sentry-self-hosted-local:latest Removed
Image snuba-cleanup-self-hosted-local:latest Removed
Volume sentry-self-hosted_sentry-smtp Removed
Volume sentry-self-hosted_sentry-kafka-log Removed
Volume sentry-self-hosted_sentry-zookeeper-log Removed
Volume sentry-self-hosted_sentry-smtp-log Removed
Volume sentry-self-hosted_sentry-secrets Removed
Network sentry-self-hosted_default Removed
Removed volume: sentry-clickhouse
Removed volume: sentry-data
Removed volume: sentry-kafka
Removed volume: sentry-postgres
Removed volume: sentry-redis
Removed volume: sentry-symbolicator
Removed volume: sentry-zookeeper
世界立刻清静了
改用1panel管理后,怎么各种小问题?动不动就触发waf。。。
在我的M9的机器上安装了MAXKB。用了ollama2的模型。
随便跑了一点内容,最终还是放弃了
记录一下当时的步骤
1、增加了知识库,想尝试爬我的博客(还没有用meilisearch)。结果直接把网站爬崩了。。。。后来是指定页面进行抓取才相对好一点。但明明设置了class,抓的内容还是乱七八槽
2、下载了ollama13b的模型
3、开始建立应用,选择这个模型 :一开始搜索,机器CPU100%,内存消耗8G,1分钟后,居然没搜索到任何东西。。。。
4、切换成ollama:chinese的模型 ,也是100%的CPU。。。chinese是7b,也消耗差不多8G内存
5、换成最基础的,同样100%CPU,温度从50多度升到80多度。消耗4G多内存
发现这种本地知识库,如果没有GPU,还真是别玩了啊。。。玩不动。所以,最终折腾完后,删除了