ServerD End Mount (CENTOS7)
Turn off SELinux (important)
To install the package:
Yum install mariadb-server mariadb-devel mariadb gcc gcc-c++
Systemctl Start Mariadb.service
Systemctl Enable Mariadb.service
Install 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
Start:
./bacula Start
Vi/etc/rc.d/rc.local
/opt/bacula/etc/bacula start
Configuration database:
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 Installation:
To add a baculum repository, you must first import the Baculum public key:
RPM--import Http://bacula.org/downloads/baculum/baculum.pub
To add a baculum repository:
Vi/etc/yum.repos.d/baculum.repo
[Baculumrepo]
Name=baculum CentOS Repository
Baseurl=http://bacula.org/downloads/baculum/centos
Gpgcheck=1
Enabled=1
Reference: http://www.bacula.org/7.4.x-manuals/en/console/Baculum_Web_GUI_Tool.html#SECTION00334000000000000000
Install Baculum:
Yum Install Baculum baculum-httpd
Systemctl Start httpd
To increase access rights:
Vi/etc/sudoers.d/baculum
Defaults:apache!requiretty
Apache ALL=NOPASSWD:/opt/bacula/etc/bconsole
Vi/etc/sudoers
# Defaults Requiretty # comment out
Apache All= (All) Nopasswd:all #增加
Configuration page:
http://localhost:9095
Install Webmin:
RPM-UVH webmin-1.690-1.noarch.rpm
#################################################
Client Installation:
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 installation of Bacula and Bacula-web