首页 > 代码库 > 记一次RackTables安装过程
记一次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安装过程
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。