标签:service 注册 html 通过 域名解析 相关 sys lib mys
apt-get
安装 Apache2:sudo apt-get install apache2 -y
sudo apt-get install php7.0 -y
sudo apt-get install libapache2-mod-php7.0
sudo apt-get install mysql-server -y
sudo apt-get install php7.0-mysql
apt-get
安装 phpmyadmin,安装过程中,您需要根据提示选择 apache2 ,再输入root密码 和数据库密码:sudo apt-get install phpmyadmin -y
/var/www/html
下的软连接:sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
sudo service mysql restart
sudo systemctl restart apache2.service
wget https://cn.wordpress.org/wordpress-4.7.4-zh_CN.zip
sudo unzip wordpress-4.7.4-zh_CN.zip
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;
sudo mv wordpress/* /var/www/html/
sudo chmod -R 777 /var/www/html/
sudo mv /var/www/html/index.html /var/www/html/index~.html
sudo systemctl restart apache2.service
123.207.40.184
ping
命令检查域名是否生效
,如:ping www.yourdomain.com
基于Ubuntu 搭建 WordPress 个人博客 - 开发者实验室 - 腾讯云
标签:service 注册 html 通过 域名解析 相关 sys lib mys
原文地址:https://www.cnblogs.com/Just--Do--It/p/9893580.html