分享
 
 
 

Serv-U使用SQL Server作为存储源的安装说明

王朝mssql·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

1、运行MSSQL企业管理器,新加数据库ServU,新建SQL登录账号ServU,密码xxxx,指定为数据库的dbowner,指定默认数据库为ServU

2、在企业管理器中选中数据库ServU,进入顶部菜单 工具——查询分析器,将下面"建表SQL语句"后面的所有内容复制到查询分析器中运行

4、创建系统DSN,名称为ServU,指向SQL Server的数据库ServU

5、在Serv-U Administrator里面新建域Simple Domain,使用ODBC存储,在树形菜单中选中Simple Domain,点击右侧控制面板上部的'ODBC'

选项卡,在下面第1、2、3格中分别填入系统DSN的名字、使用的账号、密码,点应用。

6、停止Serv-U服务,到Serv-u安装目录下打开ServUDaemon.ini,将[Domain1]小节下的两行设置"ODBCTables" and "ODBCColumns",替换为

ODBCTables=ftp_users|ftp_groups|ftp_userAccess|ftp_groupAccess|ftp_userIPs|ftp_groupIPs

ODBCColumns=ftpUserName|ftpPassword|sKey|dirHome|loginMsgFile|accessRule|disabled|sessionEncryption|dirHomeLock|hideHidden|alwaysAllowLogin|changePassword|quotaEnable|maxUsersLoginPerIP|speedLimitUp|speedLimitDown|maxUsersConcurrent|timeOutIdle|timeOutSession|ratioUp|ratioDown|ratioCredit|quotaCurrent|quotaMax|expiration|privilege|ftpPasswordType|ratioType|groups|notes|indexNo

7、启动Serv-U服务,OK了

注意:上面所有的名称均可更改;[DomainXX]中的XX应为新建的域对应的数字

建表SQL语句

IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id('dbo.ftp_groupAccess') AND OBJECTPROPERTY(id, 'IsUserTable') = 1)

DROP TABLE dbo.ftp_groupAccess

GO

IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id('dbo.ftp_groupIPs') AND OBJECTPROPERTY(id, 'IsUserTable') = 1)

DROP TABLE dbo.ftp_groupIPs

GO

IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id('dbo.ftp_groups') AND OBJECTPROPERTY(id, 'IsUserTable') = 1)

DROP TABLE dbo.ftp_groups

GO

IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id('dbo.ftp_userAccess') AND OBJECTPROPERTY(id, 'IsUserTable') = 1)

DROP TABLE dbo.ftp_userAccess

GO

IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id('dbo.ftp_userIPs') AND OBJECTPROPERTY(id, 'IsUserTable') = 1)

DROP TABLE dbo.ftp_userIPs

GO

IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id('dbo.ftp_users') AND OBJECTPROPERTY(id, 'IsUserTable') = 1)

DROP TABLE dbo.ftp_users

GO

CREATE TABLE dbo.ftp_groupAccess (

indexNo smallint NOT NULL,

ftpUserName varchar (50) NOT NULL,

accessRule varchar (200) NOT NULL

)

GO

CREATE TABLE dbo.ftp_groupIPs (

indexNo smallint NOT NULL,

ftpUserName varchar (50) NOT NULL,

accessRule varchar (80) NOT NULL

)

GO

CREATE TABLE dbo.ftp_groups (

id int IDENTITY (1, 1) NOT NULL,

ftpUserName varchar (50) NOT NULL,

accessRule varchar (200) NULL,

notes varchar (255) NULL

)

GO

CREATE TABLE dbo.ftp_userAccess (

indexNo smallint NOT NULL,

ftpUserName varchar (50) NOT NULL,

accessRule varchar (200) NOT NULL

)

GO

CREATE TABLE dbo.ftp_userIPs (

indexNo smallint NOT NULL,

ftpUserName varchar (50) NOT NULL,

accessRule varchar (80) NOT NULL

)

GO

