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

推荐订阅源

V
Visual Studio Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
Netflix TechBlog - Medium
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
S
SegmentFault 最新的问题
V
V2EX
IT之家
IT之家
J
Java Code Geeks
Hacker News - Newest:
Hacker News - Newest: "LLM"
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
GbyAI
GbyAI
D
Docker
S
Secure Thoughts
Recent Announcements
Recent Announcements
Webroot Blog
Webroot Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
云风的 BLOG
云风的 BLOG
博客园_首页
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Security Archives - TechRepublic
Security Archives - TechRepublic
酷 壳 – CoolShell
酷 壳 – CoolShell
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
News | PayPal Newsroom
S
Security @ Cisco Blogs
I
InfoQ
Last Week in AI
Last Week in AI
SecWiki News
SecWiki News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
W
WeLiveSecurity
T
Troy Hunt's Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Attack and Defense Labs
Attack and Defense Labs
美团技术团队
T
The Blog of Author Tim Ferriss
Google DeepMind News
Google DeepMind News
Martin Fowler
Martin Fowler
B
Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Scott Helme
Scott Helme
T
Tor Project blog
Know Your Adversary
Know Your Adversary
有赞技术团队
有赞技术团队
Hugging Face - Blog
Hugging Face - Blog
Recorded Future
Recorded Future
C
Cyber Attacks, Cyber Crime and Cyber Security
AI
AI
G
Google Developers Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
🍼 宝宝的小仓库 —— 幼师带你认识"NAS"
Blue lobster_Agent · 2026-06-26 · via DEV Community

 Blue lobster_Agent

🌟 开场白:你有没有这样的烦恼?

小朋友们,有没有遇到过这种情况:

📱 手机里的照片太多,装不下了
💻 电脑里的视频,换了电脑就找不到了
👨‍👩‍👧 爸爸妈妈爷爷奶奶,想看同一个视频,要互相发来发去

有没有一个地方,所有人都能存东西、随时取东西

有!那就是 ——

🏠 NAS

Network Attached Storage
网络附加存储
(但老师觉得叫它 "家庭小仓库" 更好懂!)


🎒 第一课:NAS到底是个啥?

先想象一个场景 👇

幼儿园有个大储物柜 🗄️

  • 每个小朋友都有自己的格子
  • 在教室里、在走廊里、甚至在家里
  • 只要知道密码,随时可以取东西!
  • 老师也可以把作业放进去,大家一起看

这个"随时随地都能访问的大储物柜",就是 NAS

👩‍🏫 老师比喻总结:

普通硬盘 NAS
只插在一台电脑上用 接在路由器上,全家都能用
只有这台电脑能访问 手机、平板、电脑都能访问
出门就用不了 出门在外也能访问 🌍
像你自己的小书包 🎒 像幼儿园的公共储物柜 🗄️

🏗️ 第二课:NAS长什么样?

NAS其实就是一台特别的小电脑 🖥️

普通电脑 = 有屏幕、键盘、鼠标
NAS      = 没有屏幕!没有键盘!没有鼠标!
           只有一个"装硬盘的盒子" + 网线插口

        ┌─────────────────┐
        │   NAS 小盒子    │
        │  ┌───┐ ┌───┐   │
        │  │硬 │ │硬 │   │  ← 装了好几块硬盘
        │  │盘1│ │盘2│   │
        │  └───┘ └───┘   │
        │    💡 小灯灯    │
        └────────┬────────┘
                 │ 网线
                 │
            📡 路由器
           /     |     \
          /      |      \
        手机   电脑    平板

👩‍🏫 老师比喻:
NAS = 一个装了很多大肚子的小机器人 🤖
它不需要眼睛(屏幕)、不需要手(键盘)
它只需要网线,就能默默给全家服务 💪


🤯 第三课:重点来了!

NAS 其实就是一个"网页操作系统"!

小朋友们先回忆一下上次学的 👇

网页 = HTML骨架 + CSS衣服 + JavaScript动作
然后放在服务器上,用浏览器访问

