我这个看这懵逼 结合起来看就蒙了
下面俩路径
安装FastDFS 服务器
安装文件
fastdfs-nginx-module_v1.16.tar.gz libfastcommon-master.zip FastDFS_v5.08.tar.gz libevent-2.0.22-stable.tar.gz unzip libfastcommon-master.zip cd libfastcommon-master/ ./make.sh && ./make.sh install
fdfs安装最新
191 yum install -y gcc gcc-c++ 192 yum -y install libevent 193 wget https://github.com/happyfish100/libfastcommon/archive/V1.0.7.tar.gz 194 yum -y install zlib zlib-devel pcre pcre-devel gcc gcc-c++ openssl openssl-devel libevent libevent-devel perl unzip net-tools wget 195 wget https://github.com/happyfish100/libfastcommon/archive/V1.0.7.tar.gz 196 tar -zxvf libfastcommonV1.0.7.tar.gz -C /usr/local/ 197 cd /usr/local/ 198 ls 199 cd 200 ls 201 tar -zxvf V1.0.7.tar.gz -C /usr/local/ 202 cd /usr/local/libfastcommon-1.0.7/ 203 ls 204 ./make.sh 205 ./make.sh install 206 cd /usr/lib64/ 207 ls 208 ls | grep libfastcommon.so 209 cp libfastcommon.so /usr/lib 210 cd 211 wget https://github.com/happyfish100/fastdfs/archive/V5.05.tar.gz 212 ip addr 213 ls 214 tar -zxvf v5.05.tar.gz -C /usr/local 215 tar -zxvf V5.05.tar.gz -C /usr/local 216 cd /usr/local 217 ls 218 cd fastdfs-5.05/ 219 LS 220 ls 221 ./make.sh && ./make.sh install 222 cp /usr/local/fastdfs-5.05/conf/* /etc/fdfs/ 223 cd /etc/ 224 cd fdfs/ 225 ls 226 vi tracker.conf 227 /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart 228 mkdir -p /leyou/fdfs/tracker 229 /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart 230 ps -ef | grep fdfs 231 ls 232 vi storage.conf 233 service fdfs_storaged start 234 mkdir -p /leyou/fdfs/storage 235 /usr/bin/fdfs_storaged /etc/fdfs/storage.conf restart 236 ps -ef | grep fdfs 237 history 238 chkconfig fdfs_storaged on 239 ll 240 vi client.conf 241 cd /tm 242 cd /tmp/ 243 ls 244 cd /etc/fdfs/ 245 ls 246 /usr/bin/fdfs_upload_file client.conf /tmp/ 247 /usr/bin/fdfs_upload_file client.conf /tmp/git.png 248 pwd 249 cd /leyou/fdfs/storage/ 250 ls 251 cd data/ 252 ls 253 nginx 254 ps -ef | grep nginx 255 cd 256 ls 257 wget http://jaist.dl.sourceforge.net/project/fastdfs/FastDFS%20Nginx%20Module%20Source%20Code/fastdfs-nginx-module_v1.16.tar.gz 258 ls 259 tar -zxvf fastdfs-nginx-module_v1.16.tar.gz -C /usr/local 260 cd /usr/local/fastdfs-nginx-module//src/ 261 ls 262 vi config 263 history 264 cp mod_fastdfs.conf /etc/fdfs/ 265 cd /etc/fdfs/ 266 ls 267 vi mod_fastdfs.conf 268 ls 269 cd /home/leyou/nginx-1.10.0 270 ls 271 cd .. 272 ls 273 ll /etc/fdfs/ 274 ls 275 ls /usr/local/ 276 ls 277 cd nginx-1.10.0 278 ./configure --prefix=/opt/nginx --sbin-path=/usr/bin/nginx --add-module=/usr/local/fastdfs-nginx-module/src/ 279 make 280 ls 281 cd objs/ 282 ls 283 mv /usr/bin/nginx /usr/bin/nginx-bck 284 cp nginx /usr/bin/ 285 ls 286 nginx -s stop 287 cp nginx /usr/bin/ 288 vi /opt/nginx/conf/nginx.conf 289 nginx 290 vi /opt/nginx/conf/nginx.conf 291 nginx -s reload 292 history
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/176907.html原文链接:https://javaforall.net
