zoukankan      html  css  js  c++  java
  • 基于LNMP架构部署wordpress

    [root@localhost ~]# yum -y install unzip
    [root@localhost ~]# unzip wordpress-5.2.3.zip
    [root@localhost ~]# rm -rf /usr/local/nginx/html/*
    [root@localhost ~]# cp -R wordpress/* /usr/local/nginx/html/
    [root@localhost ~]# mysql -uroot -p'111111'

    mysql> create database wordpress;
    Query OK, 1 row affected (0.00 sec)

    mysql> use wordpress;
    Database changed

    mysql> grant all on wordpress.* to 'wordpress'@'localhost' identified by '111111';
    Query OK, 0 rows affected, 1 warning (0.07 sec)

    mysql> flush privileges;

    mysql> exit
    Bye

    mysql> grant all on bbs.* to 'bbs'@'localhost' identified by 'bbs123456';
    Query OK, 0 rows affected, 1 warning (0.07 sec)

    mysql> flush privileges;

    [root@localhost ~]# killall -1 nginx
    [root@localhost ~]# /etc/init.d/mysqld restart
    [root@localhost ~]# cd /usr/local/nginx/html/
    [root@localhost html]# chmod -R 777 ./

  • 相关阅读:
    C语言博客作业03--函数
    C博客作业02--循环结构
    C博客作业01--分支、顺序结构
    我的第一篇博客
    迭代购物车Dao&&GUI
    Java购物车大作业01
    DS-查找
    DS-图
    DS--树
    DS博客作业02--栈和队列
  • 原文地址:https://www.cnblogs.com/lyqlyqlyq/p/11641708.html
Copyright © 2011-2022 走看看