Centos610FastDFS单机模式-调度器安装配置 Centos610FastDFS单机模式-FastDFS安装

我们在Centos610FastDFS单机模式-FastDFS安装 中已经完成了FastDFS的安装,接下来我们进行FastDFS调度器的安装。

1.找到FastDFS配置目录

   cd /etc/fdfs

   cp tracker.conf.sample tracker.conf

  设置tracker工作目录

  mkdir /opt/fastdfs/tracker

  编辑tracker.conf文件

  vi /etc/fdfs/tracker.conf

# 绑定IP,为空绑定所有,默认为空,正式环境需填写,这里我们可以不填
bind_addr=

# tracker 服务的端口号
port=22122

# tracker的工作目录,这里是我刚刚创建的文件路径
base_path=/opt/fastdfs/tracker

# 为服务器预留多少空间,默认是10%。可根据自己环境条件自行修改
reserved_storage_space = 10%

# tracker访问开放端口号,默认是8080,到时候用来访问文件会用到
http.server_port=9100

2.添加tracker开机自启动

 //添加至开机启动项

  chkconfig --add fdfs_trackerd

 设置开机启动

  chkconfig fdfs_trackerd  on

 启动fdfs_trackerd 服务

  service fdfs_trackerd start

至此 tracker配置完成

 

猜你喜欢

转载自www.cnblogs.com/oumi/p/11281007.html
今日推荐