#mysql -uroot -p123456
create database discuz charset=utf8;
grant all on discuz.* to discuz$'localhost' identified by "123456";
然后打开 http://ip 开始安装discuz
源码安装方式:
安装apache
wget http:// httpd-2.2.2.7
yum -y install apr-devel apr-util-devel
tar -xzf httpd-2.2.27.tar.gz (如果是 .bz2格式 用 tar -jxf)
cd httpd-2.2.27
./configure --prefix=/usr/local/apache2 预编译
make
make install
cd /usr/local/apache2
cd conf
vi httpd.conf
vi /usr/local/apache2/htdocs/index.html 默认首页
/usr/local/apache2/bin/apachectl start
安装mysql
cd /usr/src;
wget http://downloads.mysql.com/archi ... ysql-5.1.63.tar.gz;
tar xzf mysql-5.1.63.tar.gz;
cd mysql-5.1.63;
./configure --prefix=/usr/local/mysql --enable-assembles &&make &&make install
配置mysql服务为系统服务
cp /usr/local/mysql/share/mysql/my-mediu.cnf /etc/my.cnf
cp /usr/local/mysql/share/mysql.server /etc/rc.d/init.d/mysqld
chkconfig --add mysqld
chkconfig --level 345 mysqld on
cd /usr/local/mysql
useradd mysql
chown -R mysql.mysql /usr/local/mysql
/usr/local/mysql/bin/mysql_install_db --user=mysql
chown -R mysql var
/usr/local/mysqlbin/mysqld_safe --user=mysql &安装php
cd /usr/src
wget http://mirrors.sohu.com/php/php-5.3.28.tar.bz2;
tar jxf php-5.3.28.tar.bz2
cd php-5.3.28
./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php/etc --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql/
make
make install