BAMP環(huán)境搭建手冊(cè)_第1頁
BAMP環(huán)境搭建手冊(cè)_第2頁
BAMP環(huán)境搭建手冊(cè)_第3頁
BAMP環(huán)境搭建手冊(cè)_第4頁
BAMP環(huán)境搭建手冊(cè)_第5頁
已閱讀5頁,還剩49頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

InformationSecurityServiceProfessionalProvider(ISSPP)

信息寧靜辦事專業(yè)提供商

BAMP情況搭建手冊(cè)

SXECiUnREBNEsTWwORKaS.y

河北鑫博威網(wǎng)絡(luò)科技有限公司

二O-O年二月

目錄

一、BSD系統(tǒng)安裝3

二、根本配置22

2.1網(wǎng)卡配置22

2.2SSH酉乙置23

三、BAMP情況搭建28

3.1安裝Mysql28

3.2安裝php5-Mysql33

3.3Apache安裝34

3.4安裝php36

3.5安裝php5_extensions38

3.6配置Apache與php兼容42

3.7phpmyadmin安裝44

四、宣布網(wǎng)站論壇48

BSD系統(tǒng)安裝

在VMWare中新建一個(gè)虛擬機(jī),操縱系統(tǒng)選擇"其他fFreeBSD"其它選項(xiàng)默認(rèn)。設(shè)置

CD-ROM為虛擬光驅(qū)的位置,將系統(tǒng)映像加載到虛擬光驅(qū)中。

典范設(shè)置

版本選擇FreeBSD

選擇安裝目錄

NewVirtualBachineVizardX

MetvorkType

Whattypeofnetworkdoyouwanttoadd?

Networkconnection

OUsebridgednetworking

GivetheguestoperatingsystemdirectoccesstoonexternalCthcrnc^network.

TheguestmusthaveitsownIPaddressontheexternalnetwork.

OUsenetworkaddresstranslation(NAT)

Givetheguestopeiatingsystemaccesstothehostcomputer'sdial-upor

externalEthernetnetworkconnectionusingthehost'sIPaddress.

O'Usehost-onlynetworking

Connecttheguestoperatingsystemtoaprivatevirtualnetworkonthehost

computer.

ODono]useanetworkconnection

「上一步[下一步由)>][取消]

設(shè)置網(wǎng)絡(luò)類型:橋接網(wǎng)絡(luò)

HewVirtualMachineVizard

Speci£yDiskCapacity

Howlargedoyouwantthisdisktobe?

Diskcapacity

Thisvirtualdiskcanneverbelargerthanthemaximumcapacitythatyousethere.

Disksize(GB):8.00

IIAllocatealldiskspacenow.

Byallocatingthefullcapacityofthevirtualdisk,youenhanceperformanceof

yourvirtualmachine.However,thediskwilllakelongertocreateandtheremust

beenoughspaceonthehost'sphysicaldisk.

Ifyoudonotallocatediskspacenow,yourvirtualdiskfileswillstartsmallthen

becomelargerasyouaddapplications,files,anddatatoyourvirtualmachine.

□Splitdiskinto2GBMes.

「上一步電)][完成取消

設(shè)置虛擬硬盤巨細(xì)

CD-ROI(IDE1:0)X

Devicestatus

_Connected

Devices

0Connectatpoweron

00Memory256MB

ConnecbonQH?rdDiskCEDE0:0)80GB

OUsephysicaldrive:售CD-ROMODE1:0)Autodetect

昌FloppyAutodetect

^^EthernetBridged

onnectexclusivelytothisvitualmachine^^USBControllerPr?zant

egacyemulationQ》SoundAdapterAutodetect

K?U$eISOimage:以DisplayAutodetect

Processors1

F:\田振博Wanabi筵\8.0和||艮r(nóng)owse…]

|AdYanced...

OK][Cancel][Hdp]

插入系統(tǒng)鏡像

啟動(dòng)虛擬機(jī)進(jìn)入FreeBSD啟動(dòng)的畫面

