proFTPd 配置参考.docx
- 文档编号:24900768
- 上传时间:2023-06-02
- 格式:DOCX
- 页数:24
- 大小:34.17KB
proFTPd 配置参考.docx
《proFTPd 配置参考.docx》由会员分享,可在线阅读,更多相关《proFTPd 配置参考.docx(24页珍藏版)》请在冰豆网上搜索。
proFTPd配置参考
proFTPdAdministrator
Home
Screenshots
Installing
About
SFproject
>>InstallingproFTPdAdmin
ThisguidedocumentsonewaytoinstallproFTPdAdminaswellassettinguptheMySQL-serveritandproFTPddependson(whenauthenticationisdoneviaMySQLthatis).Asguidesgothisdocumentwasn'tmeanttobecomprehensive,butsimplygiveafewpointersastowhattodoinordertogetstartedwithproFTPd(andauthenticationviaMySQL).
Asyougoonreadingthisdocumenttherewillbelistedseveralcommandsthatmustberuninordertocompletetheinstallation-however,someofthesediffersomewhatorcanbedoneinaneasierwayonsomeofthesystems.Theplatformspecificcommandswillbelistedintheirowncolourlikethis:
Thesearecommandsthataregeneral,andshouldintheorybeapplicaplefortheplatformsbeingdiscussed.
Lineslookinglikethesearesnippetsandquotesfromeitheroutputorfilesdiscussedinthetexteitherabove,beloworpossiblyboth.
Thisdocumenthasbeensplitintothefollowingsections:
>>InstallingMySQL
>>InstallingproFTPd
>>InstallingproFTPdAdministrator
>>Q&A,Troubleshooting
>>InstallingMySQL
ThissectionisdedicatedtoinstallingtheMySQL-serveronyoursystem-installingitiswelldocumentedelsewhereandthereareafewwaysofdoingitdependingontheoperatingsystem/distributionyouareusingatthismoment.Ihavedocumentedhereagenericdescriptionforinstallingtheserver,andyoucanskiptothatsectionbyclickingoneofthelinksbelow.
>>InstallingMySQLfromsource
>>InstallingMySQLonFreeBSDusingports
>>InstallingMySQLonMandrake
>>InstallingMySQLonDebian
Afteryou'vefinishedinstallingMySQLandstartedtheserverit'sveryimportantthatyouchangethesuper-user'sdefaultpasswordinordertomaintainyourserversintegrity.ThedefaultsuperuserisinMySQLasinmostofthe*nix'escalledroot,andMySQLthedefaultroot-passwordisblank-wecan'thavethat,nowcanwe?
-andthat'swhyyoushouldexecutethefollowingcommand(substitute"
mysqladmin-urootpassword
>>InstallingMySQLfromsource
ThefirstpartoftheinstallationissimplytheinstallationoftheMySQL-databaseserver.TomakesurethatwehaveavailablethelibrariesweneedinordertocompileproFTPdwithMySQL-supportwealsocompileMySQLfromsourceaswell(NotevensuretherearebinariesofproFTPdavailablewithSQL-supportalreadybuiltin-beingaSlackwareuserIhardlycareanyway).
Thefirstthingyouneedtodoisactuallyfetchingthesource-codefromMySQL'shomepage(whichcanbefoundat"Don'tgetintimidatedbythesheerammountofdifferentfilesandversionsavailablefordownloads-whatyou'relookingisthestableproductionrelease(atthetimeofwritingthatversionnumberis4.0).Justclickthatandgoontothenextpage.Scrolldowntothebottomofthispageandyou'llcometothesectionnamed"SourceDownloads"andfetchtheTarballfromamirrorclosetoyourlocation(storethisfileatalocationyouknowhowtofindviaconsoleandhavewriteaccessto-"~"isusuallymychoice).Withthatdonewe'llbegettingtothemeatierstuffinfewmoments,butnowwe'llpauseforcommercials(justkidding)-Ihatecommercials.
Dropouttoconsoleoropenupaterminal,andthelocatethedirectoryyoudownloadedthesource-codeto(youknow!
-thattarballthingamajiggy).OtherthanthatjustdoasItellyou:
tarxfvzmysql-4.0.20.tar.gz
cdmysql-4.0.20
./configure
make
Thecodeshouldnowbecompiling,anddon'tworryaboutnotcatchingthemeaningofthetextthatwhirlesbyonyourscreen(simplyworryaboutitsuddenlystoppingcomplainingaboutsomeorothererror-itisrarehoweversincetheMySQL-developersreallyseemtoknowtheirstuff).Nowwouldalsobetheperfecttimetogetsomecoffee(ifyou'reusingareallyslowcomputer,>500Mhz,considertakeoutaswell).Whenyougetback,andifitallseemstohavefinishedwithouterrors-switchtoroot(givethecommand"su"andtypeinyourroot-password).
Thenextfewcommandswillfinallyinstallthedatabaseserverandsetupthesystemsothatthedatabasecanreadfromandwritetoitsfiles(notetoyourself:
databasesarelocatedin"/usr/local/var"anditisthisdirectoryyou'llmakebackupsofwhenthetimecomes-ifever).Ifyou'resimplyupdatingyourpreviousself-compiledMySQL-serveryoushouldskipthoslasttwocommands.
makeinstall
/usr/local/bin/mysql_install_db
chgrp-Rmysql/usr/local/var/
chown-Rmysql/usr/local/var/
Thenextcommandwe'llissuewillstartupthedatabaseserversoit'llbereadyforyoureverycommand(wellatleastSQL-statements,ifnotmowyourlawnorcleanyourroom-toobad-someoneshouldissueabugfixforthis.).ThedefaultsuperuserisinMySQLasinmostofthe*nix'escalledroot,andMySQLthedefaultroot-passwordisblank-wecan'tdothatnowcanweandthat'swhywerunthesecondcommand(substitute"
/usr/local/bin/mysqld_safe&
mysqladmin-urootpassword
Congratulations,you'venowsetupyourownSQL-server(bestofall,itwasfreecomparedtotheratherpriceyandperformance-impairedSQL-serverfromMicrosoft-andyou'llevengetkudozfromyourinternet-friendsbecauseyoucompileditfromsource).Ifyou'lleverneedtoshutdowntheserver,thecorrectwaytodoitistoissuethiscommand:
/usr/local/bin/mysqladminshutdown-uroot-p
>>InstallingMySQLonFreeBSDusingports
InstallingMySQLusingtheports-systemisaseasycanbe,andthere'snomuchneedforexplainingthewayitworksifyou'rerunningFreeBSDalready.Justdothefollowingandyoushouldbegoodtogo(itevendownloadsthesourcecodeforyou,sothere'snoreasontogomeddlingaboutonotherweb-pages):
cd/usr/ports/databases/mysql40-server
make
makeinstall
Theservercanbestartedandstoppedbyisseuingthefollowingcommand:
/usr/local/etc/rc.d/mysql-server.shstart|stop
Remembertosettheroot-usersdefaultpasswordlikewediscussedintheintroductiontothissection,togotherenowyoucansimplyclickhere.
>>InstallingMySQLonMandrake
InstallingMySQLonMandrakeusingprepackagedsoftwareaslongasyoumakesureyougetaholdofalltheneededpackages.StartuprpmdrakeasrootorselecttheprogramfromtheK-Panel(taskbarthingyatthebottomofyourscreen)byselectingSystem->Configuration->Packaging->Installsoftware(you'llneedtoenteryourrootpasswordaswe'llbeinstallingsoftware).
BythetimeyoureadthisnewerpackagesthantheonesIinstallbelowmayhavebecomeavailable,andyoushouldinstalltheseinstead.Youshouldatleastinstallthefollowingpackages(acceptalldependenciesaswell):
∙libmysql12-4.0.18-1.1.100mdk
∙libmysql12-devel-4.0.18-1.1.100mdk
∙MySQL-4.0.18-1.1.100mdk
∙MySQL-common-4.0.18-1.1.100mdk
Theservercanbestartedandstoppedbyisseuingthefollowingcommand:
servicemysqlstart|stop|restart
Remembertosettheroot-usersdefaultpasswordlikewediscussedintheintroductiontothissection,togotherenowyoucansimplyclickhere.
>>InstallingMySQLonDebian
InstallingMySQLisaseasyassimplyexecutingthefollowingcommand(asroot):
apt-getinstallmysql-server
Thatshouldbeallthatisrequiredtogettheserverupandrunning.IfyouatanytimewanttostartorstopyournewlyacquiredSQL-serverthiscanbedoneasfollows:
cd/etc/init.d
./mysqlstart
Remembertosettheroot-usersdefaultpasswordlikewediscussedintheintroductiontothissection,togotherenowyoucansimplyclickhere.
>>InstallingproFTPd
InstallingproFTPdwithMySQL-supportforauthenticationisfarfromaseasyitshouldbe-mainlybecausemostdistributionsdon'tofferapackagewiththismodulecompiledin.Ifyou'reindoubtwetheryourcurrentinstallationofproFTPdalreadyhasthismodule,youcantryrunningthecommand"proftpd-l"andseeifitlistsamodulebythename"mod_sql_mysql.c"(ifitdidn'tyoushouldprobablydeinstallthatpackageandcontinuewiththisguide).Consultthealternativeslistedbelow(ifyou'rerunningFreeBSDIhighlyrecommendinstallingusingports).
>>InstallingproFTPdfromsource
>>InstallingproFTPdonFreeBSDusingports
>>InstallingproFTPdonDebian
>>InstallingproFTPdfromsource
NowcompileitandinstallproFTPdadminwithMySQL-authentication(ifthatsoundslikeaneasytask-justskipthissection).JustlikewedidwithMySQLI'llgothroughitstepbystep-justincase.Fetchthesource-codefromtheservershomepage(link:
http:
//www.proftpd.org/).You'llfinddirectlinkstothesource-codeintheupper-leftpartofyourbrowser-forthesakeofmakingthisguidelookalittlelessrepetitivewe'llunbunthebuninstead(thatmeans:
clickthelinknamed"bz2").Justtypethefollowingcommandstogetthatcompilationgoing(currentdirectoryassumedtobethelocationwhereyoujustsavedthesourcecodeforproFTPd).Notethatifyouintendtousefunctionalityforquotasyou'llalsoneedtocompileinsupportfor"mod_quotatab".
tarxfvjproftpd-1.2.9.tar.bz2
cdproftpd-1.2.9
#Standard,withoutQuotasupport
./configure--with-modules=mod_sql:
mod_sql_mysql--with-includes=/usr/local/include/mysql/--with-libraries=/usr/local/lib/mysql/
#WithQuotasupport
./configure-
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- proFTPd 配置参考 配置 参考