标签: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” 博客,转载请与作者联系!
标签:discuz
原文地址:http://doublelinux.blog.51cto.com/12300166/1950983