亚洲成精品动漫久久精久,九九在线精品视频播放,黄色成人免费观看,三级成人影院,久碰久,四虎成人欧美精品在永久在线

掃一掃
關注微信公眾號

Serv-U用SQL Server作為存儲源的安裝說明
2007-09-26   軒昂工作室 

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

熱詞搜索:

上一篇:Serv-u獲取系統最高權限的方法簡析
下一篇:Serv-U遠程管理設置解析

分享到: 收藏