Centos7.2安装bacula及bacula-web
Posted 灬魑魅魍魉灬
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos7.2安装bacula及bacula-web相关的知识,希望对你有一定的参考价值。
serverd端安装(centos7)
关闭SElinux(重要)
安装软件包:
yum install mariadb-server mariadb-devel mariadb gcc gcc-c++
systemctl start mariadb.service
systemctl enable mariadb.service
安装bacula:
tar zxvf bacula-7.4.0.tar.gz
cd bacula-7.4.0
./configure --prefix=/opt/bacula --with-mysql
make && make install
make install-autostart
cd /opt/bacula/etc
./create_mysql_database
./grant_mysql_privileges
./make_mysql_tables
启动:
./bacula start
vi /etc/rc.d/rc.local
/opt/bacula/etc/bacula start
配置数据库:
mysql -u root -p
mysql>use mysql;
mysql>UPDATE user SET password=PASSWORD("bacula") WHERE user=‘bacula‘;
mysql>FLUSH PRIVILEGES;
mysql>UPDATE user SET password=PASSWORD("[email protected]") WHERE user=‘root‘;
mysql>quit;
baculum安装:
要添加Baculum存储库,首先您必须导入Baculum公钥:
rpm --import http://bacula.org/downloads/baculum/baculum.pub
添加Baculum存储库:
vi /etc/yum.repos.d/baculum.repo
[baculumrepo]
name=Baculum CentOS repository
baseurl=http://bacula.org/downloads/baculum/centos
gpgcheck=1
enabled=1
参考:http://www.bacula.org/7.4.x-manuals/en/console/Baculum_Web_GUI_Tool.html#SECTION00334000000000000000
安装baculum:
yum install baculum baculum-httpd
systemctl start httpd
增加访问权限:
vi /etc/sudoers.d/baculum
Defaults:apache !requiretty
apache ALL=NOPASSWD: /opt/bacula/etc/bconsole
vi /etc/sudoers
# Defaults requiretty # 注释掉
apache ALL=(ALL) NOPASSWD: ALL #增加
配置页面:
http://localhost:9095
安装webmin:
rpm -Uvh webmin-1.690-1.noarch.rpm
#################################################
客户端安装:
tar zxvf bacula-7.4.0.tar.gz
cd bacula-7.4.0
./configure --prefix=/opt/bacula/ --enable-client-only
make && make install
make install-autostart
vi /etc/rc.d/rc.local
/opt/bacula/etc/bacula start
以上是关于Centos7.2安装bacula及bacula-web的主要内容,如果未能解决你的问题,请参考以下文章