選擇國度我們偉大的祖國中國45

ountrylection

Pleasechooseacountry,region,orgroup.

SelectaniteMusing[SPACE]or[ENTER].

CapeUerde

Ca^ManIslands

Centra1AfricanRepublic

Chad

Chile

1的hina

ChristnasIsland

7Cocos(Keeling)Islands

8ColoMbia

9COMOFOS

0Congo

1Congo,theDeMocraticRepub1icofthe

2CookIslands

3CostaRica

Cance1

標(biāo)準(zhǔn)鍵盤類型

insole

ThedefaultsystenconsoledriverforFreeBSD(s^scons)defaults

toastandard''Anerican'1keyboardwap.Usersinothercountries

(orMithdifferentkeyboardpreferences)nayHishtochooseoneof

theotherkeyriapsbeloM.

Notethats^sinstal1itse1fonlyusesthepartofthekeyboardmap

MhichisrequiredtogeneratetheANSIcharactersubset,butyour

choiceofkeyxapMi11alsobesavedforlater(fuller)use.

UkrainianK0I8-UUkrainianKOI8-Ukeyzap

UkrainianKOI8-U+K0I8-RUkrainianKO18-U+KOI8-Rkeycap(alter)

USACapsLock->Ctr1standard(CapsasL-Contro1)

USADvorakDvorakkeycap

USADvorak(left)lefthandedDvorakkeynap

USADvorak(right)righthandedDvorakkepwap

USfiEnacsstandardoptizizodforEMACS

USAISI)ISOkeynap

traditiona1UNIX-workstation

Cance1

接下來就是系統(tǒng)安裝主菜單,F(xiàn)reeBSD的安裝配置全部可以在這里設(shè)置,使用上下箭頭

移動(dòng)到差別的選項(xiàng),按下空格大概回車進(jìn)入,英文欠好的朋友不消擔(dān)心,其實(shí)這里的英

文很簡單在這里我們選擇Standard標(biāo)準(zhǔn)安裝

nsi

Uleleonetoth?FreeBSDinsta1lationandconfigurationtool.Please

selectoneoftheoptionsbeIOHbyusingthearrowkeysortypingthe

firstcharacterofIheoptionnaMeyou*reinterestedin.Invokean

optionHith(SPACE]or(ENTER].Toexit,use[TAB]toMovetoExit.

Quickstart-HOHtousethisMenusysteM

[gndcird,

IxpressBeginaquickinstallation(forexperts)

CustOMBoginacustOMinsta1lation(forexperts)

onfigureDopost-insta11configurationofFreeBSD

ocInsta1lationinstructions,README,etc.

eyMupSelectkeyboardtype

ptionsUieui/Setvariousinsta1lationoptions

ixitRepairModeHithCDROM/DUD/flopp^orstartshe11

pgradeUpgradeanexistingsysteM

oadConfigLoaddefauItinsta11configuration

ndexGlossaryoffunctions

lectXExitInstal1

^ssage

InthenextMenu,youwillneedtosetupaDOS-st^le("fdisk")partitioning

schetieforyourharddisk.IfyousizplyHishtodevotea11diskspace

toFreeBSD(overMritinganythingelsethatMightbeonthedisk(s)selected)

thenusethe(A)11coMwandtoselectthedefaultpartitioningscheMefollouied

bya(Q)uit.Ifyouzishtoa1locateonlyfreespacetoFreeBSD,Movetoa

partitionMarked“unused“andusethe(C)reatecoMMand.

(iee%)

Pressenterorspace]

FreeBSD的分區(qū)和一般的Linux不太一樣,先要分別出一塊FreeBSD專用空間稱作Slice,然后

再在這塊Slice里分區(qū)(分區(qū)叫做Label)。A自動(dòng)分區(qū)S設(shè)置啟動(dòng)Q生存退出

這是FreeBSD的FDISKPartitionEditor,第2行顯示的是VMware存放FreeBSD目錄所在