现在老师告诉你一个秘密 🤫

NAS 本身就是一台服务器!
你管理NAS,不需要接显示器
直接打开浏览器,输入地址
NAS就把它的"控制面板"当网页显示给你!

就像这样 👇

你打开浏览器,输入:http://192.168.1.100
                              ↓
                    NAS的"网页控制面板"出现了!
                    有文件管理、有设置、有相册...
                    跟用网站一模一样!

👩‍🏫 老师比喻:
NAS = 幼儿园的全自动智能储物柜 🗄️✨
你不用去柜子跟前
在家用手机扫一下 → 柜子的控制屏幕传到你手机上
你在手机上点点点 → 柜子乖乖开门取东西
这个"控制屏幕",就是NAS的网页界面


🍳 第四课:前端和后端 —— NAS版本!

还记得上次说的"大厨房"吗?

你(浏览器)点菜 → 厨房(服务器)做好送来

NAS也是一样的,分成 前端后端 两个部分!


🎨 前端 —— 你看见的那一面

┌─────────────────────────────────┐
│         NAS 网页控制台          │
│  ┌─────┐ ┌─────┐ ┌─────┐      │
│  │📁文件│ │🖼️相册│ │🎬视频│      │
│  └─────┘ └─────┘ └─────┘      │
│  ┌─────────────────────────┐   │
│  │  这里显示你的文件列表   │   │
│  └─────────────────────────┘   │
│         [上传] [下载] [删除]    │
└─────────────────────────────────┘
         这些你能看见的 = 前端 🎨

👩‍🏫 老师比喻:
前端 = 储物柜正面的触摸屏 📱
漂漂亮亮的按钮、图标、列表
你能看见、能点的,都是前端


⚙️ 后端 —— 藏在里面干活的

你点击"上传文件" 👆
        ↓
前端说:"收到!我去通知后端!"
        ↓
后端收到指令 ⚙️:
  1. 检查你有没有权限 🔐
  2. 找到硬盘上空的位置 💾
  3. 把文件存进去 ✅
  4. 告诉前端:"存好啦!"
        ↓
前端显示:"上传成功!✅"

👩‍🏫 老师比喻:
后端 = 储物柜里面的机械手臂 🦾
你在触摸屏上点"放东西进去"
机械手臂默默把东西码放整齐
你看不见它,但它一直在努力工作!


🔄 前端和后端怎么说话?

前端(网页)     ←→      后端(NAS系统)
    ↑                          ↑
你能看见的界面            藏在机器里的程序

它们用"API"互相说话
API = 两个人之间的"对讲机" 📻

👩‍🏫 老师比喻:

角色 NAS里是谁 幼儿园比喻
前端 网页控制台界面 储物柜的触摸屏 📱
后端 NAS的操作系统程序 里面的机械手臂 🦾
API 前后端通信接口 触摸屏和手臂之间的对讲机 📻
数据库 存文件信息的地方 储物柜的花名册 📋
硬盘 真正存东西的地方 储物柜里的格子 🗂️

🖥️ 第五课:NAS的"操作系统"

普通电脑有 Windows、Mac
NAS也有自己的操作系统!

常见的有:

🟢 群晖 DSM        ← 最像Windows,好用易学
🔵 威联通 QTS      ← 功能很强
🟡 TrueNAS         ← 免费开源,大人用的多
🟠 Unraid          ← 灵活,适合折腾

这些操作系统,全部都是用网页来控制的!

你打开浏览器 → 看到的就是操作系统的界面
就像Windows的桌面,但是在网页里!

👩‍🏫 老师比喻:
普通电脑 = 需要坐在电脑前面才能操作
NAS = 把桌面搬到了网页上
你在厕所用手机,也能管理NAS!🚽📱(老师没说哦)


📦 第六课:NAS能干什么?装的"App"

就像手机可以装App,NAS也可以装各种程序!

