疯狂吧!A股!

Poon 发表于 退休的傻逼 分类,标签:
0

作为吃过大亏的过来人,真心奉劝大家,远离A股赌盘!

现在有多爽,将来就有多惨!

别以为自己能见好就收,赌博是会上头的,一旦上头不管是赚还是亏根本就不甘心出来!

现在制造出这么大的A股牛市行情,不管能持续几天还是几十天甚至几个月,最终的结果肯定也是割韭菜!

不信等着瞧~

周五没人约,心里空落落

Poon 发表于 随便说两句 分类,标签:
1

还是回家吃糯米肉坨子吧……

2024.09.25

Poon 发表于 随便说两句 分类,
0

21:23

21:44

22:22

喝完第一场,去骚扰坤哥弄第二场,2点半散场,跟老吉散了会儿步,结果遇到一个路边躺着睡觉的醉汉,喊了几下没动,然后被老吉拉走了,告知这情况不能管,万一喝出个啥事情来反咬一口还得我赔钱,道理我也懂,但我把老吉送上车之后还是忍不住往回走打算去帮助这个醉汉,不过走到喝酒原点都没再看到这个醉汉,应该是他睡醒了自己走了或者是他援兵过来带走他了。心情不错,想着自己还有五天年假,于是决定白天请假,接下来继续徒步好好的走一走,不过走到快凌晨五点的时候感觉走不动了,于是就打车回家了(次日在百度地图测量了下距离,大概8km)

阿里云部署Hysteria2无法使用的问题

Poon 发表于 学习备忘录 分类,标签: ,
0

最近把软路由升级了一下,用的是这个版本:https://www.right.com.cn/forum/thread-8307959-1-1.html

现在好多固件都可以支持Hysteria2了,感觉这个协议用的人比较少所以可能会稳定一些,结果在国外厂商的vps都弄成功唯独阿里云vps不成功,折腾许久只好重装系统结果还是不行,挨个参数的核对也无法找到问题……

后来看到Hysteria2的日志有这个报错:error [34mINFO[0m server up and running {“listen”: “:443”}
突然明白过来了,443端口是系统默认放通的,所以我也就没去动这个端口的防火墙,所以也就忽略了
Hysteria使用的是UDP协议,但系统默认放行的只有443TCP,所以还要再增加一条443UDP
同理,如果设置了端口跳跃,那也要添加对应端口的UDP

Debian11&Debian12更换依赖(sources.list换源)

Poon 发表于 学习备忘录 分类,标签:
0

发现好多vps默认的Debian使用 apt install 安装软件的时候都会报 404 Not Found 的错误,apt update 也不行
应该是 sources.list 里面的源地址问题,以cloudcone的为例,我直接修改成最新的Debian官方源就可以了

一)备份

mv /etc/apt/sources.list /etc/apt/sources.list.old

 

二)替换(直接一次性复制多行命令粘贴运行就行,或者也可以自己vi更换相关内容)

官方源

cat > /etc/apt/sources.list << EOF
deb https://deb.debian.org/debian/ bullseye main contrib non-free
deb-src https://deb.debian.org/debian/ bullseye main contrib non-free

deb https://deb.debian.org/debian/ bullseye-updates main contrib non-free
deb-src https://deb.debian.org/debian/ bullseye-updates main contrib non-free

deb https://deb.debian.org/debian/ bullseye-backports main contrib non-free
deb-src https://deb.debian.org/debian/ bullseye-backports main contrib non-free

deb https://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb-src https://deb.debian.org/debian-security/ bullseye-security main contrib non-free
EOF

 

清华源

cat > /etc/apt/sources.list << EOF
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bullseye-security main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bullseye-security main contrib non-free
EOF

 

中科大源

cat > /etc/apt/sources.list << EOF
deb https://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free

deb https://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free

deb https://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib non-free

deb https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main contrib non-free
EOF

 

阿里云源(公网)

cat > /etc/apt/sources.list << EOF
deb https://mirrors.aliyun.com/debian/ bullseye main contrib non-free
deb-src https://mirrors.aliyun.com/debian/ bullseye main contrib non-free

deb https://mirrors.aliyun.com/debian/ bullseye-updates main contrib non-free
deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main contrib non-free

deb https://mirrors.aliyun.com/debian/ bullseye-backports main contrib non-free
deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main contrib non-free

deb https://mirrors.aliyun.com/debian-security/ bullseye-security main contrib non-free
deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main contrib non-free
EOF

 

阿里云内网源(阿里云服务器使用,不消耗公网流量)

cat > /etc/apt/sources.list << EOF
deb http://mirrors.cloud.aliyuncs.com/debian/ bullseye main contrib non-free
deb-src http://mirrors.cloud.aliyuncs.com/debian/ bullseye main contrib non-free

deb http://mirrors.cloud.aliyuncs.com/debian/ bullseye-updates main contrib non-free
deb-src http://mirrors.cloud.aliyuncs.com/debian/ bullseye-updates main contrib non-free

deb http://mirrors.cloud.aliyuncs.com/debian/ bullseye-backports main contrib non-free
deb-src http://mirrors.cloud.aliyuncs.com/debian/ bullseye-backports main contrib non-free

deb http://mirrors.cloud.aliyuncs.com/debian-security/ bullseye-security main contrib non-free
deb-src http://mirrors.cloud.aliyuncs.com/debian-security/ bullseye-security main contrib non-free
EOF

 

腾讯云源(公网)

cat > /etc/apt/sources.list << EOF
deb https://mirrors.cloud.tencent.com/debian/ bullseye main contrib non-free
deb-src https://mirrors.cloud.tencent.com/debian/ bullseye main contrib non-free