Win2K里面的分區(qū)巨細(xì),可以看到是8G左右的空間,因?yàn)檫@是測試用的,就使用整個(gè)分

區(qū)來安裝FreeBSD的話,按A,使用整個(gè)分區(qū),如果你不想使用整個(gè)分區(qū)的話,按C來定

制分區(qū),可以直接輸入M為單位的,按D是刪除當(dāng)前分區(qū),Q鍵是生存分區(qū),手動(dòng)分區(qū)

的話,分區(qū)類型選擇默認(rèn)的165,直接回車就行了。

Disknane:JQQ]■工■iTW

DISHGeoMetry:17753cyls/15heads/63sectors=16776585sectors(8191MB)

OffsetSize(ST)EndWanePTypeDescSubtypeFlags

06362-12unused0

631677652216776584ad8sl8freebsd165A

1677658563116777215-12unused0

ThefollouingcoMMandsaresupported(inupperorloNercase):

A=UseEntireDiskIj=setDriveGeoiietryC=CreateSlice

D=DeleteSIice:Z=ToggleSizeUnitsS=SetBootable?=ExpertM.

T=ChangeType1J=Undofi11ChangesQ=Finish

UseFlor?togetworehelp,arrowkeystoselect?

啟動(dòng)治理選項(xiàng),多系統(tǒng)選擇"BootMgr”,只裝Freebsd就選第一個(gè)。

FreeBSDCOMCSMithabootManager1hatallOMStoeasily

selectbetweenFreeBSDandanyotheroperatingeMSon$/ourMachine

atboottiMe.If^cuhaveMorethanonedriveandMant1oboot

froMthesecondon。,thobootnngorMi11a1soMnkeitpossib1Q

todoso(1iMitationsinthePCBIOSusuallypreventthisotherwise).

If“illonlyhavesFrtstsBSDonth<st-tachfinoth”bootM<Inaguris

notneededanditsIOMSdokinthebootuhileofferingyouthechoice

ofMHichoperatingsysteMtoboot.IfyoudonotMantaboot

r?an?ger,orMishtorep1aceanexistingone,seIect''standard.

Ifwouldprefer^iourMasterBootRecordreMa1nuntouchedthen

1UJ,lltf.

NOTE:PC-DOSusursM111aiMOstcertainlyruq*ire''Non。'',

;tta11astaydamd「BW(nobootManager)

InstalltheFreeBSDBootMannger

LeavetheMasterBootRecorduntouched

NOHyouneedtocreateBSDpartitionsinsideofthefdiskpartition(s)

justcreated.IfyouhaveareasonableaMountofdiskspace(1GBorMore)

anddon'thaveanyspecialrequireMents,sinplyusethe(ft)utoCOMMAndto

a1locatespaceautomatically.Ifyouhaveworespecificneedsorjustdon't

careforthelayoutchosenby(A)uto,pressFlforworeinforMationon

Manuallayout.

(108%)

Pressenterorspace]

選擇A自動(dòng)分區(qū),Q退出,自動(dòng)選擇系統(tǒng)分區(qū)即可,也可以憑據(jù)自己情況手動(dòng)分區(qū),C鍵

分區(qū)

Fre&bSUDisKlabelEditor

Disk:ad0Partilionnane:adOslFree:0blocks(0MB)

PartMountSizeNeHfsPartMountSizeNeufs

adBsla/435MBUFS2Y

ndBslbsnap344MBSNAP

adesld/var755MBUFS2+SY

ndBsleZtMp396MBUFS2*SY

ddBslf/usr6261MBUFS2+SY

e

followingCOMMAndsarevalidhere(upperorlowercase):

Tcl=

CreateD=DeleteM=Mountpt.

N=

T=NeuifsOptsQ=FinishS=ToggleSoftUpdatesZ=CustoMNeHfs

ToggleNeufsU=UndoA=AutoDefauItsR=Delete?Morge

選擇所要安裝的內(nèi)容,這里為了方便演示選擇All

