Cloud computing tutorial learning course syllabus courseware: wordpress blog system deployment

Cloud computing tutorial learning course syllabus courseware: Deployment System blog wordpress:

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

First, the basic environment [Completed]

[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

Second, install the LAMP [Completed]

[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 enter mysql

Third, install wordpress

  1. Apache virtual host configuration

[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. Import wordpress website source

[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. Preparing the database

  2. Installation WordPress [any client]

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

192.168.122.161 www.zhufo.top zhufo.top www.tianyun.com tianyun.com // 161 is a 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

Guess you like

Origin blog.51cto.com/14489558/2447718