# yum install –y mysql mysql-server mysql-devel httpd php php-mysql
# wget http://jaist.dl.sourceforge.net/project/mrbs/mrbs/MRBS%201.4.11/mrbs-1.4.11.tar.gz
//--------------------------------------安装必须软件-----------------------------------// //-------------------------------------改动mysqlpassword----------------------------------// # chgrp -R mysql /var/lib/mysql # chmod -R 770 /var/lib/mysql # service mysqld start# mysql
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('secret_password');
quit# mysql -u root -p Enter password:newpassword mysql><登录成功>
//-------------------------------------改动mysqlpassword----------------------------------//
//-------------------------------------开机启动Mysql----------------------------------//
//查看监听port # netstat -lntp # chkconfig --add mysqld # chkconfig --levels 235 mysqld on //-------------------------------------开机启动Mysql----------------------------------////----------------关闭selinux--------------------------//
# vi /etc/selinux/config 将SELINUX=enforcing改为SELINUX=disabled//----------------关闭selinux--------------------------//
//----------------开机启动apache--------------------------// # chkconfig --levels 235 httpd on //----------------开机启动apache--------------------------// //----------------配置MRBS--------------------------// # tar zxvf mrbs-1.4.11.tar.gz # cd mrbs-1.4.11 # cp -r web /var/www/html/mrbs # vi /var/www/html/mrbs/config.inc.php//去掉$timezone = "XXXXXXX"的凝视。并改动成$timezone = "Asia/Shanghai";
//改动下面内容。
$dbsys = "mysql"; $db_host = "localhost"; $db_database = "mrbs"; $db_login = "root"; $db_password = '111111'; $db_tbl_prefix = "mrbs_"; //尾部加入 $auth["type"]="db";
# mysql -u root -p
CREATE DATABASE `mrbs` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;quit# mysql -uroot -p mrbs < ~/Desktop/mrbs-1.4.11/tables.my.sql # mysql -uroot -p mrbs < ~/Desktop/mrbs-1.4.11/sample-data.sql //----------------配置MRBS---------------------------// //----------------开启80port--------------------------// # /etc/init.d/iptables stop # /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT # /etc/rc.d/init.d/iptables save # /etc/init.d/iptables status # /etc/init.d/iptables restart
//----------------开启80port--------------------------//
# /etc/init.d/mysqld restart
# /etc/init.d/httpd restart
訪问
第一个注冊的就是管理员账号.
tail /var/log/httpd/error_log
版权声明:本文博主原创文章,博客,未经同意不得转载。