阿里云搭建fastDFS+nginx,storage目录下没有data目录
查看storage目录下的日志
[root@hqq ~]# cd /home/hqq/fastdfs/storage/ [root@hqq storage]# ll total 8 drwxr-xr-x 2 root root 4096 Feb 26 23:05 logs [root@hqq storage]# cd logs/ [root@hqq logs]# ll total 28 -rw-r--r-- 1 root root 27851 Feb 27 03:17 storaged.log [root@hqq logs]# vim storaged.log
发现22122端口连接超时,去阿里云后台开放22122端口和23000端口(23000端口后面需要用到)
1 [2022-02-26 22:33:00] INFO - FastDFS v5.11, base_path=/home/hqq/fastdfs/storage, store_path_count=1, subdir_count_per_path=256, group_name=group1, run_by_group=, run_by_user=, connect_timeout=30s, network_ timeout=60s, port=23000, bind_addr=, client_bind=1, max_connections=256, accept_threads=1, work_threads=4, disk_rw_separated=1, disk_reader_threads=1, disk_writer_threads=1, buff_size=256KB, heart_beat_int erval=30s, stat_report_interval=60s, tracker_server_count=1, sync_wait_msec=50ms, sync_interval=0ms, sync_start_time=00:00, sync_end_time=23:59, write_mark_file_freq=500, allow_ip_count=-1, file_distribute _path_mode=0, file_distribute_rotate_count=100, fsync_after_written_bytes=0, sync_log_buff_interval=10s, sync_binlog_buff_interval=10s, sync_stat_file_interval=300s, thread_stack_size=512 KB, upload_priori ty=10, if_alias_prefix=, check_file_duplicate=0, file_signature_method=hash, FDHT group count=0, FDHT server count=0, FDHT key_namespace=, FDHT keep_alive=0, HTTP server port=8888, domain name=, use_access _log=0, rotate_access_log=0, access_log_rotate_time=00:00, rotate_error_log=0, error_log_rotate_time=00:00, rotate_access_log_size=0, rotate_error_log_size=0, log_file_keep_days=0, file_sync_skip_invalid_r ecord=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s 2 2 [2022-02-26 22:34:46] ERROR - file: storage_ip_changed_dealer.c, line: 186, connect to tracker server ip:22122 fail, errno: 110, error info: Connection timed out 3 3 [2022-02-26 22:36:31] ERROR - file: storage_ip_changed_dealer.c, line: 186, connect to tracker server ip:22122 fail, errno: 110, error info: Connection timed out 4 4 [2022-02-26 22:38:16] ERROR - file: storage_ip_changed_dealer.c, line: 186, connect to tracker server ip:22122 fail, errno: 110, error info: Connection timed out
重启启动
[root@hqq ~]# service fdfs_storaged start
Starting fdfs_storaged (via systemctl): [ 确定 ]
再次查看storage目录
1 [root@hqq storage]# ll 2 total 8 3 drwxr-xr-x 259 root root 4096 Feb 26 22:50 data 4 drwxr-xr-x 2 root root 4096 Feb 27 15:05 logs 5 [root@hqq storage]#
查看 logs 目录下的日志
1 13 data path: /home/hqq/fastdfs/storage/data, mkdir sub dir... 2 14 mkdir data path: 00 ... 3 15 mkdir data path: 01 ...
完美解决~

浙公网安备 33010602011771号