Install Environment
apt install apache2 php mysql-serverapt install php-mysql php-fpm
Config
mysql -u root -p>此处输入密码CREATE USER '用户名'@'localhost' IDENTIFIED BY '密码';GRANT privileges ON databasename.tablename TO '用户名'@'localhost' create database wordpress;exit
Install WordPress
wget https://cn.wordpress.org/wordpress-4.9.4-zh_CN.tar.gztar -xzvf 压缩包cd wordpressmv * /var/www/htmlrm -f /var/www/index.htmlchown -R www-data:www-data /var/www/html
然后?emm......没了。在浏览器地址栏中输入服务器的IP即可......。