云计算学习路线教程大纲课件:部署博客系统wordpress

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了云计算学习路线教程大纲课件:部署博客系统wordpress相关的知识,希望对你有一定的参考价值。

云计算学习路线教程大纲课件:部署博客系统wordpress:

========================================================

一、基础环境[已完成]

[root@apache ~]# sed -ri ‘/^SELINUX=/cSELINUX=disabled‘ /etc/selinux/config

[root@apache ~]# setenforce 0

[root@apache ~]# systemctl stop firewalld.service

[root@apache ~]# systemctl disable firewalld.service

二、安装LAMP[已完成]

[root@apache ~]# yum -y install httpd mariadb-server mariadb php php-mysql gd php-gd php-fpm

[root@apache ~]# systemctl start httpd mariadb

[root@apache ~]# systemctl enable httpd mariadb

[root@apache ~]# mysql_secure_installation /// mysqladmin -uroot password “123”

mysql -uroot -p123 进入mysql

三、安装wordpress

  1. Apache 配置虚拟主机

[root@apache ~]# vim /etc/httpd/conf.d/tianyun.conf

<VirtualHost *:80>

ServerName www.tianyun.com

ServerAlias tianyun.com

DocumentRoot /web/tianyun

</VirtualHost>

<Directory "/web/tianyun">

Require all granted

</Directory>

systemctl restart httpd

  1. 导入wordpress网站源码

[root@apache ~]# mkdir -p /webroot/tianyun

[root@apache ~]# tar xf wordpress-4.5.3-zh_CN.tar.gz

[root@apache ~]# cp -rf wordpress/* /webroot/tianyun/

  1. 准备数据库

  2. 安装wordpress [任何client]

[root@tianyun ~]# vim /etc/hosts

192.168.122.161 www.zhufo.top zhufo.top www.tianyun.com tianyun.com //161为 web server IP

[root@apache ~]# vim /webroot/tianyun/wp-config.php

59 vim /etc/yum.repos.d/

60 vim /etc/yum.repos.d/CentOS-Base.repo

62 yum -y install epel-release

63 vim /etc/yum.repos.d/epel.repo

64

65 yum -y install mariadb mariadb-server mariadb-libs php php-mysql php-gd php-fpm php-cli gd httpd

66 vim /etc/httpd/conf.d/blackmed.conf

67 mkdir -p /web/blackmed

70 cp -r /root/Desktop/wordpress/* /web/blackmed/

71 chmod 777 /web/blackmed/ -R

72 systemctl start httpd

73 systemctl start mariadb

74 mysqladmin -u root password ‘123‘

75 mysql -u root -p123

76 systemctl stop firewalld

77 setenforce 0

78 vim /etc/hosts

79 cat /etc/httpd/conf.d/blackmed.conf

80 vim /etc/hosts

81 mysql -u root -p123

83 history

以上是关于云计算学习路线教程大纲课件:部署博客系统wordpress的主要内容,如果未能解决你的问题,请参考以下文章

云计算学习路线教程大纲课件:部署网校系统 edusoho

云计算学习路线教程大纲课件:部署论坛系统Discuz

云计算学习路线教程大纲课件:部署网上商城ecshop

云计算学习路线教程大纲课件:XFS文件系统

云计算学习路线教程大纲课件:FAT文件系统

云计算学习路线教程大纲课件:tar项目实战案例