deb https://mirrors.cloud.tencent.com/debian/ bullseye-updates main contrib non-free
deb-src https://mirrors.cloud.tencent.com/debian/ bullseye-updates main contrib non-free

deb https://mirrors.cloud.tencent.com/debian/ bullseye-backports main contrib non-free
deb-src https://mirrors.cloud.tencent.com/debian/ bullseye-backports main contrib non-free

deb https://mirrors.cloud.tencent.com/debian-security/ bullseye-security main contrib non-free
deb-src https://mirrors.cloud.tencent.com/debian-security/ bullseye-security main contrib non-free
EOF

 

腾讯云内网源(阿里云服务器使用,不消耗公网流量)

cat > /etc/apt/sources.list << EOF
deb http://mirrors.tencentyun.com/debian/ bullseye main contrib non-free
deb-src http://mirrors.tencentyun.com/debian/ bullseye main contrib non-free

deb http://mirrors.tencentyun.com/debian/ bullseye-updates main contrib non-free
deb-src http://mirrors.tencentyun.com/debian/ bullseye-updates main contrib non-free

deb http://mirrors.tencentyun.com/debian/ bullseye-backports main contrib non-free
deb-src http://mirrors.tencentyun.com/debian/ bullseye-backports main contrib non-free

deb http://mirrors.tencentyun.com/debian-security/ bullseye-security main contrib non-free
deb-src http://mirrors.tencentyun.com/debian-security/ bullseye-security main contrib non-free
EOF

 

Linode源

cat > /etc/apt/sources.list << EOF
deb http://mirrors.linode.com/debian/ bullseye main contrib non-free
deb-src http://mirrors.linode.com/debian/ bullseye main contrib non-free

deb http://mirrors.linode.com/debian/ bullseye-updates main contrib non-free
deb-src http://mirrors.linode.com/debian/ bullseye-updates main contrib non-free

deb http://mirrors.linode.com/debian/ bullseye-backports main contrib non-free
deb-src http://mirrors.linode.com/debian/ bullseye-backports main contrib non-free

deb http://mirrors.linode.com/debian-security/ bullseye-security main contrib non-free
deb-src http://mirrors.linode.com/debian-security/ bullseye-security main contrib non-free
EOF

 

三)更新索引

apt update

2024.09.23

Poon 发表于 随便说两句 分类,标签:
1

19:40

22:40

活着的意义

Poon 发表于 没事瞎感慨 分类,
0

早上搭同事的车,同事问我国庆回不回苏北,我说不回,回去还要收拾收拾家里然后呆个几天也没啥意思,同事说他还是比较喜欢回苏北的,毕竟亲戚朋友啥的基本都在苏北老家。我说我家亲戚啥的比较少,所以可能感觉回去也没多大意思,就连春节我都不想回去。

想想也是挺悲哀的,这亲戚本来就少然后大部分基本属于不靠谱的或是懒得跟我家来往的,而村里邻居啥的那些基本都是聚一起喝酒赌博吹牛逼啥的我也很难融入进去。可能要等父母回老家定居了,自己才有一些回老家的渴望吧。

小孩再大一点老人就会回老家,小孩继续大一点可能我也要回老家,在城市里面的娱乐活动基本都是喝酒啥的,等回老家之后也不知道能有啥娱乐活动了,突然发现自己的人生似乎就是按部就班的等死,没丝毫波澜……

AMH定时备份到腾讯云COS

Poon 发表于 学习备忘录 分类,标签: ,
0

将数据库搬回了本地:https://400.tw/2024.09.21/23:59:00/3850  所以就要立即考虑备份的事情了。之前使用wp的备份插件每天备份到电子邮箱,但现在找不到稳定好用的插件了,要么就是特不稳定甚至直接出错无法使用要么就是要收费,所以现在直接使用amh官方的备份插件了。我使用的是腾讯云免费的50G额度,简单记录设置步骤:

1、在插件中心安装“腾讯云远程备份”(腾讯云、阿里云也有专门的插件,还有一些其它的常用云也基本都有兼容插件)然后设置“腾讯云远程备份”的参数,这里要特别注意的是:

HOST保持默认,别改成完整的URL(否则连接测试会成功,但备份会失败,因为最终的URL结构会重复)
阿里云子账号只授权 QcloudCOSDataFullControl 这个权限就够了

 
2、在“即时备份”备份一次试试,确保备份成功,这里要特别注意的是:

设置好相关选项之后,先复制上图最后一行的备份命令,然后再点备份按钮测试

 
3、登陆腾讯云查询备份文件是否上传成功?打开上图的备份列表查询本地备份是否成功?(假设设置了本地与远程)

注意“备份文件存储选项” 根据实际情况决定是否需要设置

 
4、打开amh“任务计划”设置备份频率,运行命令写上述第2步复制的那条命令。

数据库迁移至本地

Poon 发表于 学习备忘录 分类,标签: , , ,
0

这几年一直使用阿里云的MySQL:https://400.tw/2022.02.07/17:26:04/2728

不过最近感觉搬瓦工连阿里云硅谷数据库的速度变慢了,wordpress变得卡卡的;更离谱的是,这月搬瓦工的流量飙升,平均每天要跑30G,起初我还以为是被攻击了或者被中毒被挖矿什么的了,结果对vps进行监测才发现流量最多的ip居然是阿里云数据库的连接,每个小时都得1~2G的流量…… 重启vps不行,修改mysql密码也不行,入网流量持续狂飙!

于是就将数据库搬回了localhost(前段时间已经把瓦工升级成2G内存)
现在vps的流量降下来了,wordpress的打开速度也感觉提高了很多!

2024.09.20

Poon 发表于 随便说两句 分类,标签:
0