#!/bin/bash
yum -y install gcc gcc-c++ automake autoconf libtool make pcre pcre-devel zlib zlib-devel openssl openssl-devel
mkdir /usr/local/kernel
mv fastdfs-nginx-module-1.22.tar.gz nginx-http-concat-master.zip nginx-1.18.0.tar.gz /usr/local/kernel
cd /usr/local/kernel
tar -xf nginx-1.18.0.tar.gz
tar -xf fastdfs-nginx-module-1.22.tar.gz
unzip nginx-http-concat-master.zip
sed -i.bak 's/usr\/local\/include/usr\/include\/fastdfs \/usr\/include\/fastcommon/' /usr/local/kernel/fastdfs-nginx-module-1.22/src/config
cp /usr/local/kernel/fastdfs-nginx-module-1.22/src/mod_fastdfs.conf /etc/fdfs/
cp /etc/fdfs/mod_fastdfs.conf /etc/fdfs/mod_fastdfs.conf.bak
sed -i 's/tracker_server=tracker:22122/tracker_server=192.168.1.134:22122/' /etc/fdfs/mod_fastdfs.conf
sed -i 's/store_path0=\/home\/yuqing\/fastdfs/store_path0=\/data\/fastdfs/' /etc/fdfs/mod_fastdfs.conf
sed -i 's/url_have_group_name = false/url_have_group_name = true/' /etc/fdfs/mod_fastdfs.conf
chmod 755 -R /etc/fdfs
cd /usr/local/kernel/nginx-1.18.0
./configure --prefix=/usr/local/nginx --with-stream --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --add-module=../fastdfs-nginx-module-1.22/src --add-module=../nginx-http-concat-master
make && make install
#--prefix 指定安装路径
#--with-http_stub_status_module 支持查看 nginx 状态的模块
#--with-http_ssl_module 支持https的模块
#--with-http_realip_module 支持查看真实ip的模块
ln -s /usr/local/nginx/sbin/nginx /usr/local/bin/
nginx -vt
没有合适的资源?快使用搜索试试~ 我知道了~
Fastdfs集群搭建
共8个文件
gz:5个
sh:2个
zip:1个
0 下载量 100 浏览量
2023-08-07
10:13:24
上传
评论
收藏 2.76MB ZIP 举报
温馨提示
Fastdfs集群搭建
资源推荐
资源详情
资源评论
收起资源包目录
nginx+fdfs.zip (8个子文件)
nginx+fdfs
nginx-1.18.0.tar.gz 1015KB
libevent-2.0.20-stable.tar.gz 826KB
install_nginx1.18.sh 2KB
install_fastdfs.sh 1KB
fastdfs-nginx-module-1.22.tar.gz 19KB
nginx-http-concat-master.zip 7KB
fastdfs-6.06.tar.gz 790KB
libfastcommon-1.0.43.tar.gz 163KB
共 8 条
- 1
资源评论
LuMaman
- 粉丝: 21
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功