1、環(huán)境描述
服務(wù)器A(主) 192.85.1.175
服務(wù)器B(從) 192.85.1.176
Mysql版本:5.1.61
系統(tǒng)版本:System OS:ubuntu 10.10 X86
2.安裝heartbeat
1)安裝heartbeat
[html]
view plain copysudo apt-get install heartbeat
2)配置說(shuō)明
heartbeat的安裝目錄為/etc/ha.d目錄下,
安裝完成后,需要三個(gè)配置文件,為 ha.cf,haresources,authkeys。
此時(shí)目錄下沒(méi)有這三個(gè)文件,需要?jiǎng)?chuàng)建,我們可以在
/usr/share/doc/heartbeat目錄里找到ha.cf、haresources、authkeys三個(gè)文件,只需將其拷貝到
/etc/ha.d目錄下,即可
*.gz文件,使用 gunzip 命令解壓
3.175服務(wù)器配置信息:
(1)etc/hosts 文件內(nèi)容:
[html]
view plain copy192.85.1.175 primary # Added by NetworkManager
(2)ha.cf 文件內(nèi)容:(主配置文件)
[html]
view plain copy
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)
點(diǎn)擊舉報(bào)。