Configs2026年4月10日·1 分钟阅读

Nextcloud — Self-Hosted Cloud Platform for Files, Calendar & More

Nextcloud is the leading open-source cloud platform for file sync, sharing, calendar, contacts, email, video calls, and office collaboration — a Google Workspace alternative.

AI
AI Open Source · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

docker run -d --name nextcloud -p 8080:80 
  -v nextcloud-data:/var/www/html 
  nextcloud:latest

Open http://localhost:8080 — create your admin account and start using your private cloud.

介绍

Nextcloud is the leading open-source self-hosted cloud platform, providing file sync and sharing, calendar, contacts, email, video conferencing, office document editing, and dozens more productivity tools. It serves as a comprehensive alternative to Google Workspace, Microsoft 365, and Dropbox — all running on your own infrastructure.

With 34.6K+ GitHub stars and AGPL-3.0 license, Nextcloud is trusted by millions of users and thousands of organizations worldwide, from individuals to government agencies and enterprises requiring data sovereignty.

What Nextcloud Does

Nextcloud provides a complete productivity suite:

  • Files: Sync, share, and collaborate on files across all devices with end-to-end encryption option
  • Calendar: CalDAV calendar with scheduling, invitations, and room booking
  • Contacts: CardDAV contact management synced across devices
  • Talk: Video conferencing, screen sharing, and team chat (like Zoom + Slack)
  • Office: Built-in document editing with Collabora Online or OnlyOffice integration
  • Mail: Email client integrated into the Nextcloud interface
  • Deck: Kanban board for project management
  • Notes: Markdown note-taking with mobile sync
  • Photos: AI-powered photo management with face recognition and albums

Architecture

┌──────────────┐     ┌──────────────┐     ┌──────────────┐
│ Web / Desktop│────▶│  Nextcloud   │────▶│  MySQL /     │
│ / Mobile App │     │  Server (PHP)│     │  PostgreSQL  │
└──────────────┘     └──────┬───────┘     └──────────────┘
                            │
              ┌─────────────┼─────────────┐
              │             │             │
       ┌──────┴──┐   ┌─────┴───┐   ┌─────┴───┐
       │  Redis  │   │ Storage │   │Collabora│
       │  (Cache)│   │(Local/S3)│  │ (Office)│
       └─────────┘   └─────────┘   └─────────┘

Self-Hosting

Docker Compose (Production)

services:
  nextcloud:
    image: nextcloud:latest
    ports:
      - "8080:80"
    environment:
      MYSQL_HOST: db
      MYSQL_DATABASE: nextcloud
      MYSQL_USER: nextcloud
      MYSQL_PASSWORD: nextcloud
      NEXTCLOUD_ADMIN_USER: admin
      NEXTCLOUD_ADMIN_PASSWORD: your-admin-password
      REDIS_HOST: redis
    volumes:
      - nextcloud-data:/var/www/html
    depends_on:
      - db
      - redis

  db:
    image: mariadb:11
    environment:
      MYSQL_ROOT_PASSWORD: root-password
      MYSQL_DATABASE: nextcloud
      MYSQL_USER: nextcloud
      MYSQL_PASSWORD: nextcloud
    volumes:
      - db-data:/var/lib/mysql

  redis:
    image: redis:7-alpine

volumes:
  nextcloud-data:
  db-data:

Key Features

App Ecosystem

Nextcloud has 400+ apps in its App Store:

  • Productivity: Calendar, Contacts, Tasks, Notes, Deck, Bookmarks
  • Communication: Talk (video), Mail, Circles (groups)
  • Office: Collabora Online, OnlyOffice, Markdown Editor
  • Security: Two-Factor Auth, End-to-End Encryption, Audit Log
  • Integration: External Storage (S3, SMB, FTP), LDAP/AD, SSO

Desktop & Mobile Sync

Native sync clients for all platforms:

  • Desktop: Windows, macOS, Linux — auto-sync files like Dropbox
  • Mobile: iOS and Android with auto-upload for photos/videos
  • WebDAV: Standard protocol, compatible with any WebDAV client

Enterprise Features

  • LDAP/Active Directory integration
  • SAML/SSO authentication
  • Audit logging and compliance
  • File access control and retention policies
  • Branding and theming

Nextcloud vs Alternatives

Feature Nextcloud Google Workspace Microsoft 365 Seafile
Open Source Yes (AGPL-3.0) No No Partial
Self-hosted Yes No Partial Yes
Office suite Collabora/OnlyOffice Google Docs Office Online SeaDoc
Video calls Nextcloud Talk Google Meet Teams No
Calendar/Contacts Built-in Built-in Built-in No
E2E Encryption Yes No No No
App ecosystem 400+ apps Marketplace AppSource Limited
Pricing Free (self-host) $6/user/mo $6/user/mo Free (self-host)

常见问题

Q: Nextcloud 的性能如何?大文件同步快吗? A: 性能取决于服务器配置。建议使用 Redis 缓存、OPcache、和 PHP-FPM 调优。大文件可以使用分块上传。对于 10+ 用户的团队,建议 4GB+ RAM 和 SSD 存储。

Q: 可以替代 Google Workspace 吗? A: 对于文件同步和协作,Nextcloud 是成熟的替代方案。配合 Collabora Online 可以在线编辑 Office 文档。Talk 提供视频会议。邮件功能是客户端(需要自己的邮件服务器)。整体功能覆盖 Google Workspace 80%+ 的使用场景。

Q: 如何备份 Nextcloud? A: 备份三样东西:1)数据目录(/var/www/html/data),2)数据库(mysqldump),3)配置文件(config.php)。建议使用 cron 定时备份并存储到远程位置。

来源与致谢

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产