Racktables的安装
yum -y install mariadb mariadb-server
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation
在/etc/my.cnf的配置文件中增加“character-set-server=utf8”
CREATE DATABASE racktables CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER cmdb@localhost IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON racktables.* TO cmdb@localhost;
flush privileges;
yum install httpd php php-mysql php-pdo php-gd php-mbstring php-bcmath
systemctl stop firewalld
systemctl disable firewalld
setenforce 0
# vim /etc/selinux/config修改如下行配置:
SELINUX=disabled
https://www.racktables.org/
tar zxvf RackTables-0.20.14.tar.gz
mv RackTables-0.20.14 cmdb
ln -s /opt/cmdb/wwwroot/index.php /var/www/html/cmdb/
systemctl start httpd
touch '/opt/cmdb/wwwroot/inc/secret.php'
chmod a=rw '/opt/cmdb/wwwroot/inc/secret.php'
chown apache secret.php
chmod 440 secret.php
详细可以参看我的博客: