centos搭建discuz论坛

前端之家收集整理的这篇文章主要介绍了centos搭建discuz论坛前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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-RMysqLMysqL/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

wKiom1l3dxySSgeIAAWnpy-KAQk193.png-wh_50

wKiom1l3d2KAD1IUAAChQrQ9yOk241.png-wh_50

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

wKioL1l3d5KABtRVAABiUGRH_wc100.png-wh_50

wKioL1l3eBbz2nV6AAMCWBBbKkM162.png-wh_50

wKiom1l3eCbCKgDtAALRZL__VvY636.png-wh_50

猜你在找的CentOS相关文章