码迷,mamicode.com
首页 > Web开发 > 详细

Centos7.2安装bacula及bacula-web

时间:2017-06-14 18:18:59      阅读:1086      评论:0      收藏:0      [点我收藏+]

标签:pre   pass   down   apach   eve   yum   set   enable   --   

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("zedata@123") 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

标签:pre   pass   down   apach   eve   yum   set   enable   --   

原文地址:http://www.cnblogs.com/chimeiwangliang/p/7009986.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!