树莓派安装FastDFS

上传
libfastcommon-1.0.36.tar.gz
fastdfs-5.11.tar.gz
nginx-1.13.9.tar.gz
fastdfs-nginx-module-master.zip
解压
tar -zxvf libfastcommon-1.0.36.tar.gz
tar -zxvf fastdfs-5.11.tar.gz
tar -zxvf nginx-1.13.9.tar.gz
unzip fastdfs-nginx-module-master.zip
安装
cd libfastcommon-1.0.36/
./make.sh
./make.sh install
cd fastdfs-5.11/
./make.sh
./make.sh install
cd /etc/fdfs/
cp tracker.conf.sample tracker.conf
cp storage.conf.sample storage.conf
vi storage.conf
修改tracker_server=192.168.1.113:22122
mkdir /home/yuqing
mkdir /home/yuqing/fastdfs
/etc/init.d/fdfs_trackerd start
/etc/init.d/fdfs_storaged start
apt-get install libpcre3 libpcre3-dev
cd nginx-1.13.9
./configure --add-module=/home/fastdfs/fastdfs-nginx-module-master/src
make
make install
/usr/local/nginx/sbin/nginx -V
cp /home/fastdfs/fastdfs-nginx-module-master/src/mod_fastdfs.conf /etc/fdfs/
vi mod_fastdfs.conf
修改tracker_server=192.168.1.113:22122
修改url_have_group_name = true
cd /home/fastdfs/fastdfs-5.11/conf
cp anti-steal.jpg http.conf mime.types /etc/fdfs/
cd /usr/local/nginx/conf/
vi nginx.conf
location ~/group1/M00 {
ngx_fastdfs_module;
}
cd /usr/local/nginx/sbin
./nginx

猜你喜欢

转载自liunancun.iteye.com/blog/2412915