1.在bacula服務器端安裝bacula
首先在http://www.bacula.org下載相應的源碼,這裏下載的是bacula-5.0.1.tar.gz,接着進行編譯安裝,安裝過程如下:
1. [root@baculaServer opt]# tar zxvf bacula-5.0.1.tar.gz
2. [root@baculaServeropt]# cd bacula-5.0.1
3. [root@baculaServer bacula-5.0.1]# ./configure --prefix=/opt/bacula --with-mysql=/opt/mysql
[問題](編譯./configure --prefix=/opt/bacula --with-mysql)
4. [root@baculaServer bacula-5.0.1]#make
5. [root@baculaServer bacula-5.0.1]#make install
bacula需要數據庫的支持,這裏採用Mysql數據庫,並假定Mysql已經在bacula服務器端安裝好了,且Mysql安裝路徑爲/opt/mysql(bacula在編譯時通過“--with-mysql”選項指定了Mysql數據庫的安裝路徑)。
bacula安裝完成後,所有配置文件默認放在/opt/bacula/etc/目錄下。
2.在bacula客戶端安裝bacula
由於bacula客戶端只是是需要備份的客戶端,因而只需安裝相應的客戶端組件即可,過程如下:
1. [root@baculaClient opt]# tar zxvf bacula-5.0.1.tar.gz
2. [root@baculaClient opt]# cd bacula-5.0.1
3. [root@baculaClient bacula-5.0.1]# ./configure --prefix=/opt/bacula --enable-client-only
4. [root@baculaClient bacula-5.0.1]#make
5. [root@baculaClient bacula-5.0.1]#make install
三、 初始化Mysql數據庫
在baculaServer上安裝完bacula後,還需要創建bacula對應的Mysql數據庫以及訪問數據庫的授權,好在bacula已經爲用戶準備好了這樣的腳本,接下來只要在bacula服務器端上執行如下腳本即可。
1. [root@localhost bacula-5.0.1]#cd /opt/bacula/etc
2. [root@localhost etc]# ./grant_mysql_privileges
3. [root@localhost etc]# ./create_mysql_database
4. Creation of bacula database succeeded.
5. [root@localhost etc]# ./make_mysql_tables
6. Creation of Bacula MySQL tables succeeded.
接下來可以登錄Mysql數據庫,查看bacula的數據庫和數據表是否已經建立。在執行上面三行Mysql初始代碼時,默認由空密碼的root用戶執行,因此要請確保Mysql數據庫root密碼爲空。
[1]問題:CentOS 下mysql ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
解決:
登陸mysql,然後執行下面語句:
set password for 'root'@'localhost' =password('');
flush privileges;
然後再重新登陸,就達到你的要求了.
四、配置控制檯
# ./bconsole
Connecting to Director localhost:9101
五、守護進程
[root@localhost etc]# ./bacula start
Starting the Bacula Storage daemon (存儲)
Starting the Bacula File daemon (文件)
Starting the Bacula Director daemon (控制端)
這個文檔可以實現安裝,有問題大家可以交流。。
bacula安裝和問題詳解
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
Bacula(2)安裝
有毒有害可以食用
2018-08-24 06:41:02
Bacula(3)Bacula-gui安裝
有毒有害可以食用
2018-08-24 06:40:53
Bacula(4)簡單配置使用
有毒有害可以食用
2018-08-24 06:40:53
Bacula(5)配置詳解
有毒有害可以食用
2018-08-24 06:40:52
Bacula(1)概覽
有毒有害可以食用
2018-08-24 06:40:18