centos搭建discuz论坛
一、安装MysqL
1、groupaddMysqL useraddMysqL-s/sbin/nologin-gMysqL-M 2、tarxf 3、cp/application/MysqL/support-files/my-small.cnf/etc/my.cnf 4、chown-RMysqL。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'exportPATH=/applicaton/MysqL/bin:$PATH'>>/etc/profile source/etc/profile 9、/etc/init.d/MysqLdstart
二、安装Nginx
1、yum-yinstallpcrepcre-developensslopenssl-devel 2、groupaddNginx useraddNginx-s/sbin/nologin-gNginx-M 3、tarxf 4、./configure--user=Nginx--group=Nginx--prefix=--with-htp_stub_status_module--with-http_ssl_module 5、make makeinstall 6、/application/Nginx/sbin/Nginx-t /application/Nginx/sbin/Nginx /application/Nginx/sbin/Nginx-sreload
三、安装PHP
yum-yinstallPHP-fpmPHP-MysqL systemctlenablepfp-fpm.service systemctlstartpfp-fpm.service systemctlstatuspfp-fpm.service
四、安装discuz
cd/home/qiu/tools tarzxfDiscuz_X3.2_SC_UTF8.zip ls Discuz_X3.2_SC_UTF8.zipreadmeuploadutility cdupload/ mkdir/www cp-r./*/www systemctlrestartPHP-fpm.service /application/Nginx-1.6.3/sbin/Nginx-sreload
在浏览器中输入对应IP
chmod777configdatadata/cachedata/avatardata/plugindatadata/downloaddata/addonmd5data/templatedata/threadcachedata/attachmentdata/attachment/albumdata/attachment/forumdata/attachment/groupdata/loguc_client/data/cacheuc_server/data/uc_server/data/cacheuc_server/data/avataruc_server/data/backupuc_server/data/logsuc_server/data/tmpuc_server/data/view