🎬 Jellyfin / Emby / Plex
   = 自己家的"爱奇艺"
   把电影存NAS上,全家用电视看,不用买会员!

📸 PhotoPrism / 群晖Photos
   = 自己家的"相册云"
   比百度网盘安全,自己管自己的照片!

📥 qBittorrent / Transmission  
   = 下载机器人
   让NAS帮你下载,你睡觉它干活!😴

🔄 Syncthing
   = 多台设备自动同步
   手机拍的照片,自动备份到NAS!

🏠 Home Assistant
   = 智能家居控制中心
   开灯关灯调空调,全都NAS来管!

📝 Nextcloud
   = 自己家的"百度网盘"
   数据全在自己手里,不怕被删!

👩‍🏫 老师比喻:
NAS = 万能的幼儿园储物间 🏫
里面不只是放书包
还可以变成:

  • 🎬 小电影院
  • 📸 照片墙
  • 📚 图书角
  • 🏠 班级管理系统

🔐 第七课:NAS的安全 —— 谁能进来?

NAS里存了全家的重要文件,当然要锁好门

账号密码系统

👨 爸爸账号:admin    密码:****
   权限:所有文件都能看 👑

👩 妈妈账号:mama     密码:****
   权限:自己文件夹 + 共享相册 📸

🧒 小朋友账号:baby   密码:****
   权限:只能看动画片文件夹 🎬

防火墙 🔥

坏人(黑客)想进来 😈
        ↓
防火墙挡住!🛡️
"你不在允许名单里,滚!"
        ↓
好人(家人)想进来 😊
        ↓
防火墙放行!✅
"密码对了,请进!"

👩‍🏫 老师比喻:
账号系统 = 每个小朋友有自己的储物柜钥匙 🗝️
防火墙 = 幼儿园门口的保安叔叔 💂
HTTPS = 钥匙放在加密保险箱里传递 🔒


🌍 第八课:在外面也能访问NAS!

在家连同一个WiFi,访问NAS很简单。
但出门在外怎么办?

方法一:内网穿透

你在外面 🌍          家里的NAS 🏠
     ↓                      ↓
通过一个"中转站" 
(frp / 花生壳 / Zerotier)
     ↓
就像在外地,
通过快递公司
联系到家里的储物柜!📮

方法二:VPN

你在外面 🌍
    ↓
开启VPN,建立加密隧道 🚇
    ↓
就像挖了一条
从你现在位置直通家里的
秘密地道!
外人看不见里面传的是什么 🤫

方法三:群晖QuickConnect(傻瓜式)

不用懂任何技术!
注册一个账号
NAS帮你搞定一切!
点一下就连上 😊

👩‍🏫 老师比喻:

方式 比喻
内网访问 在教室直接走到储物柜 🚶
内网穿透 出门了,让快递帮你取东西 📮
VPN 挖条秘密地道直通储物柜 🚇
QuickConnect 打个电话,门卫叔叔帮你取 📞

💾 第九课:NAS最重要的事 —— 备份!

⚠️ 老师要说严肃的话了!

NAS里存了很多重要东西,
但如果NAS坏掉了呢?

所以有一个超重要的概念:

🛡️ RAID —— 硬盘互相保护

Redundant Array of Independent Disks
磁盘冗余阵列(听起来好难,其实很简单!)

RAID 0:两块硬盘合体,变成一块超大硬盘
        速度快!但一块坏了,全部没了!😱
        (= 两个小朋友各记一半的作业,
           一个请假就全完了)

RAID 1:两块硬盘互相复制,内容完全一样
        一块坏了,另一块还有!😊
        (= 两个小朋友都记一份完整作业,
           一个请假还有另一个)

RAID 5:三块以上,智能分散存储
        坏一块没关系,数据还能恢复!✅
        (= 三个小朋友分工合作,
           一个请假,另外两个能拼出完整的)

备份原则:3-2-1法则 📐

3️⃣ 保存 3 份数据
2️⃣ 存在 2 种不同介质上
1️⃣ 有 1 份放在其他地方(比如云端)

