background picture of the home page

Hi,Friend

PHP7.2安装

useradd www yum -y install epel-release #启用PHP 7.4 Remi存储库并在CentOS 7上安装PHP 7.4 #配置安装源 yum -y install https://rpms.remirepo.net/enterprise/remi-rele

thumbnail of the cover of the post

7.web和nginx

1.http协议 1.1http概述 默认端口是80 HTTP超文本传输协议: 数据请求与响应 传输:网站的数据如何传递给用户. 超文本:文本,图片,视频.... 用户打开网站后:网站如何传递数据给用户. 专业名字:数据请求与响应 请求request:打开网站,访问网站.

thumbnail of the cover of the post

修改静态ip脚本

#!/bin/bash # 设置新的 IP 地址和子网掩码 NEW_IP="192.168.199.201" NEW_NETMASK="255.255.255.0" INTERFACE="ens33" # 网络接口名,根据您的实际情况修改 # 检查是否以 root 用户身份运行脚本 if [

thumbnail of the cover of the post

5.openssh

1.openssh服务 实现加密的远程连接/传输数据 openssh-server 服务端 (sshd,/etc/ssh/sshd_config) openssh-clients客户端命令 scp,ssh 1.1Openssh-server配置文件 核心配置文件:/etc/ssh/sshd_con

thumbnail of the cover of the post

4.sersync实时同步

1.概述 背景 之前我们通过rsync+定时任务实现定时备份/同步 对于NFS我们需要进行实时同步 选择 分布式存储 使用实时同步服务+NFS. 选择公有云对象存储OSS,七牛存储,腾讯存储COS. 选择: nfs+实时同步工具 inotify(bug需要书写脚本,不推荐使用

thumbnail of the cover of the post

3.nfs文件存储

1.概述 存储: 用于存放用户上传的内容(数据),一般应用在网站集群中 为何用? 如果不使用存储,用户上传的数据就直接存放在网站服务器上了,用户下次访问就可能找不到. 如果使用存储,用户上传的内容存放在存储上面,用户访问就会访问存储. 1.1存储分类 分类 说明 硬件存储 硬件存储,硬盘多,使

thumbnail of the cover of the post

2.rsync服务

1.概述 备份服务:需要使用到脚本,打包备份,定时任务 备份服务:rsyncd服务,不同主机之间数据传输. 特点: rsync是个服务也是命令. 使用方便,具有多种模式. 传输数据的时候是增量传输 增量与全量: 全量: 无论多少数据 全部 推送走(scp). 增量: 只会把 修改

thumbnail of the cover of the post