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

推荐订阅源

S
Security Affairs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Jina AI
Jina AI
P
Palo Alto Networks Blog
GbyAI
GbyAI
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
Blog — PlanetScale
Blog — PlanetScale
S
Schneier on Security
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
雷峰网
雷峰网
T
Tenable Blog
人人都是产品经理
人人都是产品经理
T
Tor Project blog
C
Cyber Attacks, Cyber Crime and Cyber Security
AWS News Blog
AWS News Blog
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
Scott Helme
Scott Helme
SecWiki News
SecWiki News
C
CERT Recently Published Vulnerability Notes
Recorded Future
Recorded Future
I
InfoQ
Security Archives - TechRepublic
Security Archives - TechRepublic
Help Net Security
Help Net Security
Cloudbric
Cloudbric
C
Check Point Blog
Engineering at Meta
Engineering at Meta
TaoSecurity Blog
TaoSecurity Blog
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
N
News and Events Feed by Topic
云风的 BLOG
云风的 BLOG
MyScale Blog
MyScale Blog
腾讯CDC
量子位
Application and Cybersecurity Blog
Application and Cybersecurity Blog
K
Kaspersky official blog
Vercel News
Vercel News
F
Full Disclosure
T
Troy Hunt's Blog
Forbes - Security
Forbes - Security
S
Security @ Cisco Blogs

Debian on 老刘博客

Django部署在debian11服务器
VPS服务器系统的选择
老刘 · 2022-05-27 · via Debian on 老刘博客

随着云业务的蓬勃发展,很多独立博客的博主,个人网站站长都抛弃了曾经的虚拟主机而选择VPS,vps相对于虚拟主机来说,容量更大,可玩性更高;同时,要对个人的要求也随之更高。玩VPS首先遇到的就是系统的选择问题。

Windows系统

大多数的站长第一次选择系统的时候都是喜欢用windows系统,毕竟熟悉,上手快。但是Windows服务器系统先天上占用资源比较大,系统不稳定,导致获得不了良好的用户体验。同样1H1G配置的vps,运行最新版本的debian11,然后装个博客系统,是一点问题都没有,但是你要是想要运行Windows服务器,只能选择低版本的了。所以,用了一段时间后,自然就淘汰不用了。

Linux系统

Linux系统是开源系统,受到所有开发者的共同监督,已经是非常成熟的服务器系统,并且拥有着一套完整的权限机制,安全性与稳定性都很高。只是上手有点门槛。不过,随着各种面板技术的发展,目前这个已经不是什么问题。那么Linux系统那么多,到底选择哪种呢?

centos

这个系统在国内可以说是服务器的首选。可惜去年官方已经不在继续维护这个系统了,目前最高的版本是centos8.0,目前官方已经不再维护,centos7.6由于用的人更多,目前还在过度的时间内,但是也时日无多了。所以,用这个系统的童鞋,还是换成别的系统吧。老刘曾用过腾讯云里腾讯自己以centos8为蓝本开发的系统,体验起来还是可以的。如果真是centos的铁粉,不妨可以试试腾讯的这个系统。

debain

这个也是老牌的服务器系统了。作为一个具有悠久历史的社区维护的操作系统。生命力还是没有问题的。据王志勇大佬的测试,使用Debian系统的php要比其他的系统来说,速度更快。老刘感觉,这个快可能更多的是测试的结果,实际体验下来,感觉相差不大。Debian系统稳定,软件丰富。自从centos宣布停止维护后,老刘已经把所有的VPS的系统都换成Debian了。

另外一个让老刘喜欢用Debian的原因是,Debian11的防火墙使用起来非常的简单,而别的系统大多是用的iptables。比如我们要放行一个端口,Debian只需用如下的命令:

ufw allow 666

而iptables写法就很复杂了:

iptables -I INPUT -p tcp --dport 8000 -j ACCEPT

Ubuntu

是基于Debian二次开发的产物,在Linux桌面操作系统中,Ubuntu绝对是老大的存在。很多公司开发的软件,都是基于Ubuntu来开发的。服务器版也还可以,不过老刘还是习惯了使用Debian。

至于其他的小众操作系统,使用的人少,遇到问题找答案都不容易,不用也罢