[root@linuxidc.com /etc/fdfs]# fdfs_storaged /etc/fdfs/storage.conf restart
#查看端口是否起来
[root@linuxidc.com /etc/fdfs]# netstat -antp | grep storage
tcp
0
0 0.0.0.0:23000
0.0.0.0:*
LISTEN
10333/fdfs_storaged
tcp
0
0 10.1.20.245:57886
10.1.20.245:22122
ESTABLISHED 10333/fdfs_storaged
5. 可以使用 fdfs_monitor 来查看一下storage的状态,看是否已经成功注册到了tracker
[......]# fdfs_monitor /etc/fdfs/storage.conf
#也可以以下命令来监控服务器的状态:
[......]# fdfs_monitor /etc/fdfs/client.conf
base_path=/home/yuqing/fastdfs--> base_path=/home/soar/fastdfs_tracker
tracker_server=192.168.209.121:22122 --> tracker_server=10.1.20.245:22122
http.tracker_server_port=80 ->http.tracker_server_port=8080
#支持http
##include http.conf ->#include http.conf
b、进入/usr/local/bin/目录,上传文件,执行
sudo fdfs_test /etc/fdfs/client.conf upload a.txt
注:a.txt可以在/usr/local/bin/目录下自己创建一个
如果命令行反馈类似如下:
说明上传完成。
Ubuntu 14.04下部署FastDFS 5.08+Nginx 1.9.14
CentOS 6.2下fastDFS的完整安装和配置步骤