passedbylove

背景

公司内网一部分文件,需要在外网可以看到,内网路由设置FTP PASV模式麻烦/没成功。

 

nginx搭建服务器方法:

#安装nginx
yum install nginx
systemctl enable nginx.service

修改配置文件

server {
 location / {
                charset utf-8; #防止非ascii(中文等)字符乱码
                root    /data/ftp; #ftp上传文件的目录
                autoindex on; #开启目录浏览
        }
}

启动服务器

systemctl start nginx.service

效果如下:

 

分类:

技术点:

相关文章:

  • 2021-11-30
  • 2021-09-19
  • 2022-02-12
  • 2021-12-08
  • 2021-11-04
  • 2021-11-14
  • 2021-11-15
  • 2022-01-17
猜你喜欢
  • 2021-10-10
  • 2021-11-04
  • 2022-03-07
  • 2021-12-17
  • 2021-08-01
  • 2021-07-22
  • 2021-07-19
相关资源
相似解决方案