WordPress安装

yum groupinstall "Development Tools" "Server Platform Development" -y
yum install httpd
yum install php
systemctl start httpd.service
# ss -tnl 80端口
yum install php-mysql mariadb-server -y
systemctl start mariadb.service
# ss -tnl 3306端口
tar -zxf wordpress-4.9.6.tar.gz
cd wordpress
\cp * /var/www/html/ -r
cd /var/www/html/
cp wp-config-sample.php wp-config.php
mysql
# MariaDB [(none)]> CREATE DATABASE wpdb;
#MariaDB [(none)]> GRANT ALL ON 数据库名字db.* TO 用户@'ip' IDENTIFIED BY '密码';
#MariaDB [(none)]> exit
vim wp-config.php

按照之前的mariadb的数据库填写

systemctl restart httpd.service
systemctl restart mariadb.service
此条目发表在Linux分类目录。将固定链接加入收藏夹。

发表评论

邮箱地址不会被公开。 必填项已用*标注

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

Protected with IP Blacklist CloudIP Blacklist Cloud