Linux环境部署wordpress

一、安装软件

yum install php-fpm nginx mariadb-server tree vim wget bash-completion bash-completion-extras lrzsz net-tools sysstat iotop iftop htop unzip nc nmap telnet bc psmisc httpd-tools bind-utils

二、检查nginx和php

image.png

三、配置

yum install -y httpd mysql mysql-server php php-mysql

启动apache mysql

service httpd start
service mysqld start

让apache mysql开机启动

chkconfig httpd on
chkconfig mysqld on
vim /var/www/html/info.php
<?php
phpinfo();
?>
安装wordpress
下载解压后将wordpress目录放到 /var/www/html/

wordpress运行需要一个数据库,在mysql中建一个

新建一个数据库
mysql -uroot -p
create database wordpress;

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容