搭建文件下载网站
1. 搞一台服务器
这里我就用三丰云(其它平台的都领完了)
自己领取一下

进入管理页面

进行初始化(这里按照默认的就好了)

经过漫长的等待


访问之后修改一下用户名密码就是你安装操作系统时输入的那个密码
修改之后登入

宝塔只是为了方便管理
准备开始搭建
这里我准备使用nginx搭建
其实有很多方法都可以搭建
比如apache,ftp,nfs,Samba,nginx…
安装nginx

安装一下
安装完成
浏览器访问ip

ok
修改一下nginx配置文件
文章
改成差不多这样的
server
{
listen 80;
server_name localhost;
location / {
#root /usr/share/nginx/html;
alias /usr/share/nginx/html/;
index index.html index.htm;
}
location /downloads {
#root /usr/share/nginx;
alias /usr/share/nginx/downloads/;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}
#error_page 404 /404.html;
include enable-php.conf;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}
access_log /www/wwwlogs/access.log;
}
上传文件

在usr下的share下创建nginx文件夹z
在nginx文件夹下创建downloads文件夹
在downloads文件夹下上传文件

效果