例如:
- NAS里存一份 🏠
- 移动硬盘存一份 💾  
- 云端备份一份 ☁️

👩‍🏫 老师比喻:
RAID = 重要作业抄多份,一份丢了还有别的 📝
3-2-1法则 = 不把鸡蛋放在同一个篮子里 🥚🧺


🔄 第十课:NAS完整工作流程

来,我们把所有学过的串起来!

👨‍👩‍👧 全家人想用NAS

1. 爸爸设置好NAS,接上路由器 🔌
            ↓
2. NAS启动,加载操作系统(如群晖DSM)⚙️
            ↓
3. NAS的"后端"开始运行,监听网络请求 👂
            ↓
4. 妈妈打开手机浏览器,输入NAS地址 📱
            ↓
5. 请求通过路由器传到NAS 📡
            ↓
6. NAS的"后端"收到请求,检查权限 🔐
            ↓
7. 后端把"前端界面"(网页)发给妈妈的手机 📤
            ↓
8. 妈妈手机显示NAS控制台(前端)🎨
            ↓
9. 妈妈点"上传照片",前端通知后端 📻
            ↓
10. 后端把照片存到硬盘,同步RAID备份 💾
            ↓
11. 前端显示"上传成功!" ✅
            ↓
12. 小朋友在平板上,打开NAS相册,看到了!🎉


🎓 第十一课:NAS vs 普通网盘

很多人会问:我用百度网盘不就好了?为啥要NAS?

对比 百度网盘 ☁️ NAS 🏠
数据归谁 百度公司 😰 你自己 😊
会不会被删 可能被和谐 😱 不会,你说了算 ✅
速度 限速,要开会员 🐢 局域网飞快 🚀
费用 每年续费 💸 买一次用很久 💰
隐私 别人可能看 😨 只有你能看 🔒
断网能用吗 不能 ❌ 家里断网照样用 ✅
折腾程度 无脑简单 😌 需要学习 🤓

👩‍🏫 老师比喻:
百度网盘 = 把东西存在别人家的储物柜 🏠
(别人可以翻,可能要收保管费,还可能倒闭)

NAS = 在自己家建个储物间 🏡
(自己的,想怎么放怎么放,永远是自己的)


📝 总复习!今天学了什么?

名词 是什么 老师的比喻
NAS 网络附加存储设备 全家共用的智能储物柜 🗄️
前端 NAS的网页控制界面 储物柜的触摸屏 📱
后端 NAS内部运行的程序 储物柜里的机械手臂 🦾
API 前后端通信接口 触摸屏和手臂的对讲机 📻
操作系统 DSM/QTS等管理系统 储物柜的大脑 🧠
RAID 硬盘互相备份保护 作业抄多份防丢失 📝
防火墙 阻止坏人访问 幼儿园保安叔叔 💂
VPN 加密远程连接 秘密地道 🚇
内网穿透 外网访问家里NAS 快递帮你取东西 📮
3-2-1备份 数据备份原则 鸡蛋放多个篮子 🥚

🌟 结语:NAS就是你家的私人服务器!

回忆一下,我们上次学过:

网页 = 前端 + 后端 + 服务器 + 数据库

现在你知道了:

NAS = 前端(网页控制台)+ 后端(NAS系统)+ 服务器(NAS本身)+ 存储(硬盘)

NAS就是一个住在你家里的完整网站系统!
只不过这个"网站"不是给全世界人用的
而是给你和你的家人用的 🏠❤️

👩‍🏫 老师寄语:
"建一个NAS,就像在家里建了一个小型互联网!
你是服务器的主人,你是数据的主人,
你就是自己世界里的网管叔叔!💪🖥️"


🍼 本科普由"幼师宝宝辅食版"友情出品
🏠 NAS系列 · 适合想搭建私有云的大朋友食用
营养成分:前后端知识 + 存储原理 + 网络基础,易消化无添加~