如何安装
2022-02-18 17:59:48
.官网下载
下载
先安装C 和 C++
root@localhost ~]# yum install -y gcc gcc-c++
如何安装
安装 mysql-devel
root@localhost ~]#yum install mysql-devel
上传文件至/
root@localhost ~]# cd /srv/Bacula
[root@localhost Bacula]# ls
解压
[root@localhost Bacula]# tar -zxvf bacula-11.0.5.tar.gz
bacula-11.0.5
[root@localhost Bacula]# cd bacula-11.0.5
[root@localhost bacula-11.0.5]# ./configure --with-mysql
[root@localhost bacula-11.0.5]# make && make install
安装结束后到 /etc/bacula
[root@localhost bacula-11.0.5]#cd /etc/bacula
[root@localhost bacula]# ./grant_mysql_privileges -p
root密码
bacula
Created MySQL database user: bacula
[root@localhost bacula]# ./create_mysql_database -p
root
root密码
vim /etc/bacula/bacula-dir.conf
启动
[root@localhost bacula]# bacula start
:4.8.5-44.el7 gcc-c++.x86_64
:4.8.5-44.el7 glibc-devel.x86_64
:2.17-325.el7_9 glibc-headers.x86_64
:2.17-325.el7_9 kernel-headers.x86_64
:1.0.1-3.el7 libstdc++-devel.x86_64
:2.17-325.el7_9 glibc-common.x86_64
:2.17-325.el7_9 libgcc.x86_64
:4.8.5-44.el7 libgomp.x86_64
Loading mirror speeds from cached hostfile
* epel: hk.mirrors.thegigabit.com
* extras: mirrors.163.com
* updates: mirrors.163.com
mysql-community-devel.x86_64.0.5.7.37-1.el7
mysql-community-devel x86_64
.37-1.el7 mysql57-community
3.9
mysql-community-devel-5.7.37-1.el7.x86_64.rpm
Running transaction check
bacula-11.0.5.tar.gz bacula-gui-11.0.5.tar.gz
bacula-11.0.5 bacula-11.0.5.tar.gz bacula-gui-11.0.5.tar.gz
/srv/Bacula/bacula-11.0.5/manpages'
/srv/Bacula/bacula-11.0.5/manpages
==>Entering directory /srv/Bacula/bacula-11.0.5/platforms
make[1]: Entering directory
/srv/Bacula/bacula-11.0.5/platforms'
/srv/Bacula/bacula-11.0.5/platforms/redhat'
/srv/Bacula/bacula-11.0.5/platforms/redhat'
/srv/Bacula/bacula-11.0.5/platforms'
Host: x86_64-pc-linux-gnu -- redhat
Install libraries: /usr/lib64
Install config files: /etc/bacula
Scripts directory: /etc/bacula
Working directory: /opt/bacula/working
Subsys directory: /var/lock/subsys
Man directory: /usr/share/man
Data directory: /usr/share
Plugin directory: /usr/lib64
Compiler flags: -g -O2 -Wall -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti
Libraries: -lpthread -ldl -ldl
/srv/Bacula/bacula-11.0.5/libtool --silent --tag
/findlib -o btape btape.o stored_conf.o global.o
-lbacsd -lbaccfg -lbac -lbacfind -lm -lpthread -ldl -ldl
/srv/Bacula/bacula-11.0.5/autoconf/mkinstalldirs /usr/lib64
/usr/local/bin/rm -f /usr/lib64/libbacsd-*.so /usr/lib64/libbacsd.la
/srv/Bacula/bacula-11.0.5/libtool --silent --tag
install /bin/install -c -m
/srv/Bacula/bacula-11.0.5/libtool --silent --tag
install /bin/install -c -m 0750 bacula-sd /sbin/bacula-sd
/srv/Bacula/bacula-11.0.5/libtool --silent --tag
install /bin/install -c -m 0750 bsdjson /sbin/bsdjson
/srv/Bacula/bacula-11.0.5/libtool --silent --tag
install /bin/install -c -m 0750 bls /sbin/bls
/srv/Bacula/bacula-11.0.5/libtool --silent --tag
install /bin/install -c -m 0750 bextract /sbin/bextract
/srv/Bacula/bacula-11.0.5/libtool --silent --tag
install /bin/install -c -m 0750 bcopy /sbin/bcopy
/srv/Bacula/bacula-11.0.5/libtool --silent --tag
install /bin/install -c -m 0750 bscan /sbin/bscan
/srv/Bacula/bacula-11.0.5/libtool --silent --tag
install /bin/install -c -m 0750 btape /sbin/btape
bacula-sd.conf /etc/bacula/bacula-sd.conf
“/
srv/Bacula/bacula-11.0.5/src/stored”
srv/Bacula/bacula-11.0.5/src/tools”
srv/Bacula/bacula-11.0.5/src/tools”
进入目录“/
srv/Bacula/bacula-11.0.5/manpages”
/srv/Bacula/bacula-11.0.5/autoconf/mkinstalldirs //usr/share/man/man8
bacula.8 bacula-dir.8 bacula-fd.8 bacula-sd.8 bconsole.8 bcopy.8 bextract.8 bls.8 bscan.8 btape.8 btraceback.8 dbcheck.8 bwild.8 bregex.8
-c
/srv/Bacula/bacula-11.0.5/autoconf/mkinstalldirs //usr/share/man/man1
-c
bacula bacula-dir.conf btraceback.dbx disk-changer grant_mysql_privileges mtx-changer
baculabackupreport bacula-fd.conf btraceback.gdb drop_bacula_database isworm mtx-changer.conf
bacula_config bacula-sd.conf btraceback.mdb drop_bacula_tables make_bacula_tables query.sql
bacula-ctl-dir bacula-tray-monitor.desktop create_bacula_database drop_mysql_database make_catalog_backup tapealert
create_mysql_database drop_mysql_tables make_catalog_backup.pl update_bacula_tables
bacula-ctl-sd bconsole.conf delete_catalog_backup grant_bacula_privileges make_mysql_tables update_mysql_tables
: Your password does not satisfy the current policy requirements
Host User Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Reload_priv Shutdown_priv Process_privFile_priv Grant_priv References_priv Index_priv Alter_priv Show_db_priv Super_priv Create_tmp_table_
% root Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y mysql_native_password *5F92E7A0D03F379115479669014962997AA0EEF4 N
localhost mysql.session N N N N N N N N N N N N N N N Y mysql_native_password *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE N
localhost mysql.sys N N N N N N N N N N N N N N N N mysql_native_password *THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE N
bacula N N N N N N N N N N N N N N N N N N mysql_native_password *2CEFC3BB237CEF447E1CE9CC7054244B9EA0C2F5 N
user bacula granted on database bacula.
Creation of bacula database succeeded.
Creation of Bacula MySQL tables succeeded.
# Generic catalog service
(6条消息) Centos7.5 如何安装Bacula 11.05_玩电脑的辣条... https://blog.csdn.net/weixin_42672685/article/details/12...
第1页 共5页 2022/2/23 17:22