荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: Neode (看见阳光就微笑), 信区: Newsoftware
标  题: Re: 构建个人FTP服务器之第二,三讲[教程] (zt)
发信站: 荔园晨风BBS站 (Sat Oct 28 17:08:11 2006), 站内

第二讲:


Serv-U中设置虚拟目录的方法!!!

如果在E盘下有一个名为LoveHina的目录,在F盘下也有一个名为LoveHina的目录。
那么,如何让使用同一个账号的用户可以同时访问这两个目录呢?

我们可以使用Serv-U中的“虚拟路径映射 ”功能来解决这个问题,具体的操作方
法如下:

一、 在“域”“设置”下的“常规”中选择“添加”
二、在“步骤一”中选择填写要映射的目录的物理路径,本例中为“F:\LoveHina
三、在“步骤二”中选择物理路径映射到的目录,本例中为“%HOME%”(推荐值)
四、 在“步骤三”中给虚拟目录起一个名字。这个就无所谓了,本例中为“LoveHina03”
五、这样我们就已经建立好了一个虚拟目录的映射
六、现在只是完成了一半的操作,我们还需要做一些权限上的修改,然后才可以让登录到你
FTP上的人看到这个虚拟目录。在“域”下的“用户”中选择一个账号,然后在该账号下的
“目录访问”中选择“添加”
七、在“路径访问规则”中填写已经映射的虚拟目录的物理路径。
八、之后再对该目录设置一些相关权限....设置好以后不要忘记保存设置。


第三讲:


Serv-U 登陆信息提示设置

使用FTP Serv-U安装FTPSERVER的朋友,可以使用Serv-U符号信息参数来向CLIENT
端显示一些重要的信息。
比如:
Mon Dec 10 22:32:46 2001 220-==============================
Mon Dec 10 22:32:46 2001 220-服务器状态:
Mon Dec 10 22:32:46 2001 220-现在时间:22:35:40, 在过去24小时共有 1578
人访问本服务器。
Mon Dec 10 22:32:46 2001 220-本服务器已经运行 0 天 11 小时 37 分 55 秒

Mon Dec 10 22:32:46 2001 220-磁盘空闲空间:1098.11 Mb
Mon Dec 10 22:32:46 2001 220-总登录用户数: 1121 total
Mon Dec 10 22:32:46 2001 220-当前用户数: 10 / 40
Mon Dec 10 22:32:46 2001 220-总下载数据量: 8713447 Kb
Mon Dec 10 22:32:46 2001 220-总上传数据量: 291923 Kb
Mon Dec 10 22:32:46 2001 220-总下载文件数: 2391
Mon Dec 10 22:32:46 2001 220-总上传文件数: 15
Mon Dec 10 22:32:46 2001 220-平均流量: 215.105 Kb/sec
Mon Dec 10 22:32:46 2001 220 当前流量: 68.511 Kb/sec
这些可以显示的信息包括:

Sign-on/sign-off messages 签入/出信息
User specific login messages 用户指定登录信息
Directory change messages 目录改变信息

你可以往这些指定的信息文本里加入符号参数,这些参数在发送给客户时会扩展为
当前状态的内容。
这些符号参数都是以 "%" 号开头的,下面是完整列表

Time/date:  时间部分
%Time - displays the current time on your PC 服务器端的当前时间
%Date - displays the current date on your PC Server 服务器端的当前日期


statistics:  状态统计部分
%ServerDays - displays the number of days the server has been running 服
务器已运行时间(天数)
%ServerHours - displays the number of hours the server has been
running 服务器已运行时间(小时)
%ServerMins - displays the number of minutes the server has been up  服
务器已运行时间(分钟)
%ServerSecs - displays the number of seconds the server has been up 服务
器已运行时间(秒)
%ServerKbUp - displays the no. Kbytes uploaded to the server since
server start 本次启动以来服务器接收的字节数
%ServerKbDown - displays the no. Kb downloaded from the server since
server start 本次启动以来服务器发送的字节数
%ServerFilesUp - displays the no. of files uploaded to the server
since server start 本次启动以来服务器接收的文件数
%ServerFilesDown - displays the no. of files downloaded from the
server since server start 本次启动以来服务器发送的文件数

