标签:centos mysql php apache mrbs
//--------------------------------------安装必须软件-----------------------------------//# yum install –y mysql mysql-server mysql-deve httpd php php-mysql
# wget http://jaist.dl.sourceforge.net/project/mrbs/mrbs/MRBS%201.4.11/mrbs-1.4.11.tar.gz
//-------------------------------------修改mysql密码----------------------------------//
//-------------------------------------开机启动Mysql----------------------------------//
//查看监听端口
# netstat -lntp
# chkconfig --add mysqld
# chkconfig --levels 235 mysqld on
//-------------------------------------开机启动Mysql----------------------------------//
# /etc/init.d/mysqld restart
# /etc/init.d/httpd restart
//----------------关闭selinux--------------------------//
//去掉$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
//----------------开启80端口--------------------------//
tail /var/log/httpd/error_log
标签:centos mysql php apache mrbs
原文地址:http://blog.csdn.net/cooljsz/article/details/39047701