端口是什么?为什么建站一定要 80 和 443What Are Ports? Why Ports 80 and 443 Are Required for Website Hosting

作者:

“这台机没有 80 端口不能建站”——端口到底是什么?

一句话解释

端口是服务的”门牌号”。一个 IP 下有 0–65535 个端口,用来区分不同服务。常见的:

  • 80 = HTTP(网页)、443 = HTTPS(加密网页)
  • 22 = SSH(远程登录)、3389 = 远程桌面

为什么建站要 80/443

浏览器访问网站默认走 80/443。NAT 小鸡 只给一段非标端口、没有 80/443,所以不能常规建站。

防火墙与端口

防火墙 / 云厂商”安全组”控制哪些端口对外开放。建站要确认 80/443 已放行;服务连不上,先查端口是否被挡。

安全提醒

22 等端口常被全网扫描爆破,建议改非标端口 + 密钥登录,少用密码。

挑合适的在售机型?去 库存监控 按线路 / 地区筛选。

“This VPS doesn’t have port 80 so you can’t host a website” — what exactly is a port?

One-Line Explanation

A port is like a “door number” for a service. Under a single IP address there are 0–65535 ports, each identifying a different service. Common ones:

  • 80 = HTTP (web), 443 = HTTPS (encrypted web)
  • 22 = SSH (remote login), 3389 = Remote Desktop

Why Website Hosting Needs Ports 80/443

Browsers connect to websites on port 80/443 by default. NAT VPS units only provide a range of non-standard ports and lack 80/443, which is why they can’t be used for conventional website hosting.

Firewalls and Ports

A firewall or cloud provider “security group” controls which ports are open to the outside world. Confirm that ports 80 and 443 are allowed before trying to host a site. If a service is unreachable, always check whether the port is being blocked.

Security Tip

Port 22 is constantly brute-forced by scanners worldwide. It’s strongly recommended to change SSH to a non-standard port and use key-based authentication instead of passwords.

Looking for the right VPS? Go to Stock Monitor and filter by network line / region.

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注