zoukankan      html  css  js  c++  java
  • 搭建简易的 DISCUZ论坛

    基于LAMP 搭建

    下载 DISCUZ包   并解压  unzip   ***.zip文件 

    [root@localhost ~]# yum list | grep httpd 

    [root@localhost ~]# yum install -y httpd.x86_64 

    [root@localhost ~]# yum install -y mariadb-server.x86_64

    [root@localhost html]# yum install -y php.x86_64

    [root@localhost html]# yum install -y php-mysql 

    [root@localhost dir_SC_UTF8]# cp upload/ /var/www/html/ -rf          ### -rf  完全拷贝目录及子目录所有

    [root@localhost ~]# cd /var/www/html/

    [root@localhost html]# chmod 777 upload/ -Rf        完全授权

    启动 Httpd  mariadb 

    mysql如何授权给指定的ip账号进行登录

    [root@localhost html]# mysqladmin -u root password "111111"         # 设置 mysql root密码

    GRANT ALL PRIVILEGES ON *.* TO 'aitang'@'192.168.100.142' IDENTIFIED BY '123' WITH GRANT OPTION;
    FLUSH PRIVILEGES;

    同步网络时间

    .安装ntpdate工具

    yum -y install ntp ntpdate

    2.设置系统时间与网络时间同步

    ntpdate cn.pool.ntp.org

    3.将系统时间写入硬件时间

    hwclock --systohc
  • 相关阅读:
    AOV网和AOE网对比
    AOV网和AOE网对比
    Python类型总结
    Python数据结构
    Django之认证系统
    day22笔记
    数据库概念知识
    pymsql模块使用
    多表查询(子查询)
    多表查询(链接查询)
  • 原文地址:https://www.cnblogs.com/th-lyc/p/10207885.html
Copyright © 2011-2022 走看看