1. 安装apache2
aptitude install apache2
2. 安装mysql
aptitude install mysql-server-5.0
3. 安装php5
aptitude install php5
4. 创建数据库sworld
mysql -u root -p mysql
mysql> create database sworld;
mysql> use sworld;
mysql> grant all on sworld.* to sworld@localhost;
mysql> use mysql;
mysql> update user set password=password('pass') where user = 'sworld';
mysql> quit;
5. 下载wordpress最新版本
wget http://wordpress.org/latest.zip
6. 解压到/var/www(apache2默认目录)
mv latest.zip /var/www/
unzip latest.zip
7. 将wp-config-sample.php改成wp-config.php
cd /var/www/wordpress
mv wp-config-sample.php wp-config.php
8. 修改wp-config.php
9. 进入页面http://localhost/wordpress/
原文链接:https://blog.csdn.net/yonee/article/details/6455459?ops_request_misc=&request_id=9630ef596e3b452f8c4e479ce176baa8&biz_id=&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~koosearch~default-22-6455459-null-null.268%5Ev1%5Econtrol&utm_term=docker%E3%80%81wordpress%E3%80%81wordpress%E5%BB%BA%E7%AB%99%E3%80%81wordpress%E4%B8%BB%E9%A2%98%E3%80%81%E5%AE%B9%E5%99%A8%E9%95%9C%E5%83%8F%E3%80%81