tgnan 发表于 2013-05-12 19:50

storage进程目录设置错误,无法启动服务,修改正常后也不能启动服务,

本帖最后由 tgnan 于 2013-05-12 20:56 编辑

服务器环境
CentOS5.6_x64环境
libevent是用yum更新的。
FastDFS版本为3.11
部署在一台服务器上。

storage存放目录
/opt/fastdfs/fastdfs_storage

在配置该目录时将地址写错了,写成了/opt/fastdfs/fastdfs_storge
导致服务启动时失败。后通过log信息修正该错误,
服务也启动不起来。。

请问,我必须重装系统吗。
还是可以有其他的替代方案呢?

happy_fish100 发表于 2013-05-12 22:17

看日志啊!

tgnan 发表于 2013-05-12 22:35

回复 2# happy_fish100


我将日志贴出:

INFO - FastDFS v3.11, base_path=/opt/fastdfs/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, work_threads=4, disk_rw_separated=1, disk_reader_threads=1, disk_writer_threads=1, buff_size=256KB, heart_beat_interval=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_priority=10, if_alias_prefix=, check_file_duplicate=0, FDHT group count=0, FDHT server count=0, FDHT key_namespace=, FDHT keep_alive=0, HTTP server port=8888, domain name=
INFO - HTTP supported: server_port=8888, http_trunk_size=262144, default_content_type=application/octet-stream, anti_steal_token=0, token_ttl=0s, anti_steal_secret_key length=0, token_check_fail content_type=, token_check_fail buff length=0
ERROR - file: storage_func.c, line: 750, mkdir "/opt/fastdfs/fastdfs_storge/data" fail, errno: 2, error info: No such file or directory
CRIT - file: storage_func.c, line: 1565, storage_check_and_make_data_dirs fail, program exit!

   

happy_fish100 发表于 2013-05-13 09:20

mkdir "/opt/fastdfs/fastdfs_storge/data" fail, errno: 2, error info: No such file or directory
这个错误提示已经告诉了你!原因是目录/opt/fastdfs/fastdfs_storge/不存在!

tgnan 发表于 2013-05-13 15:00

我已查明,是storage.conf的另外一处配置的问题,
我已经解决。
感谢回复。。。

benbenlover62 发表于 2014-01-14 15:43

我现在也遇到你的问题了,请问是怎么解决的,谢谢!
页: [1]
查看完整版本: storage进程目录设置错误,无法启动服务,修改正常后也不能启动服务,