zoukankan      html  css  js  c++  java
  • 安装FastFDS

    本文主要是介绍如何在linux下安装FastFDS并挂载到Nginx下。

    服务器IP:192.168.1.100(替换自己对应的ip地址即可)
    (1) 安装FastFDS $ cp
    /opt/fastdfs-5.10.tar.gz # 下载安装包copy到opt目录下 $ cd /opt/ $ tar -zxvf fastdfs-5.10.tar.gz $ cd fastdfs-5.10 $ ./make.sh # 编译、安装 $ ./make.sh install 默认安装方式安装后的相应文件与目录   A、服务脚本: /etc/init.d/fdfs_storaged /etc/init.d/fdfs_tracker B、配置文件(这三个是作者给的样例配置文件) : /etc/fdfs/client.conf.sample /etc/fdfs/storage.conf.sample /etc/fdfs/tracker.conf.sample C、命令工具在 /usr/bin/目录下: fdfs_appender_test fdfs_appender_test1 fdfs_append_file fdfs_crc32 fdfs_delete_file fdfs_download_file fdfs_file_info fdfs_monitor fdfs_storaged fdfs_test fdfs_test1 fdfs_trackerd fdfs_upload_appender fdfs_upload_file stop.sh restart.sh FastDFS 服务脚本设置的 bin 目录是 /usr/local/bin, 但实际命令安装在 /usr/bin/ 下。 建立 /usr/bin 到 /usr/local/bin 的软链接: $ ln -s /usr/bin/fdfs_trackerd /usr/local/bin $ ln -s /usr/bin/fdfs_storaged /usr/local/bin $ ln -s /usr/bin/stop.sh /usr/local/bin $ ln -s /usr/bin/restart.sh /usr/local/bin $ mkdir /opt/fastdfs_tracker $ cd /etc/fdfs $ cp tracker.conf.sample tracker.conf $ vim tracker.conf # Tracker 数据和日志目录地址(根目录必须存在,子目录会自动创建) base_path=/opt/fastdfs_tracker # HTTP 服务端口 http.server_port=80 $ netstat -unltp|grep fdfs # netstat命令查看一下端口监听情况 ######### Storage安装 ############ $ mkdir /opt/fastdfs_storage $ mkdir /opt/fastdfs_storage_data $ cd /etc/fdfs $ cp storage.conf.sample storage.conf $ vim storage.conf base_path=/opt/fastdfs_storage http.server_port=80 #tracker_server=192.168.1.100:22122 store_path0=/opt/fastdfs_storage_data base_path=/opt/fastdfs_storage
    # 启动服务 $
    /usr/bin/fdfs_storaged /etc/fdfs/storage.conf
    $ service fdfs_trackerd start $ service fdfs_storaged start $ netstat
    -unltp|grep fdfs
    (2) 挂载模块到nginx下 # fastdfs
    -nginx-module $ unzip fastdfs-nginx-module-master.zip $ cd /opt/fastdfs-nginx-module-master/src/ $ cd /root/nginx-1.11.12 # 添加模块 $ ./configure --add-module=/opt/fastdfs-nginx-module-master/src # 重新编译、安装 $ make && make install 建立软连接 ln -s /data/fastdfs/storage/data /data/fastdfs/storage/data/M00 将FastDFS_v4.06配置目录下的2个文件复制到/etc/fdfs目录下: cp /usr/local/fastdfs-5.10/conf/http.conf . cp /usr/local/fastdfs-5.10/conf/mime.types .
  • 相关阅读:
    win10 uwp 弹起键盘不隐藏界面元素
    win10 uwp 存放网络图片到本地
    win10 uwp 存放网络图片到本地
    sublime Text 正则替换
    sublime Text 正则替换
    win10 uwp 绘图 Line 控件使用
    win10 uwp 绘图 Line 控件使用
    AJAX 是什么?
    什么是 PHP SimpleXML?
    PHP XML DOM:DOM 是什么?
  • 原文地址:https://www.cnblogs.com/ice-line/p/9590536.html
Copyright © 2011-2022 走看看