CREATE TABLE dbo.ftp_users (

id int IDENTITY (1, 1) NOT NULL,

ftpUserName varchar (50) NOT NULL,

ftpPassword varchar (50) NOT NULL,

ftpPasswordType tinyint NULL,

changePassword bit NOT NULL,

sKey varchar (50) NOT NULL,

accessRule varchar (200) NULL,

dirHome varchar (200) NOT NULL,

privilege tinyint NULL,

loginMsgFile varchar (80) NULL,

disabled bit NOT NULL,

sessionEncryption bit NOT NULL,

dirHomeLock bit NOT NULL,

hideHidden bit NOT NULL,

alwaysAllowLogin bit NOT NULL,

maxUsersConcurrent smallint NOT NULL,

speedLimitUp int NULL,

speedLimitDown int NULL,

maxUsersLoginPerIP smallint NOT NULL,

timeOutIdle int NULL,

timeOutSession int NULL,

quotaEnable bit NOT NULL,

quotaCurrent bigint NULL,

quotaMax bigint NULL,

ratioType tinyint NULL,

ratioUp smallint NULL,

ratioDown smallint NULL,

ratioCredit float NULL,

expiration smalldatetime NULL,

groups varchar (80) NULL,

notes varchar (255) NOT NULL

)

GO

ALTER TABLE dbo.ftp_groups WITH NOCHECK ADD CONSTRAINT pk_ftp_groups PRIMARY KEY CLUSTERED (id)

GO

ALTER TABLE dbo.ftp_users WITH NOCHECK ADD CONSTRAINT pk_ftp_users PRIMARY KEY CLUSTERED (id)

GO

ALTER TABLE dbo.ftp_groupAccess ADD CONSTRAINT df_ftp_groupAccess_indexNo DEFAULT (2) FOR indexNo

GO

CREATE INDEX ix_ftp_groupAccess__ftpUserName ON dbo.ftp_groupAccess(ftpUserName, indexNo)

GO

ALTER TABLE dbo.ftp_groupIPs ADD CONSTRAINT df_ftp_groupIPs_indexNo DEFAULT (2) FOR indexNo

GO

CREATE INDEX ix_ftp_groupIPs__ftpUserName ON dbo.ftp_groupIPs(ftpUserName, indexNo)

GO

CREATE UNIQUE INDEX ix_ftp_groups__ftpUserName ON dbo.ftp_groups(ftpUserName)

GO

ALTER TABLE dbo.ftp_userAccess ADD CONSTRAINT df_ftp_userAccess_indexNo DEFAULT (2) FOR indexNo

GO

CREATE INDEX ix_ftp_userAccess__ftpUserName ON dbo.ftp_userAccess(ftpUserName, indexNo)

GO

ALTER TABLE dbo.ftp_userIPs ADD CONSTRAINT df_ftp_userIPs_indexNo DEFAULT (2) FOR indexNo

GO

CREATE INDEX ix_ftp_userIPs__ftpUserName ON dbo.ftp_userIPs(ftpUserName, indexNo)

GO

ALTER TABLE dbo.ftp_users ADD

CONSTRAINT df_ftp_users_changePassword DEFAULT (1) FOR changePassword,

CONSTRAINT df_ftp_users_sKey DEFAULT ('') FOR sKey,

CONSTRAINT df_ftp_users_disabled DEFAULT (0) FOR disabled,

CONSTRAINT df_ftp_users_sessionEncryption DEFAULT (0) FOR sessionEncryption,

CONSTRAINT df_ftp_users_dirHome DEFAULT ('') FOR dirHome,

CONSTRAINT df_ftp_users_dirHomeLock DEFAULT (1) FOR dirHomeLock,

CONSTRAINT df_ftp_users_hideHidden DEFAULT (1) FOR hideHidden,

CONSTRAINT df_ftp_users_alwaysAllowLogin DEFAULT (0) FOR alwaysAllowLogin,

CONSTRAINT df_ftp_users_maxUsersConcurrent DEFAULT (10) FOR maxUsersConcurrent,

CONSTRAINT df_ftp_users_speedLimitUp DEFAULT ((-1)) FOR speedLimitUp,

CONSTRAINT df_ftp_users_speedLimitDown DEFAULT ((-1)) FOR speedLimitDown,

CONSTRAINT df_ftp_users_maxUsersLoginPerIP DEFAULT (5) FOR maxUsersLoginPerIP,

CONSTRAINT df_ftp_users_timeOutSession DEFAULT ((-1)) FOR timeOutSession,

CONSTRAINT df_ftp_users_quotaEnable DEFAULT (1) FOR quotaEnable,

CONSTRAINT df_ftp_users_quotaCurrent DEFAULT (0) FOR quotaCurrent,

CONSTRAINT df_ftp_users_quotaMax DEFAULT (52428800) FOR quotaMax,

CONSTRAINT df_ftp_users_notes DEFAULT ('') FOR notes

GO

CREATE UNIQUE INDEX ix_ftp_users__ftpUserName ON dbo.ftp_users(ftpUserName)

GO

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有