最近因存儲(chǔ)空間不足的問(wèn)題,將fastdfs遷移到了另一個(gè)掛載盤(pán),遭遇了上面的情況溅漾,我跟同事找了很久未找到原因,其實(shí)只是因?yàn)?code>目錄權(quán)限未放開(kāi)著榴。進(jìn)行chmod 777 <目錄>
解決添履。
解決過(guò)程,同事查看nginx的錯(cuò)誤日志
過(guò)程中找到的:
[root@localhost logs]# tail -100 error.log
ngx_http_fastdfs_process_init pid=30
[2020-05-22 08:28:39] ERROR - file: ../storage/trunk_mgr/trunk_shared.c, line: 194, "Permission denied" can't be accessed, error info: /var/fdfs/storage
2020/05/22 08:28:39 [alert] 29#0: worker process 30 exited with fatal code 2 and cannot be respawned
ngx_http_fastdfs_process_init pid=36
[2020-05-22 08:42:54] INFO - fastdfs apache / nginx module v1.21, response_mode=proxy, base_path=/var/fdfs/storage, url_have_group_name=1, group_name=group1, storage_server_port=23000, path_count=1, store_path0=/var/fdfs/storage, connect_timeout=2, network_timeout=30, tracker_server_count=1, if_alias_prefix=, local_host_ip_count=8, anti_steal_token=0, token_ttl=0s, anti_steal_secret_key length=0, token_check_fail content_type=, token_check_fail buff length=0, load_fdfs_parameters_from_tracker=1, storage_sync_file_max_delay=86400s, use_storage_id=0, storage server id/ip count=0 / 0, flv_support=1, flv_extension=flv