unzip -x libfastcommon-master.zip
./make.sh
./make.sh install
/usr/include/fastcommon cd FastDFS
./make.sh
./make.sh install file /usr/local/bin/fdfs_trackerd does not exist!
cp init.d/fdfs_trackerd /usr/local/bin/
[root@ser-tracker- FastDFS]# /etc/init.d/fdfs_trackerd start
file /usr/local/bin/stop.sh does not exist! cp *.sh /usr/local/bin/ #创建fastdfs用户
/usr/sbin/groupadd fastdfs
/usr/sbin/useradd -g fastdfs fastdfs ./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module :%s/\/usr\/local\/bin/\/usr\/bin/g ln -s /data0/data /home/fastdfs/storage/data/M00 scp /usr/local/nginx/conf/vhosts/fdfs.conf root@192.8.2.234:/usr/local/nginx/conf/vhosts/ ln -s /data0/data /home/fastdfs/storage/data/M00 group1/M00///oYYBAFRTYVCASSwnAAA9xXln_4s789.jpg group1/M00///oYYBAFRTYZOAGGcnAAQJ2UjNiTU288.jpg group1/M00///oYYBAFRTYZyASSgvAAlVE-DOvkk681.jpg server_names_hash_bucket_size ;
client_header_buffer_size 32k;
large_client_header_buffers 32k;
client_max_body_size 300m;
sendfile on;
tcp_nopush on;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout ;
proxy_send_timeout ;
proxy_read_timeout ;
proxy_buffer_size 16k;
proxy_buffers 64k;
proxy_busy_buffers_size 128k;
proxy_temp_file_write_size 128k; gzip on;
gzip_min_length 1k;
gzip_buffers 16k;
gzip_http_version 1.1;
gzip_comp_level ;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_vary on; proxy_cache_path /var/cache/nginx/proxy_cache levels=: keys_zone=http-cache:500m max_size=10g inactive=30d;
proxy_temp_path /var/cache/nginx/proxy_cache/tmp; location ~ /purge(/.*) {
allow 127.0.0.1;
deny all;
proxy_cache_purge tmpcache $$is_args$args;
} groupadd fastdfs
useradd -g fastdfs -s /sbin/nologin -M fastdfs mkdir -p /home/fastdfs
chown -R fastdfs:fastdfs /home/fastdfs /usr/bin/fdfs_trackerd /etc/fdfs/conf/tracker.conf restart /usr/bin/fdfs_storaged /etc/fdfs/conf/storage.conf restart yum -y install gcc gcc-c++ zlib zlib-devel groupadd www
useradd -g www -s /sbin/nologin -M www wget http://luajit.org/download/LuaJIT-2.0.3.tar.gz
wget http://openresty.org/download/ngx_openresty-1.7.2.1.tar.gz | tar xz # 编译 安装
cd ngx_openresty-1.7.2.1
./configure
make && make install ./configure \
--with-http_lua_module \
--with-jemalloc \
--user=www --group=www \
--with-http_lua_module \
--with-luajit-inc=/usr/local/include/luajit-2.0 \
--with-luajit-lib=/usr/local/lib/ \
--add-module=/home/software/fastdfs-nginx-module-master/src \
--add-module=/home/software/nginx-gridfs-master \
&& make && make install \
&& echo "OK" || echo "Failed" ./configure \
--with-http_lua_module \
--with-jemalloc \
--user=www --group=www \
--with-http_lua_module \
--with-luajit-inc=/usr/local/include/luajit-2.0 \
--with-luajit-lib=/usr/local/lib/ \
--add-module=/root/software/ngx_cache_purge-master \ server_names_hash_bucket_size ;
client_header_buffer_size 32k;
large_client_header_buffers 32k;
client_max_body_size 300m;
sendfile on;
tcp_nopushon;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout ;
proxy_send_timeout ;
proxy_read_timeout ;
proxy_buffer_size 16k;
proxy_buffers 64k;
proxy_busy_buffers_size 128k;
proxy_temp_file_write_size 128k;
#设置缓存存储路径、存储方式、分配内存大小、磁盘最大空间、缓存期限
proxy_cache_path /var/cache/nginx/proxy_cache levels=: keys_zone=http-cache:500m max_size=10g inactive=30d;
proxy_temp_path /var/cache/nginx/proxy_cache/tmp; proxy_next_upstream http_502 http_504 error timeout invalid_header;
proxy_cache http-cache;
proxy_cache_valid 12h;
proxy_cache_key $uri$is_args$args;
proxy_pass http://fdfs_group1;
expires 30d; /root/software/ngx_cache_purge-master # 更改脚本权限
chmod a+x /etc/init.d/nginx
chkconfig --add nginx && chkconfig nginx on --------------------------------------------
在启动nginx时会出现,sbin/nginx: error while loading
shared libraries: libluajit-5.1.so.: cannot open shared object file:
No such file or directory 这个的错误信息,导致nginx无法启动
# 解决方法:
echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local_lib.conf
/sbin/ldconfig mkdir -p /data0
mkdir -p /home/fastdfs/storage/data/M00
ln -s /data0/data /home/fastdfs/storage/data/M00
ln -s /data0/data /home/fastdfs/storage/data/M00 cat fastdfs_client.ini >> /etc/php.ini http://www.linuxidc.com/Linux/2014-10/107577p2.htm curl -i http://127.0.0.1/group1/M00/00/00/wKgBCFRjKZeANqfTAAAADFmwwCQ735.txt

