树莓派安装WordPress

1.更新系统

sudo apt-get update && sudo apt-get -y upgrade

安装软件

sudo apt-get install mysql-server
sudo apt-get install apache2 php7.0 php7.0-fpm php7.0-mysql php7.0-common php7.0-mbstring php7.0-gd php7.0-json php7.0-cli php7.0-curl libapache2-mod-php7.0

配置Mysql

sudo apt-get -y install debconf-utils
sudo echo "mysql-server-5.5 mysql-server/root_password password passw0rd" | debconf-set-selections
sudo echo "mysql-server-5.5 mysql-server/root_password_again password passw0rd" | debconf-set-selections

安装phpmyadmin 数据库管理器

sudo apt-get install phpmyadmin

选择apache2(空格打上*号选中)

选择YES

询问root密码输入:raspberry

软连接数据库

sudo ln -s /usr/share/phpmyadmin /var/www/html

打开浏览器,输入(你的树莓派ip/phpmyadmin/)

 

为您推荐

发表评论