高性能服务器软硬件配置方案.doc_第1页
高性能服务器软硬件配置方案.doc_第2页
高性能服务器软硬件配置方案.doc_第3页
高性能服务器软硬件配置方案.doc_第4页
高性能服务器软硬件配置方案.doc_第5页
已阅读5页,还剩13页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

.高性能服务器硬件配置方案资料来源于金牌小说网 這一個章節主要是要描述我們測試的硬體環境、Linux 版本、所需安裝的軟體和硬體切割資訊,並且讓你可以透過這份文件,輕而易舉的建立測試環境。Hardware有關於硬體的部分,表格中的資訊是我們所架設的硬體環境,Error! No bookmark name given.當然,你不需要和我們一樣使用同一系統的主機板來進行測試。Motherboard IDGA-8I915G-MFProcessor BrandIntel(R)Processor Speed3.00 GHZSystem Memory (RAM)512 MBHard Drive TypeIDE (7200 RPM)Hard Drive Size80 GBGraphic CardGV-NX62TC256DDVD-ROMYes 表 1. 硬體資訊。SoftwareError! No bookmark name given. Requirement目前是使用 Fedora Core 5的作業系統,目前我我送測的 RPM 檔案只支援 Fedora Core 5的作業系統,如果需要支援其他的版本,則需要重新編譯和製作 RPM 檔案。OS DistributorFedora Core 5Desktop EnvironmentGNOME DesktopApplication圖形圖形化網際網路文字介面的網際網路編寫與出版編輯器辨公室軟體/生產力軟體ServerWindows 檔案伺服器FTP 伺服器網路伺服器伺服器設定工具Base SystemJavaX視窗系統基礎撥號網路支援管理工具系統工具Language中文支援Extra Packagenet-snmp-5.3-4.2.i386.rpmnet-snmp-5.3-4.2.i386.rpmnet-snmp-5.3-4.2.i386.rpmjre-1_1_5_0_06-linux-i586-rpm.binlm_sensors-2.9.2-1.i386.rpm 表 2. 軟體資訊。Space Requirement表 3 和 表 4是我們透過安裝作業系統時,使用自動格式化的選項,來進行格式化硬碟;當然,你也是可以使用手動的方式,進行規劃硬碟的空間。PartitionMount PointCapacity/dev/hda1/boot102 MB/dev/hda2VolGroup0035 GB 表 3. 硬碟分割資訊。Error! No bookmark name given.Folder NameCapacity/35 GB/boot99 MB/dev/shm 506 MB 表 4. LVM硬碟分割資訊。CHAPTER 2 - Installation NoteFedora Core 5 (DVD)Error! No bookmark name given.在這份文件中不會多加描述如何安裝 Fedora Core 5,詳細的安裝步驟可以參考鳥哥的Linux 私房菜(網;址:/linux_basic/0156installfc4.php)。所需要的軟體套件,請參考表 2. 軟體資訊。硬碟的格式化可以參考表 3.硬碟分割資訊表 4. LVM硬碟分割資訊。對於防火牆的設定部份,這裡將會採取無防火牆和停用 SELinux,主要是要避免一些可能造成我們 Linux 作業系統安全問題的軟體的破壞,某些服務可能會因為這個較為嚴密的安全機制,而導致無法提供連線的問題,或者無法進行資料存取的問題, 所以,暫時也將他關閉。COMMAND FOR MOUNTING/UNMOUNT DVD Error! No bookmark name given.雖然我們在安裝作業系統時,有選擇我們所需要的軟體套件,但仍然有些的套件是在預設的狀態下是不會被選取到的,所以我們會需要一些基本的指令,來進行掛載 Fedora Core 5 DVD 光碟片,詳細的指令如下:1. 建立 DVD掛載目錄# mkdir /media/dvd2. 掛載 DVD# mount /dev/hdb /media/dvd3. 卸載 DVD# umount /media/dvdJava Runtime Environment (JRE) Fedora Core 5 DVD 光碟片未包含 Java Runtime EnvironmentError! No bookmark name given. 套件,所以下面的內容將會告訴你到那裡可以下載和如何進行安裝。Download詳細的安裝步驟可以參考Java 官方網站(網址:/zh_TW/download/help/linux_install.xml)。安裝步驟如下:1. 請移至 2. 按一下 立即取得 按鈕 。3. 有兩種類型的安裝套裝軟體。Linux RPM 套裝軟體或 Linux 自我解壓縮二進位檔。請下載Linux RPM(自我解壓縮檔案)。Linux RPM (Redhat 套裝軟體管理程式) 使用 RPM 來安裝 JRE。為了使用此方法,您的系統上需要有 RPM。否則,請選取其他選項。Install the Linux RPM (self-extracting) file1. 在終端機上鍵入:# su 2. 輸入 root 密碼。 3. 變更至要在其中執行安裝的目錄。鍵入:# cd 例如,若要將軟體安裝到 /usr/java/ 目錄中,請鍵入:# mkdir /usr/java -p# cd /usr/java有關根存取的備註:若要將 JRE 安裝在全系統範圍的位置 (例如 /usr/local),則必須以超級使用者的身份登入以取得必要的權限。如果不具有根存取權,請將 JRE 安裝到主目錄或擁有其寫入權限的子目錄中。 4. 將已下載檔案的存取權限變更為可執行。鍵入:# cp /media/dvd/ jre-1_5_0_06-linux-i586-rpm.bin /usr/java# chmod a+x jre-1_5_0_06-linux-i586-rpm.bin5. 啟動安裝程序。鍵入:./ jre-1_5_0_06-linux-i586-rpm.bin這將顯示二進位授權合約。請仔細閱讀本合約。按下空檔鍵以顯示下一個頁面。在結尾處輸入yes以繼續進行安裝。6. 安裝檔案將在目前目錄中建立 jre-1_5_0_06-linux-i586.rpm 檔案。 7. 在終端機上執行 RPM 指令以安裝套裝軟體。鍵入:# rpm -iv jre-1_5_0_06-linux-i586.rpm8. JRE 已安裝到目前目錄下的 jre1.5.0_(版本編號) 子目錄中。在此範例中,JRE 安裝在 /usr/java/ jre1.5.0_06 目錄中。驗證 jre1.5.0_06 子目錄已列示在目前目錄下。鍵入:# ls 至此安裝完成。Enable And Configure(Firefox 1.5 and Later)1. 請移至 Firefox 安裝目錄下的 plugins 子目錄# cd /usr/lib/firefox-/plugins2. 在目前目錄中,建立至 JRE /ns7/libjavaplugin_oji.so 檔案的符號連結。鍵入:# ln -s /usr/java/jre1.5.0_06/plugin/i386/ns7/libjavaplugin_oji.so3. 啟動 Firefox瀏覽器,或如果已正在執行,將其重新啟動。請注意,如果正在執行其他Firefox元件 (即:網頁瀏覽器、設計師等),您也需要重新啟動這些元件。 4. 移至 編輯 個人偏好設定。在 內容 類別下 選取 可使用 JavaHardware Sensor Error! No bookmark name given.lm_sensors 主要是依據主機板晶片組的型號,帶入相關的模組後,再偵測其溫度、電壓等資訊,就可以使用 sensors 指令直接讀取目前的 CPU、機殼、電源、風扇等等的資訊,詳細的安裝步驟可以參考鳥哥的Linux 私房菜(網;址:/linux_basic/0610hardware.php)。Install the lm_sensor RPM(Fedora Core 5 DVD)1. 在終端機上鍵入:# su 2. 輸入 root 密碼。 3. 變更至要在其中執行安裝的目錄。鍵入:# cd /media/dvd/Fedora/RPMS4. 安裝程序。鍵入:# rpm -ivh lm_sensors-2.9.2-1.i386.rpmScanning Hardware Monitor Chip基本上,只要根據下面的步驟來做,您的主機就可以主動的偵測溫度與電壓,還有風扇轉速等等資訊。不過,事實上,由於主機板設計的不同,所以偵測的結果很有可能是有誤差的。由於 lm_sensors 假定則是僅有單顆 CPU 的顯示狀況, 所以,顯示的結果與實際的數據是有差異的此時或許就需要進行調校了。 調校的步驟很簡單,先確定使用 sensors 顯示的結果每個項目代表的意義 (可以參考 BIOS 硬體偵測結果的順序來排列) ,然後進入 /etc/sensors.conf 進行修改即可。1. 先偵測主機板的晶片組,開頭會有一些簡單的說明,看看就好。rootlinux # sensors-detectIt is generally safe and recommended to accept the default answers to allquestions, unless you know what youre doing. We can start with probing for (PCI) I2C or SMBus adapters. You do not need any special privileges for this. Do you want to probe now? (YES/no): YESProbing for PCI bus adapters.Use driver i2c-i801” for device 00:1F.3: Intel 82801FB 1CH6Probe succesfully concluded.2. 接下來的行為當中,反正你就一直按 Enter 就可以了,讓他自動去偵測。 I will now generate the commands needed to load the I2C modules. Sometimes, a chip is available both through the ISA bus and an I2C bus. ISA bus access is faster, but you need to load an additional driver module for it. If you have the choice, do you want to use the ISA bus or the I2C/SMBus (ISA/smbus)? ISATo make the sensors modules behave correctly, add these lines to/etc/modprobe.conf:#-cut here-# I2C module optionsalias char-major-89 i2c-dev#-cut here-To load everything that is needed, add this to some /etc/rc* file:#-cut here-# I2C adapter driversmodprobe i2c-i801modprobe i2c-isa# I2C chip driversmodprobe eeprommodprobe it87# sleep 2 # optional/usr/bin/sensors -s # recommended#-cut here-3. 上面的關鍵是重點!告訴你要如何載入模組的一個簡單的範例啊!Do you want to generate /etc/sysconfig/lm_sensors? (YES/no): YESCopy prog/init/lm_sensors.init to /etc/rc.d/init.d/lm_sensorsfor initialization at boot time.4. 如果想要確認一下 sensors-detect 偵測到的結果是否正確,可以使用 lspci 查閱一下。 rootlinux # lspci00:1f.0 ISA bridge: Intel Corporation 82801FB/FR (ICH6/ICH6R) LPC Interface Bridge (rev 03).5. 檢查是否有找到Intel ICH6 的晶片。6. 修改載入模組資料檔案。rootlinux # vi /etc/modprobe.conf# I2C module optionsalias char-major-89 i2c-dev# 將剛剛偵測到的模組給他寫入到這個檔案當中!這是 kernel 2.6 版的!7. 修改一些設定資料檔案 /etc/rc.d/rc.local。rootlinux # vi /etc/rc.d/rc.local# I2C adapter driversmodprobe i2c-i801modprobe i2c-isa# I2C chip driversmodprobe eeprommodprobe it87# sleep 2 # optional/usr/bin/sensors -s # recommendedConfigure LM_SENSOR.CONF1. 修改 /etc/sensor.confrootlinux # vi /etc/sensor.conf2. 尋找it87關鍵字,按下 ESC 按下 / 輸入it87,新增 ignore in5、in6、in7和in8。chip it87-* it8712-*# The values below have been tested on Asus CUSI, CUM motherboards.# Voltage monitors as advised in the It8705 data sheet label in0 VCore 1 label in1 VCore 2 label in2 +3.3V label in3 +5V label in4 +12V ignore in5 label in5 -12V ignore in6 label in6 -5V ignore in7 label in7 Stdby ignore in8 label in8 VBat3. 大約再往下 15 行,修改電壓計算功式。# If 3.3V reads 2X too high (Soyo Dragon and Asus A7V8X-X, for example),# comment out following line.# compute in2 2* , /2 compute in2 , 4. 修改溫度晶片種類,設定 sensor 3 為傳統的溫度二極體(thermal diode;TD);由於 sensor 1 和 2 没有使用到,請將他們設定為忽略。# Temperature# Important - if your temperature readings are completely whacky# you probably need to change the sensor type.# Adujst and uncomment the appropriate lines below.# The old method (modprobe it87 temp_type=0xXX) is no longer supported.# 2 = thermistor; 3 = thermal diode; 0 = unused# set sensor1 3# set sensor2 3# set sensor3 3 ingore sensor1 ingore sensor2 set sensor3 35. 由於 sensor 2 没有使用到,所以就不顯示 sensor 2 所偵測到的溫度。# If a given sensor isnt used, you will probably want to ignore it# (see ignore statement right below). label temp1 M/B Temp set temp1_over 40 set temp1_low 15 ingore temp2 label temp2 CPU Temp set temp2_over 45 set temp2_low 15# ignore temp3 label temp3 Temp3 set temp3_over 45 set temp3_low 156. 檢查是否開機即啟動 lm_sensors。rootlinux # chkconfig lm_sensors -listlm_sensors 0:off 1:off 2:on 3:on 4:on 5:on 6:off7. 重新啟動系統。rootlinux # sync; sync; reboot8. 測試偵測主機的狀況。rootlinux # sensorsIt8712-isa-0290Adapter: ISA adapterVCore 1: +1.33 V (min = +1.42 V, max = +1.57 V) ALARMVCore 2: +1.79 V (min = +2.40 V, max = +2.61 V) ALARM+3.3V: +3.17 V (min = +3.14 V, max = +3.47 V) +5V: +4.89 V (min = +4.76 V, max = +5.24 V) +12V: +11.52 V (min = +11.39 V, max = +12.61 V) fan1: 2445 RPM (min = 0 RPM, div = 8) fan2: -1 RPM (min = 3013 RPM, div = 8) fan3: 0 RPM (min = 3013 RPM, div = 8)M/B Temp: -55C (low = +15C, high = +40C) sensor = thermistor temp3: +32C (low = +15C, high = +45C) sensor = diodeSNMPD 這一部份的套件將會使用 Fedora Core 5 DVD 光碟片,所以下面的內容將會告訴你如何進行安裝和修改設定檔案。Error! No bookmark name given.Install the SNMPD RPM(Fedora Core 5 DVD)1. 在終端機上鍵入:rootlinux # su 2. 輸入 root 密碼。 3. 變更至要在其中執行安裝的目錄。鍵入:rootlinux # cd /media/dvd/Fedora/RPMS4. 安裝程序。鍵入:rootlinux # rpm -ivh net-snmp-5.3-4.2.i386.rpmrootlinux # rpm -ivh net-snmp-perl-5.3-4.2.i386.rpm rootlinux # rpm -ivh net-snmp-utils-5.3-4.2.i386.rpmConfigure SNMPD.CONF1. 修改 /etc/snmp/snmpd.conf rootlinux # cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf-orgrootlinux # vi /etc/snmp/snmpd.conf2. 設定社群名稱(Community name)到安全名稱(Security name)# First, map the community name (COMMUNITY) into a security name# (local and mynetwork, depending on where the request is coming# from):# source communitycom2sec local localhost publiccom2sec mynetwork default public3. 設定安全名稱(Security name)到群組名稱(Group name)。# Second, map the security names into group names:# sec.model group MyRWGroupv1 localgroup MyRWGroupv2c localgroup MyRWGroupusm localgroup MyROGroup v1 mynetworkgroup MyROGroup v2c mynetworkgroup MyROGroup usm mynetwork4. 設定群組(Group)允許遊覽範圍。# Third, create a view for us to let the groups have rights to:# incl/excl subtree maskview all included ..4.1.15370 80 5. 授予2 群組的讀取、寫入和通知許可。# Finally, grant the 2 groups access to the 1 view with different# write permissions:# context sec.model sec.level match read write notifaccess MyROGroup any noauth exact all all allaccess MyRWGroup any noauth exact all all none6. 使用Master SNMP Agent 下又支援數個Subagents,在檔案的最尾端加入 “master agentx”, 讓每個Subagents 負責處理一種管理資料庫(MIBs)。# Further Information# See the snmpd.conf manual page, and the output of snmpd -H.# MUCH more can be done with the snmpd.conf than is shown as an# example here.master agentx7. 檢查是否開機即啟動 snmpd 服務。rootlinux # chkconfig snmpd onrootlinux # chkconfig snmpd -listsnmpd 0:off 1:off 2:on 3:on 4:on 5:on 6:offCOM-V1 RPMC.O.M. Version 1 這是安裝於 Client 端的套件,這個可以回報記錄目前的硬體和軟體方面的資料,下面的章節描述如何安裝和設定參數。1. 在終端機上鍵入:rootlinux # su 2. 輸入 root 密碼。 3. 變更至要在其中執行安裝的目錄。鍵入:rootlinux # cd /media/dvd4. 安裝程序。鍵入:rootlinux # rpm -ivh -nomd5 com-1.0-1.i386.rpmrootlinux # cd /usr/localrootlinux # tar zxvf /media/dvd/comstd-v1_0_0.tar.gz5. 檢查 COMSTD 目錄是否存在。ro

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论