%LoggedInAll - displays total no. of logged in users since server
start 本次启动以来登录本机的用户数
%ServerAvg - displays the average server throughput since server start
本次启动以来服务器平均吞吐能力
%ServerKBps - displays current server bandwidth use 当前服务器带宽占用


Server settings:  服务器设置

%MaxUsers - displays the maximum no. of users, as set in "Setup -
Server" 最大用户数
%MaxAnonymous - the maximum no. of anonymous users, as set in "Setup -
Server" 最大匿名登录用户数

User inf 用户设置
%Name - displays the user's login name 显示用户的登录名
%IP - displays the user's IP number or name if available 显示登录用户的
IP
%Dir - displays the user's current directory 显示用户当前所在目录
%Disk - displays the user's current disk drive 显示用户的当前磁盘
%DFree - displays the amount of free space on the user's current disk in
 Kb 显示可用的空间
%FUp - displays the number of files uploaded by the current user 当前用
户上传数
%FDown - displays the number of files downloaded 当前用户下载数
%FTot - displays the total number of files transferred 显示当前用户传输
的文件总数
%BUp - displays the number of Kbytes uploaded by the user 显示当前用户上
传的字节总数
%Bdown - displays the number of Kbytes downloaded by the user 显示当前用
户下载的字节总数
%BTot - displays the total number of Kbytes transferred 显示当前用户传输
的字节总数
%TconM - displays the total connect time in minutes 显示连接时间(分钟)

%TconS - displays the connect time in seconds - to be used with
"%tconm" 显示连接时间(秒)
%RatioUp - displays the "upload" ratio part for UL/DL ratios 显示当前用
户上传/下载比率中的"上传百分比"
%RatioDown - displays the "download" ratio part for UL/DL ratios 显示当
前用户上传/下载比率中的"下载百分比"
%RatioCredit - displays the current download credit for UL/DL ratios (Kb
 or "files") 显示当前用户还可以下载的字节数

以下是有关配额的显示
%QuotaUsed - displays how much disk quota is used in Kb 显示配额已使用
部分
%QuotaLeft - displays how much disk quota is left in Kb 显示配额剩余部分

%QuotaMax - displays the maximum amount of disk space that can be used
in Kb Number of users: 磁盘最大可用字节数
%UNow - displays the current number of Serv-U users connected 当前连接在
服务器上的人数
%UAll - displays the number of users since the server was started 本次启
动以来连接过本服务器的用户数
%U24h - displays the number of users in the last 24 hours 二十四小时以来
连接过本服务器的用户数
%UAnonAll - all currently logged in anonymous users 当前连接在服务器上的
匿名用户数
%UAnonThisIP - all anonymous users logged into this IP home
%UNonAnonAll - all non-anonymous users currently logged in
%UNonAnonThisIP - all non-anonymous users logged into this IP home
%UThisName - all current users with the current user name logged into
this IP home下



面是一个例子:

欢迎你在%date %time 访问我们的服务器, 你是第 %unow 个用户,最大
用户数为 %maxusers,在上24小时以来,共有 %u24h个朋友访问这里。

注意,CLIENT端每行只显示80个字符,而返回码就占了4个字符。所以,建议定义
信息每行最多70个字符。

建议:自建FTP的朋友,建议多使用下面的符号:
%Disk - 用户当前磁盘驱动器
%DFree - 用户当前剩余空间(KB)
%QuotaMax - 最大可用磁盘空间(KB)

以便给上传的朋友知道现在的空间可用情况 。

当然可以设置限额:
Menu-->setup--->users...---->Quota: Enable disk quota: Maximum: XXXMB
这样可以用
%QuotaUsed - 已使用多小配额空间(KB)
%QuotaLeft - 还有多小配额空间可以用(kb)
%QuotaMax - 设定的配额

建议是在登入信息和目录改变信息里加入这些宏,这样使用FTP人会方便很多。

************************************************************************
*************
Serv-U FTP Server can display various types of messages:

?Sign-on/sign-off messages

?User specific login messages

?Directory change messages

There are several symbolic parameters that can be entered in the message
 text. These parameters are expanded while being sent to a client.
They all begin with '%'. Here is the complete list:

Time/date

%Time- displays the current time on your PC
%Date- displays the current date on your PC

Server statistics

%ServerDays- displays the number of days the server has been running
%ServerHours- displays the number of hours the server has been running

