雲端計算學習路線教程大綱課件:部署部落格系統wordpress

千鋒雲端計算發表於2019-11-05

雲端計算學習路線教程大綱課件:部署部落格系統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

雲端計算學習路線教程大綱課件:部署部落格系統wordpress

<VirtualHost *:80>

ServerName

ServerAlias tianyun.com

DocumentRoot /web/tianyun

</VirtualHost>

<Directory "/web/tianyun">

Require all granted

</Directory>

systemctl restart httpd

2. 匯入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/

3. 準備資料庫

雲端計算學習路線教程大綱課件:部署部落格系統wordpress

4. 安裝wordpress [任何client]

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

192.168.122.161 zhufo.top tianyun.com //161為 web server IP

雲端計算學習路線教程大綱課件:部署部落格系統wordpress

[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


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69916964/viewspace-2662605/,如需轉載,請註明出處,否則將追究法律責任。

相關文章