首页 > 其他 > 详细

CentOS6.5设备MRBS

时间:2015-10-03 11:45:30      阅读:233      评论:0      收藏:0      [点我收藏+]
//--------------------------------------软件必须安装-----------------------------------//

# 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


訪问http://localhost/mrbs

第一个注冊的就是管理员账号.

tail /var/log/httpd/error_log

版权声明:本文博主原创文章,博客,未经同意不得转载。

CentOS6.5设备MRBS

原文:http://www.cnblogs.com/lcchuguo/p/4853132.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!