%ServerMins- displays the number of minutes the server has been up
%ServerSecs- displays the number of seconds the server has been up
%ServerKbUp- displays the no. Kbytes uploaded to the server since server
 start
%ServerKbDown- displays the no. Kb downloaded from the server since
server start
%ServerFilesUp- displays the no. of files uploaded to the server since
server start

%ServerFilesDown- displays the no. of files downloaded from the server
since server start
%LoggedInAll- displays total no. of logged in users since server start

%ServerAvg- displays the average server throughput since server start
%ServerKBps- displays current server bandwidth use

Server settings

%MaxUsers- displays the maximum no. of users, as set in 'Settings -
Domain'
%MaxAnonymous- the maximum no. of anonymous users, as set in 'Settings -
 Domain'

User info

%Name- displays the user's login name
%IP- displays the user's IP number or name if available
%Dir- displays the user's current directory
%Disk- displays the user's current disk drive
%DFree- displays the amount of free space on the user's current disk
in Mb
%FUp- displays the number of files uploaded by the current user
%FDown- displays the number of files downloaded
%FTot- displays the total number of files transferred
%BUp- displays the number of Kbytes uploaded by the user

%Bdown- displays the number of Kbytes downloaded by the user
%BTot- displays the total number of Kbytes transferred
%TconM- displays the total connect time in minutes
%TconS- displays the connect time in seconds - to be used with
'%tconm'
%RatioUp- displays the 'upload' ratio part for UL/DL ratios
%RatioDown- displays the 'download' ratio part for UL/DL ratios
%RatioCredit- displays the current download credit for UL/DL ratios
(Kb or 'files')
%QuotaUsed- displays how much disk quota is used in Kb

%QuotaLeft- displays how much disk quota is left in Kb
%QuotaMax- displays the maximum amount of disk space that can be used in
 Kb

Number of users

%UNow- displays the current number of Serv-U users connected
%UAll- displays the number of users since the server was started
%U24h- displays the number of users in the last 24 hours
%UAnonAll- all currently logged in anonymous users
%UAnonThisIP - all anonymous users logged into this IP home
%UNonAnonAll - all non-anonymous users currently logged in
%UNonAnonThisIP- all non-anonymous users logged into this IP home
%UThisName- all current users with the current user name logged into
this IP home

The file upload and download message directives are for the current
session only (i.e. they do not show the aggregate over multiple
sessions).

The '%ServerDays', '%ServerHours', '%ServerMins', and '%ServerSecs'
directives are meant for use together. The number of hours is what's
left after the number of days is subtracted, and the same goes for the
number of minutes and seconds.

Example Message

Welcome to ftp.cat-soft.com, home of Serv-U!
Local time is %time, and %u24h users have visited over the last 24
hours. This server has been up for %ServerDays days, %ServerHours hours,
 %ServerMins min. and %ServerSecs sec.

Server stats:
Users logged in: %loggedInAll total
Current users: %Unow
Kb downloaded: %ServerKbDown Kb
Kb uploaded: %ServerKbUp Kb
Files downloaded: %ServerFilesDown
Files uploaded: %ServerFilesUp
Average througput: %ServerAvg Kb/sec
Current througput: %ServerKBps Kb/sec

Please keep in mind that the average client has only 80 characters per
line, and the first four are taken up by the reply code. Please be
brief, 70 characters should generally be considered a safe maximum.

Serv-U Help - Copyright ?1995-2001 Cat-Soft, All Rights Reserved

【 在 Neode (看见阳光就微笑) 的大作中提到: 】
: =====================================================
: ▲第一讲:用Serv-U FTP Server构建自己的强力FTP服务器
: ▲第二讲:Serv-U中设置虚拟目录的方法
: ▲第三讲:Serv-U 登陆信息提示设置
: ▲第四讲:架设个人FTP的防火墙设置
: ▲第五讲:动态IP架设FTP教程
: =====================================================
: 第一讲:
: 用Serv-U FTP Server构建自己的强力FTP服务器
: 作者:吕达嵘
: ...................

--
*做我喜欢的&然后喜欢我所做的*


※ 修改:·Neode 于 Oct 28 17:08:44 修改本文·[FROM: 192.168.39.225]
※ 来源:·荔园晨风BBS站 bbs.szu.edu.cn·[FROM: 192.168.39.225]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店