1. 公司网络安全不让用vsftpd的匿名网络访问了, 没办法 只能够使用 nginx 通过http协议来处理.
2. 最简单的办法就是另外开一个nginx进程简单设置一下nginx的配置文件
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
sendfile on;
gzip on;
server {
listener 80;
server_name localhost;
location / {
root /gscloud/;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}
}
}3. 直接打开就可以
nginx -c gscloud.conf
4. 直接使用浏览器即可
