赞
踩
ps aux|grep php-fpm
使用kill命令
kill -USR2 33166
如果您想增加最大上传大小,您还必须修改 您的 php-fpm
配置并增加 upload_max_filesize
和 post_max_size
值。并且修改最大内存大小memory_limit
.您需要重新启动 php-fpm
和您的 HTTP 服务器以便应用这些更改。
参考值可根据 pmcalculator 计算得出
vim /etc/php/8.2/fpm/php.ini
; https://php.net/upload-max-filesize
upload_max_filesize = 20G
; Maximum number of files that can be uploaded via a single request
max_file_uploads = 5
; https://php.net/memory-limit
memory_limit = 7168M
max_input_time = -1
max_execute_time = 3600
修改nginx的nextcloud.conf 配置中的最大上传大小即可
vim /etc/nginx/conf.d/nextcloud.conf
client_max_body_size 0;
如果您在日志文件中看到无意义的消息,例如 ,请将此部分添加到 你的 nginx 配置来抑制它们:client denied by server configuration: /var/www/data/htaccesstest.txt
location = /data/htaccesstest.txt {
allow all;
log_not_found off;
access_log off;
}
vim /etc/nginx/conf.d/nextcloud.conf
在HTTPS配置块中增添以下内容
add_header Strict-Transport-Security max-age=15552000;
add_header Strict-Transport-Security ‘max-age=15552000’ always;
add_header Referrer-Policy “no-referrer” always;
add_header X-Content-Type-Options “nosniff” always;
add_header X-Frame-Options “SAMEORIGIN” always;
add_header X-Permitted-Cross-Domain-Policies “none” always;
add_header X-Robots-Tag “noindex, nofollow” always;
add_header X-XSS-Protection “1; mode=block” always;
重载nginx
systemctl reload nginx
vim /var/www/nextcloud/config/config.php
添加如下语句
‘default_phone_region’ => ‘CN’,
‘default_language’ => ‘zh_CN’,
‘default_locale’ => ‘zh’,
vim /var/www/nextcloud/config/config.php
添加该域名即可
#受信任的域名
‘trusted_domains’ =>
array (
0 => ‘10.0.0.2’,
1 => ‘10.1.1.20’,
2 => ‘nc6.example.com’,
3 => ‘hnc6.example.com’,
4 => ‘nc4.example.com’,
),
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。