// ---------------------------------------- Required software installation -----------------------------------//
# Yum install-y MySQL mysql-server mysql-deve httpd PHP-MySQL
# Wget http://jaist.dl.sourceforge.net/project/mrbs/mrbs/MRBS%201.4.11/mrbs-1.4.11.tar.gz
// ---------------------------------------- Required software installation -----------------------------------//
// --------------------------------------- Change the MySQL password ----------------------------------//
# Chgrp-r MySQL/var/lib/MySQL
# Chmod-r 770/var/lib/MySQL
# Service mysqld start
# MySQL
# Mysql> set password for 'root' @ 'localhost' = PASSWORD ('secret _ password ');
# Mysql> quit
# Mysql-u root-P
Enter Password: newpassword
Mysql> <logon successful>
// --------------------------------------- Change the MySQL password ----------------------------------//
// --------------------------------------- Start MySQL at startup ----------------------------------//
// View the listening port
# Netstat-lntp
# Chkconfig -- add mysqld
# Chkconfig -- levels 235 mysqld on
// --------------------------------------- Start MySQL at startup ----------------------------------//
#/Etc/init. d/mysqld restart
#/Etc/init. d/httpd restart
// ---------------- Disable SELinux --------------------------//
# Vi/etc/SELinux/config
Change SELinux = enforcing to SELinux = disabled
// ---------------- Disable SELinux --------------------------//
// ---------------- Start Apache --------------------------//
# Chkconfig -- levels 235 httpd on
// ---------------- Start Apache --------------------------//
// ---------------- Configure 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
// Remove the $ timezone = "xxxxxxx" comment and change it to $ timezone = "Asia/Shanghai ";
// Modify the following content. $ Dbsys = "MySQL"; $ db_host = "localhost"; $ db_database = "mrbs"; $ db_login = "root"; $ db_password = '2016 '; $ db_tbl_prefix = "mrbs _"; // Add $ auth ["type"] = "DB" at the end ";
# 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
// ---------------- Configure mrbs ---------------------------//
// ---------------- Enable port 80 --------------------------//
/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
// ---------------- Enable port 80 --------------------------//
Access http: // localhost/mrbs
Tail/var/log/httpd/error_log
Centos6.5 install mrbs