Asaconvenience,ueprovidesevera1"canned''distributionsets.

Thesesso1ec<zha,consider-iobe-fher-iostreasenabledefauItsforthe

typeofsysteMinquestion.1fyouHOUIdprefertopickandchoosethe

listofdistributionsyourself,sinplyselect',CustOMM.YOUcanaIso

pickacanneddistributionsetandthenfine-tuneitHiththeCustoMiten.

ChooseanitGMbypressing(SPACE]or[ENTER].Ullisnfinished,choosethe

ExititeMorMovetotheOKbuttonHith[TABI.

Q<BExitthisMenu(returningtoprevious)11

AllsysteMsourcesandbinaries

esetResetselecteddistribution1isttonothing

rxiDeveloperFu11sources,binariesanddocbutnoganes

[XJKern-Deve1operFullbinariesanddoc,kerne1sourcesonly

[X]UserAverageuser-binariesanddoconly

l】MininalTheSMA1lestconfigurationpassible

>>Specifyyourokindistributionset

L_UKJ

PressFlfurMore1nfurMatIononoption

選擇安裝方法這里選擇CD/DVD

FreoBSDc<inboinstalledfCOMavarietyofdifferentinstallation

Media,rangftngfTOMf1oppftestoanInternetFTPserver.Ifyou're

insta11ingFreeBSDfTOMasupportedCD/DUDdrivethenthisisgenera11^

thebestMediatouseifpouhavenooverridingreasonforusingother

Modfia.

開始安裝

UserConfirnationRequested

LastChance?AreyouSUREyouuantcontinuetheinsta1lation?

Ifyou'rerunningthisonadiskNithdatayouMishtosave

thenUESTRONGLYENCOURAGEYOUTOMAKEPROPERBACKUPSbefore

proceeding!

Uecantakenoresponsibilityforlostdiskcontents?

No

Extractingbaseiirectoru...

285184Bbytesreadfronbasedist,chunk30f38@1425.9KBytes/sec.

安裝完畢進(jìn)行進(jìn)一步的設(shè)置

網(wǎng)卡設(shè)置

設(shè)置leO

nterfaceinforMainrequin

IfyouareusingPPPoveraseria1device,asopposedtoadirect

ethernetconnection,thenyouzayfirstneedtodialyourInternet

ServiceProviderusingtheppputilityzeprovideforthatpurpose,

Ifyou*reusingSLIPoveraserialdevicethenth?expectationis

thatyouhaveaHARDUIREDconnection.

YoucanaIsoinstalloverapara1le1portusingaspecia1"laplink''

cabletoanotherMachinerunningFreeBSD.

Cance1

IHorkconfigurationMom

是否配置IPV6在此選NO

orwationrequ

IfyouareusingPPPoiveraseria1device9asopposedtoadirect

ethernetconnection.thenyouMayfirstneedtodialyourInternet

ServiceProviderusingtheppputilityueprovideforthatpurpose.

1fyou'reusingSLIPoveraseria1devicethentheexpectationis

thatyouhaveaHARDUIREDconnection.

YouDoyouHanttoIPv6configurationofthe

cab1

Para1leiPort(PLIP)eerconnection

networkconfiqurationManual1

是否啟用DHCP在此選NO

配置主機(jī)名、域名、ip地點(diǎn)、DNS辦事器、網(wǎng)關(guān)等

是否啟用接口

是否把辦事器設(shè)置為網(wǎng)關(guān),在此選擇NO

是否開啟SSh辦事,在此設(shè)置為YES

是否開啟FTP辦事,在此選擇NO

是否開啟NFS辦事,在此選NO

是否安裝NFS客戶端,在此選NO

是否自界說系統(tǒng)控制臺(tái)設(shè)置,在此選NO

設(shè)置時(shí)區(qū)

是否屬于UTC時(shí)間(格林威治時(shí)間),對(duì)付絕大部分人來說,雖然選N。了

選擇地區(qū)亞洲5

中國9

Cancel

選北京時(shí)間了,回車,接下來系統(tǒng)再次詢問,是否屬于該時(shí)區(qū),選(0K)

是否設(shè)置非USB鼠標(biāo)選擇N。

是否現(xiàn)在配置瀏覽器選擇NO

Th?FreeBSDpackagecolloctionisaco1lectionofthousandsofready-to-run

app1ications,fFOMtexteditorstogaMestoUEBserversandMore.UouIdyou

1iketobrouisetheco1lectionnow?

Yes

設(shè)置系統(tǒng)治理員的密碼,以root用戶登入

設(shè)置系統(tǒng)密碼

NeuPassword:

RetypeNewPassword:1

退出安裝

U<s1COMMtoth<iFrcscsBSDinstn11ationandconfigurationtoo1.P1c><ts;o

2:u1uatoituofthuoptionscbu1UMbvus;inqthuorTOMkuv^ortUPincithti

firstcharacttsrofthuoptionnaMtsyou'reinturtt:ctodin.Invokuait

optionMith(SPACEJorCENTERJ.Toexit.usetTABJtoMOMOtoExit.

Quickstart-HOMtousethisMenus^steM

t.1nil.?r.1■Beainastandardinsta11ation(recoMM?nded)■

Beginaquickinstallation(forexperts)

CllStOMDegftnccustOMinstallation(forexperts)

Dopost-instn11configurationofFrooDSD

ocInstA11ationinxtruction?;,README.ofc.

OV*MAPSn1netkeybeerdt?pr>

ptionsUitv<iriOUKinstallationoptions

ixitRupairrodsMithCDROM/DUDxflopp^ortnrtEhull

pgradeUpgradeanexistingtWM

oadConfig..Loaddefau11installconfiguration

ndexG1ossarvoffunctions

ExitInstall)

刪除驅(qū)動(dòng)器的介質(zhì)

配置完畢確定退出,系統(tǒng)將要重啟

啟動(dòng)界面

Startingdevd.

Creatingand/ortriMtiinglogfiles.

Startingsyslogd.

ELFIdconfigpath:/lib/usr/1ib/usr/1ib/cowpat/usr/local/1ib

a.outIdconfigpath:/usr/1ib/aout/usr/1ib/coMpat/aout

Clearing/tnp(Xrelated).

UpdatingMotd:.

Configuringsyscons:keycapblanktiwe.

Startingsshd.

Startingcron.

Startingbackgroundfilesystemchecksin60seconds.

FriFeb519:34:23CST2018

FreeDSD^i30G(xinbowa^.con)(ttyv0)

login:root

Password:

Feb519:36:85xinbozaylogin:ROOTLOGIN(root)ON

Copyright(c)1992-2009TheFreeBSDProject.

Copyright(c)1979,1980,1903,1986,1908,1989.1991,1992,1993,1994

TheRegentsoftheUniversityofCa1ifornia.A11rightsreserved.

FreeBSD8.0-RELEASE(GENERIC)#0:SatNov2115:48:17UTC2009

xinbouay#|

addnetdefault:gateway192.IGO.100.1

Startingdeud.

Creatingand/ortriMMinglogfiles.

Startingsyslogd.

ELFIdconfigpath:/lib/usr/lib/usr/1ib/conpat/usr/local/1ib

a.outIdconfigpath:/usr/1ib/aout/usr/1ib/coMpat/aout

Clearing/tup(Xrelated).

UpdatingMotd:.

Configuringsyscons:keyMapblanktine.

Startingsshd.

Startingcron.

StartingbackgroundfilesysteMchecksin60seconds.

FriFeb519:34:23CST2010

FreeBSD/i386(xinbondy.coM)(tt^uB)

login:root

Passuord:|

輸入用戶名密碼進(jìn)入系統(tǒng)

BSD系統(tǒng)至此安裝完畢

二、根本配置

2.1網(wǎng)卡配置

ifconfig查察網(wǎng)卡配置情況

—HNU.a.shifen.coMpingstatistics——

2packetstransMitted,2packetsreceived,0.0^packetloss

round-tripMin/aug/Max/stddev=20.009/21,020/22,031/1.011MS

xinboway*ifconfig

leB:flags=8843<UP,BR0nDCnST,RUNNING,SIMPLEX,MULTICAST)Metric0Mtu1500

options=8<ULRN_MTU>

ether00:0c:29:cc:52:28

inet1netMask0xffffff00broadcast55

Media:Ethernetautoselect

status:active

plip0:flags=8818<P0INT0P0INT,SIMPLEX,MULTICRST>Metric0Mtu1500

100:flags=8049<UP,LOQPBfiCK,RUNNING,MULTICAST)Metric0Mtu16384

