zoukankan      html  css  js  c++  java
  • Discuz!安装搭建

    Discuz!介绍

    Discuz!是一款由php语言开发的论坛源代码包,运行在lamp平之上或者lnmp之上,点击此处打开官方网站

    环境介绍

    本次安装采用最简配置,全部用yum安装,php采用模块方式配置,httpd,php,mariadb-server安装在同一台服务器上。

    软件版本如下:
    linux:GNU/Linux CentOS Linux release 7.5.1804 (Core)
    内核版本:3.10.0-862.el7.x86_64
    httpd:2.4.6
    php:5.4.16
    mariadb-server:5.5.60

    安装lamp

    关闭SELinux

    setenforce 0
    

    基本环境安装

    yum install unzip vim -y
    

    安装httpd,php,mariadb

    yum install httpd php php-mysql mariadb mariadb-server -y
    

    上传Discuz!到服务器,使用unzip解压,复制upload目录下所有文件及目录到/var/www/html
    设置apache用户权限

    setfacl -m u:apache:rwx ./*
    

    启动服务

    systemctl start httpd  
    systemctl start mariadb
    

    创建数据库账号

    mysql -e "grant all privileges on *.* to user1@'%' identified by '123456';"
    

    通过web登录进行初始化
    回收acl权限

    setfacl -b -R ./*
    
  • 相关阅读:
    查看网桥
    openstack 网卡
    fuel3.2安装
    whereis命令查看你要添加的软件在哪里
    ubuntu12.04开启远程桌面
    ubuntu 右键添加terminal
    本地源设置方法:
    ubuntu的dns设置
    chubu
    Linux内存
  • 原文地址:https://www.cnblogs.com/feng-land/p/10059487.html
Copyright © 2011-2022 走看看