centos搭建discuz论坛
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos搭建discuz论坛相关的知识,希望对你有一定的参考价值。
centos搭建discuz论坛
一、安装mysql
1、groupadd mysql useradd mysql -s /sbin/nologin -g mysql -M 2、tar xf 3、cp /application/mysql/support-files/my-small.cnf /etc/my.cnf 4、chown -R mysql。mysql /application/mysql 5、/application/mysql/scripts/mysql_install_db --basedir=/application/mysql --datadir=/application/mysql/data --user=mysql 6、cp /application/mysql/support-files/mysql.server /etc/init.d/mysqld chmod +x /etc/init.d/mysqld 7、sed -i ‘s#/usr/local/mysql#/application/mysql#g‘ /application/mysql/bin/mysqld_safa /etc/init.d/mysqld 8、echo ‘export PATH=/applicaton/mysql/bin:$PATH‘ >>/etc/profile source /etc/profile 9、/etc/init.d/mysqld start
二、安装nginx
1、yum -y install pcre pcre-devel openssl openssl-devel 2、groupadd nginx useradd nginx -s /sbin/nologin -g nginx -M 3、tar xf 4、./configure --user=nginx --group=nginx --prefix= --with-htp_stub_status_module --with-http_ssl_module 5、make make install 6、/application/nginx/sbin/nginx -t /application/nginx/sbin/nginx /application/nginx/sbin/nginx -s reload
三、安装php
yum -y install php-fpm php-mysql systemctl enable pfp-fpm.service systemctl start pfp-fpm.service systemctl status pfp-fpm.service
四、安装discuz
cd /home/qiu/tools tar zxf Discuz_X3.2_SC_UTF8.zip ls Discuz_X3.2_SC_UTF8.zip readme upload utility cd upload/ mkdir /www cp -r ./* /www systemctl restart php-fpm.service /application/nginx-1.6.3/sbin/nginx -sreload
在浏览器中输入对应IP
chmod 777 config data data/cache data/avatar data/plugindata data/download data/addonmd5 data/template data/threadcache data/attachment data/attachment/album data/attachment/forum data/attachment/group data/log uc_client/data/cache uc_server/data/ uc_server/data/cache uc_server/data/avatar uc_server/data/backup uc_server/data/logs uc_server/data/tmp uc_server/data/view
本文出自 “doublelinux” 博客,转载请与作者联系!
以上是关于centos搭建discuz论坛的主要内容,如果未能解决你的问题,请参考以下文章
CentOS 7 搭建 LNMP 架构详细过程 + Discuz 论坛安装 (手工编译)
CentOS 7中的httpd-2.4和CentOS 6中的httpd-2.2搭建wordpress博客系统和Discuz!论坛系统