域名迁移二三事技术
有多少人迁移过域名?结合作者经验,希望给大家带来帮助。
一些经验:
- 迁移后,解析并没有迁移过来,我觉得这个跟服务商有关系,做的好的应该可以一起过来。
- 迁移后,NS 解析可能是原来的,需要手动更改,服务商一般只解析自己名下的域名,其他域名一概不解析,这点算是不厚道。
- 国内某知名域名注册商,有些事情会发短信通知,但域名迁移成功后倒是没有通知,因为域名解析没有跟着迁移过来,这么重要的事情不重点通知一下,容易造成重大损失。
域名添加 A 记录一定要擦亮眼睛👀,因为写错一个数字往往发现不了。
PHP 7.3 经典报错 continue targeting switch技术
PHP 7.3 经典报错,用一句话证明你用过 PHP 7.3。
Warning: "continue" targeting switch is equivalent to "break". Error:"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ...
改成 continue 2 即可。
在 7.3 版本之前写出这种代码,在 switch 内 continue 的效果和 break 是一样的,so 正确的解决办法应该是将 continue 改成 break。
阿里云 ECS 不能发邮件技术
阿里云,你这太不厚道了阿。云服务器,不就是自由吗?不然谁买你的云服务器。说你的云服务器不能发邮件,一些水军又要生气了,别生气,就是不能发邮件,help 里面给出的 465 端口并不是真的发邮件,仍然是绕道。
阿里云官方 help (https://help.aliyun.com/knowledge_detail/60692.html) 里给出的解释是,25 端口导致邮件泛滥,所以就给封了。我觉得好笑死了,我买了你的服务器,存储是我的,泛滥也是我的,跟你阿里云有毛钱关系,流量也是花钱买的。阿里云服务器搞个安全组策略就难用死了,在创建完成后并没有特别的强调用户去设置安全组,折腾了一番之后才知道是防火墙搞了鬼,这点你设计的好,和 Amazon 一样。25 端口被你给封了为什么在“控制台”或是“安全组”不给出一点提示,每次都要让人折腾才发现这个不行,那个不行。整个的就是天朝的垃圾云服务商,永远也长不大的。
pacman error: audit: signature from is unknown trust技术
使用 pacman 更新系统报错怎么办?更新是个麻烦事,长时间不更新一更新就容易出各种问题。
pacman -Syu error: audit: signature from "Levente Polyak (anthraxx) <[email protected]>" is unknown trust
error: audit: signature from "Levente Polyak (anthraxx) <[email protected]>" is unknown trust :: File /var/cache/pacman/pkg/audit-2.8.4-2-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] n error: libtiff: signature from "Levente Polyak (anthraxx) <[email protected]>" is unknown trust :: File /var/cache/pacman/pkg/libtiff-4.0.10-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] n error: autoconf-archive: signature from "Eli Schwartz <[email protected]>" is unknown trust :: File /var/cache/pacman/pkg/autoconf-archive-1:2019.01.06-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] n error: ctags: signature from "Levente Polyak (anthraxx) <[email protected]>" is unknown trust :: File /var/cache/pacman/pkg/ctags-1:r20181015+g45968eff-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] n error: patch: signature from "Levente Polyak (anthraxx) <[email protected]>" is unknown trust :: File /var/cache/pacman/pkg/patch-2.7.6-7-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] n error: vim-runtime: signature from "Levente Polyak (anthraxx) <[email protected]>" is unknown trust :: File /var/cache/pacman/pkg/vim-runtime-8.1.0751-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] n error: gvim: signature from "Levente Polyak (anthraxx) <[email protected]>" is unknown trust :: File /var/cache/pacman/pkg/gvim-8.1.0751-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] n error: libplacebo: signature from "Levente Polyak (anthraxx) <[email protected]>" is unknown trust :: File /var/cache/pacman/pkg/libplacebo-1.7.0-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] n error: strongswan: signature from "Levente Polyak (anthraxx) <[email protected]>" is unknown trust :: File /var/cache/pacman/pkg/strongswan-5.7.1-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] n error: aribb24: signature from "Levente Polyak (anthraxx) <[email protected]>" is unknown trust :: File /var/cache/pacman/pkg/aribb24-1.0.3-2-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] n error: vlc: signature from "Levente Polyak (anthraxx) <[email protected]>" is unknown trust :: File /var/cache/pacman/pkg/vlc-3.0.6-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] n error: wget: signature from "Levente Polyak (anthraxx) <[email protected]>" is unknown trust :: File /var/cache/pacman/pkg/wget-1.20.1-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)). Do you want to delete it? [Y/n] n error: failed to commit transaction (invalid or corrupted package) Errors occurred, no packages were upgraded.
把 Windows7 装进 U 盘方法技术
如何把 windows 装进优盘,本篇给你帮助。
啰嗦一点,其实从 win8 开始微软 windows 操作系统对于优盘的支持好了很多,装进优盘那是非常方便的,直接 dd 一个命令就刻录好了 U 盘安装盘,直接装就可以了。但是为什么我不选择 win10 装进 U 盘呢?你想,你都用 win10 了,那肯定是新电脑,当然没有这个必要啦。对于我这种拥有老古董机器的人来说,win7 比较适合;而另外一个原因就是 win10 对于硬件的要求太高,即使装成功了,在 USB 口的老机器上仍然是启动不了的,只能是卡在开机 logo 那里转圈圈。
对于 win7 以及以下的操作系统装进 U 盘里面是比较难的。不像 Linux 系列发行版那样的友好。win7 的安装盘无法识别 USB 存储介质,所以安装盘本身需要添加驱动支持。