"/>

记一次RackTables安装过程

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了记一次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 [email protected];
grant all on racktables.* to rackuser;
grant all on racktables.* to [email protected];
set password for [email protected]=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安装过程的主要内容,如果未能解决你的问题,请参考以下文章

linux学习记录:记一次手动编译安装组件的过程

记一次oracle12c安装过程问题及处理方法

记一次java环境下安装php的过程

记一次服务器安装GPU以及安装esxi的过程

记一次wordpress安装过程中遇到的问题及解决办法

记一次腾讯云部署项目过程