标签:racktables
1、安装lamp环境
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-develglibcglibc-devel glib2 lib2-devel bzip2 bzip2 -devel ncursesncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidnlibidn-devel opensslopenssl-devel make patch pcre-devel cd /root wget http: //downloads .sourceforge.net /project/racktables/RackTables-0 .20.6. tar .gz?r=http%3A%2F%2Fracktables.org%2F&ts=1388393599&use_mirror=jaist tar zxvf RackTables-0.20.6. tar .gz |
mysql
#yum -y install httpd php mysql mysql-server php-mysql |
httpd
#yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql |
php
#yum -y install php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc php-snmp php-bcmath |
下载RackTables
# cd /tmp # wget https://sourceforge.net/projects/racktables/files/RackTables-0.20.11.tar.gz# tar -xvzf RackTables-0.20.8.tar.gz # sudo cp -r RackTables-0.20.8/wwwroot/ /var/www/racktables # sudo mv RackTables-0.20.8/wwwroot/ /var/www/html/racktables |
2.配置mysql
# service mysqld start # mysql -uroot -p (进入mysql数据库,空密码) # exit |
# mysqladmin -u root password ‘new-password‘ --newpassword为新密码。 # mysql -uroot -pnew-password mysql> (以下命令在mysql下执行) create database racktables; grant all on racktables.* to root; grant all on racktables.* to root@localhost; grant all on racktables.* to rackuser; grant all on racktables.* to rackuser@localhost; set password for rackuser@localhost=password(‘rackpw‘); exit |
3、在web下配置racktables(共7步)
# service httpd restart |
在浏览器下访问http://IP/racktables/
点 here 继续
在racktables安装检测页面有时会报缺少pcntl,(可以不装,直接继续)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# touch /var/www/html/racktables/inc/secret.php # chmod 666 /var/www/html/racktables/inc/secret.php |
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# cd /var/www/html/racktables/inc/ # chown apache:apache secret.php # chmod 400 secret.php (权限只要保证其他用户只读即可) |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
输入管理员密码:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
完成,使用admin 账号登陆
本文出自 “运维那点事” 博客,请务必保留此出处http://linux1990.blog.51cto.com/2260974/1871912
标签:racktables
原文地址:http://linux1990.blog.51cto.com/2260974/1871912