树莓派搭建wordpress

前言

跟Ubuntu是差不多的。
把mysql换成了mariadb

sudo apt update
sudo apt-get install apache2 -y
sudo apt-get install php7.0 -y
sudo apt-get install libapache2-mod-php7.3
sudo apt install php7.3-mysql 
sudo apt install phpmyadmin -y
sudo apt install mariadb-server

// 重启服务
sudo systemctl restart mariadb
sudo systemctl restart apache2.service

数据库

sudo mysql -u root -p
CREATE DATABASE wordpress;
CREATE USER wordpressuser;
SET PASSWORD FOR wordpressuser= PASSWORD("password123");
GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser IDENTIFIED BY"password123";
FLUSH PRIVILEGES;
exit;

文章作者: 张小飞
版权声明: 本博客所有文章除特別声明外,均采用 CC BY-NC-ND 4.0 许可协议。转载请注明来源 张小飞 !
  目录