惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
The GitHub Blog
The GitHub Blog
C
Check Point Blog
博客园_首页
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
F
Full Disclosure
Microsoft Security Blog
Microsoft Security Blog
爱范儿
爱范儿
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
G
GRAHAM CLULEY
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
C
Cybersecurity and Infrastructure Security Agency CISA
V
Vulnerabilities – Threatpost
K
Kaspersky official blog
博客园 - 司徒正美
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
Project Zero
Project Zero
云风的 BLOG
云风的 BLOG
Cisco Talos Blog
Cisco Talos Blog
Know Your Adversary
Know Your Adversary
雷峰网
雷峰网
V
V2EX - 技术
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Spread Privacy
Spread Privacy
罗磊的独立博客
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
SecWiki News
SecWiki News
Schneier on Security
Schneier on Security
O
OpenAI News
Jina AI
Jina AI
PCI Perspectives
PCI Perspectives
Cyberwarzone
Cyberwarzone
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog RSS Feed
I
InfoQ
D
Docker
P
Palo Alto Networks Blog
Recorded Future
Recorded Future
M
MIT News - Artificial intelligence
博客园 - Franky
B
Blog
Scott Helme
Scott Helme
博客园 - 叶小钗
D
DataBreaches.Net

博客园 - yahle

Performance Improvements in .NET 9 [翻译 by chatglm] Performance Improvements in .NET 8 & 7 & 6 -- File I/O【翻译】 Performance Improvements in .NET 8 & 7 & 6 -- String【翻译】 Performance Improvements in .NET 8 & 7 & 6 -- Thread【翻译】 Performance Improvements in .NET 8 -- Exceptions & Reflection & Primitives【翻译】 Performance Improvements in .NET 8 -- Native AOT & VM & GC & Mono【翻译】 Performance Improvements in .NET 8 -- JIT部分翻译 mysql迁移到pqsql笔记 .net core 多线程下使用 Random 会出现bug 一个.net6开发的截图后ocr小工具 立个铁矿石的flag,从7月初开始,铁矿石的库存,可能要进入累库存阶段了. 让你的 vs code 跑在云上,用手机浏览器就能写代码 - yahle ASP.NET Core 2 High Performance 目录和读书笔记 - yahle [转帖]无网络离线安装 vs2017 - yahle - 博客园 centos下 .net core 2.0 升级 到 2.1 遇到的一个小问题 .net core jwt 入门记录 GTX 750TI 使用 ffmpeg 时无法用 GPU HEVC(h.265) 进行加速 [翻译] 编写高性能 .NET 代码--第二章 GC -- 减少大对象堆的碎片,在某些情况下强制执行完整GC,按需压缩大对象堆,在GC前收到消息通知,使用弱引用缓存对象 [翻译] 编写高性能 .NET 代码--第二章 GC -- 将长生命周期对象和大对象池化
云服务器内容迁移 总结
yahle · 2021-11-21 · via 博客园 - yahle

腾讯云服务器三年之期到期了,只能另外换账号重新买一个云服务器,这就导致这次的服务器迁移总结。

免密码登录

在给 github 设置了ssh后,以及在本地服务器成功的设置免密码登录后,在新服务器上也设置免密码登录也是正常的事情了。

直接将公钥放在腾讯云的管理界面后,在重置板块后,就可以将公钥绑定到服务器上,但是。登录的时候,碰上了这个错误:

Permission denied (publickey).

在网上找了很多文章,都是没啥用的,最后,大概是使用下面的文件

vim /etc/ssh/sshd_config

放开腾讯云服务器因为安全相关,默认情况下会禁止某些选项

#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile .ssh/authorized_keys

但是,还是不行,最后,不小心用

ssh ubuntu@ip 

的方式可以登录后,才意识到,.ssh 目录好像是在 /home/ubuntu 目录下的。。。

迁移宝塔(bt.cn)面板

话说,如果不是因为宝塔面板,最新的版本,需要注册后才能使用,我TMD的鄙视它,强烈鄙视它。

当然,目前因为很多设置都是通过宝塔做设置的,又不能不用,只能另外想办法了。
一开始找了一下docker版本,但是,目前网上看到的版本是5.x版本,软件安装无法使用。所以,很无奈,然后网上找了一些破解方法,感觉也没啥用。

最后,则用自己的旧版本(不用注册也能使用的版本)。

替换的方法:

1. 先正常安装宝塔
2. 用旧版本的 /www/server 和 /www/wwwroot 的文件进行替换
3. 进入宝塔,发现首页还是有注册,在浏览器栏,用 /site or /soft 进入对应的子页面后,注册窗口就没了
4. 进入应用面板,重新安装 nginx php 等基础应用就基本 ok 了。

最后总结,未来部署在服务器上的应用还是要尽量要转移成为docker的方式进行部署