软件:nextcloud

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
软件:nextcloud [2025/10/22 01:12] admin软件:nextcloud [2025/10/26 19:50] (当前版本) – [Nginx配置] admin
行 3: 行 3:
 网盘 网盘
  
-网络快捷安装+===== 安装环境依赖 =====
  
 <code -> <code ->
-sudo apt install snap +sudo apt update && sudo apt upgrade 
-sudo snap install nextcloud +sudo apt install mariadb-server php-gd php-mysql php-curl php-mbstring php-intl php-gmp php-xml php-imagick php-zip
-#安装过程是否成功 +
-snap changes nextcloud+
 </code> </code>
  
-传统安装部署 +===== SQL配置 =====
- +
-php安装 +
- +
-^ **Module** ^ **Required** ^ **Recommended** ^ **For Specific App** ^ **Description** ^ +
-| ctype | ✓ |     | Core functionality | +
-| curl | ✓ |     | HTTP requests | +
-| intl |   | ✓ |   | Improves translations and sorting | +
-| sodium |   | ✓ |   | Argon2 password hashing | +
-| ldap |     | ✓ | LDAP integration | +
-| smbclient |     | ✓ | SMB/CIFS integration | +
-| ftp |     | ✓ | FTP storage/authentication | +
-| imap |     | ✓ | External user authentication | +
-| gmp |     | ✓ (optional) | SFTP storage | +
-| exif |     | ✓ (optional) | Image rotation in Pictures app | +
-| apcu |   | ✓ |   | Performance caching | +
-| memcached |   | ✓ |   | Performance caching | +
-| redis |   | ✓ |   | Transactional File Locking | +
-| imagick |     | ✓ (optional) | Image previews | +
-| avconv/ffmpeg |     | ✓ (optional) | Video previews | +
-| Open/LibreOffice |     | ✓ (optional) | Document previews | +
-| pcntl |     | ✓ (optional) | Command interruption in CLI | +
-| phar |     | ✓ (optional) | Needed for command-line updater | +
- +
-安装环境依赖+
  
 <code -> <code ->
-sudo apt update && sudo apt upgrade +#登入msql 
-sudo apt install mariadb-server php-gd php-mysql php-curl php-mbstring php-intl php-gmp php-xml php-imagick php-zip+mysql -u root -
 +#创建nextcloud_db数据库 
 +CREATE DATABASE IF NOT EXISTS nextcloud_db CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; 
 +CREATE USER 'admin'@'localhost' IDENTIFIED BY '********'; 
 +GRANT ALL PRIVILEGES ON nextcloud_db.* TO 'admin'@'localhost'; 
 +FLUSH PRIVILEGES; 
 +quit;
 </code> </code>
  
-Nginx配置+===== Nginx配置 =====
  
 NGINX configuration — Nextcloud latest Administration Manual latest documentation NGINX configuration — Nextcloud latest Administration Manual latest documentation
  
 [[https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html]] [[https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html]]
 +
 +vi /etc/nginx/conf.d/nextcloud.conf
  
 <code nginx nextcloud.conf> <code nginx nextcloud.conf>
行 53: 行 35:
  
 upstream php-handler { upstream php-handler {
-    server 127.0.0.1:9000; +    #server 127.0.0.1:9000; 
-    #server unix:/run/php/php8.2-fpm.sock;+    server unix:/run/php/php8.4-fpm.sock;
 } }
  
行 76: 行 58:
  
 server { server {
-    listen 443 ssl http2; +    listen 443 ssl http2; 
-    listen [::]:443 ssl http2;+    listen [::]:443 ssl http2;
     # With NGinx >= 1.25.1 you should use this instead:     # With NGinx >= 1.25.1 you should use this instead:
-    listen 443      ssl; +    listen 443      ssl; 
-    listen [::]:443 ssl; +    listen [::]:443 ssl; 
-    http2 on;+    http2 on;
     server_name cloud.example.com;     server_name cloud.example.com;
  
行 89: 行 71:
     # Use Mozilla's guidelines for SSL/TLS settings     # Use Mozilla's guidelines for SSL/TLS settings
     # https://mozilla.github.io/server-side-tls/ssl-config-generator/     # https://mozilla.github.io/server-side-tls/ssl-config-generator/
-    ssl_certificate     /etc/ssl/nginx/cloud.example.com.crt+    ssl_certificate     /etc/nginx/conf.d/cert/cloud.example.com.pem
-    ssl_certificate_key /etc/ssl/nginx/cloud.example.com.key;+    ssl_certificate_key /etc/nginx/conf.d/cert/cloud.example.com.key;
  
     # Prevent nginx HTTP Server Detection     # Prevent nginx HTTP Server Detection
行 264: 行 246:
 </code> </code>
  
-SQL配置 
  
-<code -> +===== Nextcloud部署 =====
-sudo mysql +
-CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; +
-CREATE DATABASE IF NOT EXISTS nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; +
-GRANT ALL PRIVILEGES ON nextcloud.* TO 'username'@'localhost'; +
-FLUSH PRIVILEGES; +
-quit; +
-</code>+
  
 现在下载最新 Nextcloud 版本的存档: 现在下载最新 Nextcloud 版本的存档:
行 288: 行 262:
  
 <code -> <code ->
-tar -xjvf nextcloud-x.y.z.tar.bz2 +scp .\nextcloud.zip user@127.0.0.1:/home/user 
-unzip nextcloud-x.y.z.zip + 
-sudo cp -r nextcloud /var/www+unzip nextcloud.zip 
 +sudo mv ./nextcloud /var/www/
 sudo chown -R www-data:www-data /var/www/nextcloud sudo chown -R www-data:www-data /var/www/nextcloud
 </code> </code>
 +
 +浏览器访问向导安装
 +
 +管理员 admin
 +
 +密码 123456
 +
 +路径默认 /var/www/nextcloud/data  
 +
 +数据库用户 admin  
 +
 +数据库密码 123456
 +
 +数据库名称 nextcloud_db
 +
 +数据库地址 localhost:3306
  
  
  • 软件/nextcloud.1761066732.txt.gz
  • 最后更改: 2025/10/22 01:12
  • admin