实验
实验目的:
- 客户机访问后台rs1(LAP)和rs2(LAP)负载均衡
- 数据类的流量访问MySQL,图片类访问NFS
- MySQL数据定期异地备份到NFS服务器
RSmysql增删改查语句1配置
(172.16.10.18 因为centos版本问题我换成了172.16.10.12)
systemctl stop firewalld.html简单网页代码service
mkdir -pv /var/www.html
hostnamectl set-hostname rs1.linweiwphp是前端还是后端ei配合拼音.com
yum install httpd php-fpm ph系统运维工资一般多少p-mysqlnd nfs-utils php-json -y
systemctl enable --now httpd php-fpmnfs-servlinux重启命令er
systemctl status httpdhtml个人网页完整代码 php-fpmnfs-server
vim /etc/fstab
尾行插入172.1html标签属性大全6.10.10:/data/wordpmysql增删改查语句ress /var/www.html nfs _netdev 0 0
mount -a
RS2配置
(172.16.10.19 因为centos版本问题我换成了172.16.10.13)
systemctl stop firewalld.service
mkdir -pv /var/www.html
hostnamectl set-hostname rs2.linweiwei.com
yum install htlinux常用命令tpd php-fpm php-mysqlnd nfs-utils php-json -y
systemctl enable --now httpd php-fpmnfs-server
systemctl status httpd php-fpmnfs-server
vim /ethtml是什么意思c/fstab
尾行插入172.16html.10.10:/dat系统运维工作内容a/html代码wordpress /varhtml/www.html nfs _netdev 0 0
mount -a
MySQL配置
systemctl stop firewalld.servicemysql安装配置教程
yum -y install mysql-servernfs-utils
systemctl enable --nowlinux系统 mysqldnfs-server
systemctl status mysqld nfs-server
mysql
creathtml代码e database wordpress;
create user wordpress@'172.16.10.%' idemysql密码忘记了怎么办ntified by '123456'; #创建用户和可以访问的网络以及验证pamysql面试题ssword
grant alphp中文网l on wordpress.* towordpress@'17html个人网页完整代码2.16.10.%';
NFS配置
systemctl stop firewalld.service
mkdir -pv /data/wordpress
chmod 777/data/wordpress
vim /etc/exports
尾mysql行插入/data/worlinuxdpress 172.16.10.0/24(rw)
yum -y install nfs-html网页制作utils
systemctl enable --now nfs-server
systemctl status rlinux删除文件命令pcbind nfs-server #看到RPC和NFS均启动正常
exportfs -r
exportfs -v
官网下载wordpresshttpmysql数据库命令大全://cn.wordpressphpmyadmin.org/ 并上传给NFS服务器
tarphp7 xf wordpress-5.8.3-zh_CN.tar.gz
mv wmysql数据库ordpress/* /data/wordpress/
client配置
修改host文档(简化LVS部分直接修改host文档使html流量负载均衡到Rmysql索引S1和RS2)
1linux重启命令72.16.10.12 blog.linweiwei.com
172.16.1html文件怎么打开0.13 blog.linweiwei.com
未完成,先下mysql班~
发表评论