基于nginx+fastdfs的图片服务器 & springBoot+nginx+fastdfs整合
一、基于nginx+fastdfs的图片服务器
参考文献:
(1)https://blog.csdn.net/tzconn/article/details/79318511
关注:
1、下载和安装好nginx和fastdfs后,最好在虚拟机中将对应的端口开发。
2、真的要学会查看对应的模块的日志文件。
二、整合 springBoot+nginx+fastdfs
参考文献:
(1)https://blog.csdn.net/weixin_41570890/article/details/109508318
(2)https://blog.csdn.net/justry_deng/article/details/81042379 ——httpClient使用
关注:
1、使用fastdfs工具上传图片上时,需要开启tracker、storage,并确保虚拟机已经开放对应的端口。
2、httpClient客户端向nginx发起http调用。
3、nginx和fastdfs分工:
-- nginx:通过反向代理服务器,方便资源访问和调度。
-- fastdfs:图片的上传、保存,并返回图片在服务器的相对位置(组名+文件名)

浙公网安备 33010602011771号