前提:Linux中已经安装好了nginx和ftp服务器vsftpd

一 为用户设置权限  cd /usr/local/nginx/conf通过nginx访问ftp服务器中的图片

二 修改服务器的默认网站根目录位置通过nginx访问ftp服务器中的图片

三 重启nginx  通过nginx访问ftp服务器中的图片

四 关闭防火墙   chkconfig iptables off

测试:浏览器中输入 IP地址/images/图片

通过nginx访问ftp服务器中的图片

相关文章:

  • 2022-02-04
  • 2021-05-28
  • 2021-12-10
  • 2021-11-05
  • 2021-08-09
  • 2021-09-21
  • 2021-12-02
猜你喜欢
  • 2021-12-26
  • 2022-12-23
  • 2021-12-13
  • 2021-08-31
  • 2021-05-18
  • 2021-08-03
  • 2021-07-29
相关资源
相似解决方案