LAMP环境下,安装Discuz!
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了LAMP环境下,安装Discuz!相关的知识,希望对你有一定的参考价值。
安装Discuz!
mkdir /data/www
cd /data/www
wget http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_GBK.zip
unzip Discuz_X3.2_SC_GBK.zip
ls
mv upload/* .
ls
rm -rf readme/ utility/ upload/ Discuz_X3.2_SC_GBK.zip
ls
ps aux |grep httpd
vim /usr/local/apache2/conf/httpd.conf
Include conf/extra/httpd-vhosts.conf
vim /usr/local/apache2/conf/extra/httpd-vhosts.conf
# /usr/local/apache2/bin/apachectl start 开启80端口
卸载系统自带mysql
yum remove mysql
新装MYSQL绝对路径 /usr/local/mysql/bin/mysql
为了方便操作,直接输入mysql就可以运行
写一个path
vim /etc/profile.d/path.sh
#!/bin/bash
export PATH=$PATH:/usr/local/mysql/bin
:wq
# source /etc/profile.d/path.sh
mysql
mysql> create database discuz;
mysql> grant all on discuz.* to ‘eddie‘@‘localhost‘ identified by ‘eddielinux‘;
本文出自 “12202652” 博客,请务必保留此出处http://12212652.blog.51cto.com/12202652/1888764
以上是关于LAMP环境下,安装Discuz!的主要内容,如果未能解决你的问题,请参考以下文章