Bootstrap

公有云部署

1.安装apache,PHP服务

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

systemctl restart httpd

systemctl enable httpd

 systemctl restart php-fpm

 systemctl enable php-fpm

记得加上新的安全组web

主机一主机二同操作

查看php版本信息

echo "<?php echo phpinfo();?>"  >  /var/www/html/index.php

2.在database上部署mysql服务

yum remove MariaDB* -y

wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm

yum -y install mysql57-community-release-el7-10.noarch.rpm 

yum -y install mysql-community-server

grep 'temporary password' /var/log/mysqld.log

##查找MySQL初始密码

mysql_secure_installation

update user set host='%' where user='root' LIMI 1;

 flush privileges;

在node主机上安装mysql:yum install -y mysql

在database上创建数据库:

使用现有软件包在node1、node2安装Discuz网站。

wget http://download.comsenz.com/DiscuzX/3.3/Discuz_X3.3_SC_UTF8.zip

ll

unzip Discuz_X3.3_SC_UTF8.zip

unzip Discuz_X3.3_SC_UTF8.zip -d /var/www/html/

cd /var/www/html/

rm -rf readme utility

rm -rf index.php 

mv upload/* .

cd ..

chmod 777 -R html

cd html/

[root@node-0002 html]# vim config/config_global.php 

redis上操作:

yum install -y yum-utils device-mapper-persistent-data lvm2

 

;