Cento 安装配置FastFDS的更多相关文章

  1. Hive安装配置指北(含Hive Metastore详解)

    个人主页: http://www.linbingdong.com 本文介绍Hive安装配置的整个过程,包括MySQL.Hive及Metastore的安装配置,并分析了Metastore三种配置方式的区 ...

  2. Hive on Spark安装配置详解(都是坑啊)

    个人主页:http://www.linbingdong.com 简书地址:http://www.jianshu.com/p/a7f75b868568 简介 本文主要记录如何安装配置Hive on Sp ...

  3. ADFS3.0与SharePoint2013安装配置(原创)

    现在越来越多的企业使用ADFS作为单点登录,我希望今天的内容能帮助大家了解如何配置ADFS和SharePoint 2013.安装配置SharePoint2013这块就不做具体描述了,今天主要讲一下怎么 ...

  4. Hadoop的学习--安装配置与使用

    安装配置 系统:Ubuntu14.04 java:1.7.0_75 相关资料 官网 下载地址 官网文档 安装 我们需要关闭掉防火墙,命令如下: sudo ufw disable 下载2.6.5的版本, ...

  5. redis的安装配置

    主要讲下redis的安装配置,以及以服务的方式启动redis 1.下载最新版本的redis-3.0.7  到http://redis.io/download中下载最新版的redis-3.0.7 下载后 ...

  6. Windows环境下的NodeJS+NPM+Bower安装配置

    npm作为一个NodeJS的模块管理,之前我由于没有系统地看资料所以导致安装配置模块的时候走了一大段弯路,所以现在很有必要列出来记录下.我们要先配置npm的全局模块的存放路径以及cache的路径,例如 ...

  7. ubuntu kylin 14.04安装配置MongoDB v2.6.1(转)

    1.获取最新版本 https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.1.tgz 2.解压并进入bin目录 tar zxvf mongo ...

  8. Django基础之安装配置

    安装配置 一 MVC和MTV模式 著名的MVC模式:所谓MVC就是把web应用分为模型(M),控制器(C),视图(V)三层:他们之间以一种插件似的,松耦合的方式连接在一起. 模型负责业务对象与数据库的 ...

  9. 【转】Windows平台下的Subversion安装配置新手指南

    原文地址:http://developer.51cto.com/art/201005/199628.htm 本文介绍Subversion安装配置快速指南,首先讲Subversion的安装和配置,Uni ...

随机推荐

  1. Ubuntu / Win7 安装db2 v10.5

    抓紧下载v10.5fp1_linuxx64_expc.tar.gz到~/Downloads/java_softcd java_softtar xf v10.5fp1_linuxx64_expc.tar ...

  2. phpcms标签使用 —— 系统常量

    以下系统常量全局可用 1 2 3 4 5 6 7 8 9 10 11 12 13 CACHE_PATH 缓存文件夹地址 SITE_PROTOCOL 主机协议 SITE_URL 当前访问的主机名 HTT ...

  3. VS2013缺少报表工具

    问题1:缺少报表设计工具--即rdlc无法打开设计器 原因:缺少SQL Server Data Tools(SSDT)工具 解决:安装ssdt即可 SSDT下载地址:https://msdn.micr ...

  4. objective-c 遍历文件夹查看文件

    #import <Foundation/Foundation.h>int main (int argc, const char * argv[]){    @autoreleasepool ...

  5. 通信原理实践(五)——2PSK 与2DPSK 通信系统

    一.一些Matlab函数 二.2PSK调制解调,性能分析 1.2PSK调制 (1)图示 (2)Matlab代码 function [ s_t ,bb_t,bits] = psk2_module( nS ...

  6. loadrunner通过C语言实现自定义字符出现次数截取对应字符串

    void lr_custom_string_delim_save(char inputStr[500], char* outputStr, char *delim, int occrNo, int s ...

  7. java中HashMap详解

    HashMap 和 HashSet 是 Java Collection Framework 的两个重要成员,其中 HashMap 是 Map 接口的常用实现类,HashSet 是 Set 接口的常用实 ...

  8. express-18 路由

    简介 路由是网站或Web服务中最重要的一个方面:路由是将请求(由URL和HTTP方法指定)路由到处理它们的代码去的一种机制. 路由过去是基于文件的,这很简单,但不灵活. IA 是指内容的概念性组织.在 ...

  9. C#获取IP地址

    public string GetUserIP()   {        string _userIP;       if(Request.ServerVariables["HTTP_VIA ...

  10. 看Ue4角色代码——跳跃与实现二段跳

    看了一下终于发现了跳跃的关键代码 bool UCharacterMovementComponent::DoJump(bool bReplayingMoves) { if ( CharacterOwne ...