zoukankan      html  css  js  c++  java
  • Centos 搭建wordpress个人博客

    1、装apache、mariadb

    yum install  httpd  mariadb-server  php php-mysql -y
    systemctl start httpd
    systemctl enable httpd
    systemctl start mariadb
    systemctl enable mariadb

    2、mariadb配置

    密码初始化
    mysql_secure_installation


    创建一个数据库wordpress
    mysql -u root -p
    MariaDB [(none)]> create database wordpress character set utf8 collate utf8_bin;
    MariaDB [(none)]> grant all on wordpress.* to  wordpress@'localhost' identified by 'wordpress';
    MariaDB [(none)]> grant all on wordpress.* to  wordpress@'%' identified by 'wordpress';
    MariaDB [(none)]> exit

     3、安装wordpress

    官网:https://cn.wordpress.org/

    下载
    wget https://cn.wordpress.org/wordpress-4.8.1-zh_CN.tar.gz
    解压
    tar -zxf wordpress-4.8.1-zh_CN.tar.gz
    移动到html目录下
    mv wordpress /var/www/html/
    重启httpd服务
    systemctl restart httpd

    4、页面访问 ip/wordpress web端安装

    按照提示在 wordpress目录下创建wp-config.php并配置
    cd /var/www/html/wordpress/
    vi wp-config.php

    最后面填入一些账号密码信息即可完成!

  • 相关阅读:
    JVM内存问题分析
    CAS
    普通内部类,匿名内部类和静态内部类
    文章简介
    conda更换下载源
    MySQL常见约束
    MySQL常见的数据类型
    DDL(数据定义语言)
    DML语言(数据操纵语言)
    进阶9:联合查询
  • 原文地址:https://www.cnblogs.com/blogscc/p/7805772.html
Copyright © 2011-2022 走看看