options=3<RXCSUM,TXCSUM>

inet6fe80::Ulo0prefixlen64scopeid0x3

inet6:prefixlen128

inetnetMask0xff000000

xinboway#ee/etc/rc.conf|

ee/etc/rc.config編輯配置文件對(duì)主機(jī)ip地點(diǎn)主機(jī)名開機(jī)啟動(dòng)項(xiàng)進(jìn)行配置

A[(escape)Menu"ysearchproMptAkdelete1ineApprev1iAgprevpage

AoasciicodeAxsearchA1undelete1ineAnnext1iAunextpage

AuendoffileAabeginofline"xdeletewordAbback1char

AttopoftextAeendoflineArrestorewordAfforward1char

ArrnMManddalatarharAiundnlRtRcharAznpxtwnrd

■=====line11co117linesfrontop11========================================三

?—s^sinstal1generateddeltas—?SatFeb603:25:432010

?Created:SatFeb603:25:432010

?Enablenetworkdaewonsforuserconvenience.

#Pleasewakeallchangestothisfile,notto/etc/defaults/rc.conf.

#ThisfilenoncontainsjusttheoverridesfroM/etc/defaults/rc.conf.

defaultrouter=,,192,168.100.1,1

hostnaMe=,'xinboHa^.COM1'

ifconfig_le0=,,inet1netwaskn

keyMap="us.iso”

sshd_enable=,'YES,,|

2.2SSH配置

xinboua^tfee/etc/ssh/sshd_config1

|=====line1col8linesfroztop1============================================

-J$0penBSD:sshd_config,v1.802008/07/0202:24:18djMExp$

#SFreeBSD:src/crypto/openssh/sshd_config.v.2.12009/10/2501:IE

t*Thisisthesshdservers^steM-wideconfigurationfile.See

ttsshd_config(5)forworeinformation.

?ThissshdMascompiledwithPftTH=/usr/bin:/bin:/usr/sbin:/sbin

MThestrategyusedforoptionsinthedefauItsshd_configshippedwith

ttOpenSSHistospecifyoptionswiththeirdefauItvalue“here

#possible,butleavethencoMMented.UncowMentedoptionschangea

?defaultvalue.

ttNotethatsow?ofFreeBSD'sdefaultsdifferfTOMOpenBSD,and

ttFreeBSDhasafewadditionaloptions.

?UersionflddenduMFreeBSD-20090522

file''/etc/ssh/sshd-config11,1261ines

line48col19linesfrontop48

#LifetiweandsizeofepheMeralversion1serverkey

#Ke^RegenerationintervalIh

*ServerKe^Bits1024

?Logging

#obsoletesQuietModeandFascistLogging

ttSpslogFacilit^AUTH

#LogLevelINFO

#Ruthentication:

#LoginGraceTiMe2M

#PerMitRootLoginno|

#StrictModesyes

HMaxAuthTries6

HMaxSessions10

#PermitRootLoginno變動(dòng)為:PermitRootLoglnyes

iUerMitRootLoginyes

line73co101inesfFOMtop13========================:

ttHostbasedfiuthenticationno

Changetoyesifyoudon'ttrustssh/known_hostsfor

ttRhos

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論