... | @@ -101,13 +101,17 @@ netstat -an | grep 11411 |
... | @@ -101,13 +101,17 @@ netstat -an | grep 11411 |
|
```
|
|
```
|
|
##4、设置FastDHT开机自启
|
|
##4、设置FastDHT开机自启
|
|
```
|
|
```
|
|
`vi /etc/rc.local `
|
|
vi /etc/rc.local
|
|
加入以下配置:
|
|
#加入以下配置:
|
|
`fdhtd /etc/fdht/fdhtd.conf`
|
|
fdhtd /etc/fdht/fdhtd.conf
|
|
如果开启自启不生效,可能是centOS找不到fdhtd文件。建议把全路径写上:`/usr/local/bin/fdhtd /etc/fdht/fdhtd.conf`
|
|
#如果开启自启不生效,可能是centOS找不到fdhtd文件。建议把全路径写上:`/usr/local/bin/fdhtd /etc/fdht/fdhtd.conf`
|
|
执行命令,使之生效:
|
|
#执行命令,使之生效:
|
|
`chmod +x /etc/rc.local `
|
|
chmod +x /etc/rc.local
|
|
```
|
|
```
|
|
## 5、验证
|
|
## 5、验证
|
|
多次执行命令来上传同一个文件:` fdfs_upload_file /etc/fdfs/client.conf /usr/local/src/nginx-1.15.4.tar.gz`
|
|
```
|
|
在../fastdfs/storage/data/00/01目录,存在多个软连接,说明FastDHT文件去重功能已经成功实现 |
|
#多次执行命令来上传同一个文件:
|
|
\ No newline at end of file |
|
fdfs_upload_file /etc/fdfs/client.conf /usr/local/src/nginx-1.15.4.tar.gz
|
|
|
|
#目录存在多个软连接,说明FastDHT文件去重功能已经成功实现
|
|
|
|
ll ../fastdfs/storage/data/00/01
|
|
|
|
``` |
|
|
|
\ No newline at end of file |