rsync同步

简介: rsync同步

环境准备  

#时关闭防火墙

[root@mayongle1 ~]# systemctl stop firewalld.service

#关闭开机自启

[root@mayongle1 ~]# systemctl disable firewalld.service

Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service. Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

#临时关selinux

[root@mayongle1 ~]# setenforce 0

#永久关selinux

#/etc/selinux/config文件SELINUX值改成disabled

[root@mayongle1 ~]# cat /etc/selinux/config

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

#

#

#

enforcing - SELinux security policy is enforced.

permissive - SELinux prints warnings instead of enforcing.

disabled - No SELinux policy is loaded.

SELINUX=disabled

# SELINUXTYPE= can take one of three values:

#

#

targeted - Targeted processes are protected,

minimum - Modification of targeted policy. Only selected processes are

protected.

#     mls - Multi Level Security protection.

SELINUXTYPE=targeted

相关文章
|
SQL 消息中间件 JSON
datafaker --- 测试数据生成工具
本文介绍如何使用datafaker工具生成测试数据
|
10月前
|
XML JSON 监控
Shell脚本要点和难点以及具体应用和优缺点介绍
Shell脚本在系统管理和自动化任务中扮演着重要角色。尽管存在调试困难、可读性差等问题,但其简洁高效、易于学习和强大的功能使其在许多场景中不可或缺。通过掌握Shell脚本的基本语法、常用命令和函数,并了解其优缺点,开发者可以编写出高效的脚本来完成各种任务,提高工作效率。希望本文能为您在Shell脚本编写和应用中提供有价值的参考和指导。
423 1
|
Java 数据库连接 mybatis
shardingsphere集成mybatis/mybatis-plus快速实现简单分片
shardingsphere集成mybatis/mybatis-plus快速实现简单分片
1017 0
|
运维 关系型数据库 MySQL
【运维知识进阶篇】集群架构-Rsync服务详解
【运维知识进阶篇】集群架构-Rsync服务详解
688 0
|
前端开发 NoSQL JavaScript
RAP2-DELOS 开源社区版本 (后端 API 服务器)
RAP2-DELOS 开源社区版本 (后端 API 服务器)
574 0
|
机器学习/深度学习 文字识别 算法
通用文字识别OCR 之实现数字化教材
通用文字识别OCR 之实现数字化教材
349 0
通用文字识别OCR 之实现数字化教材
|
弹性计算 安全 Linux
阿里云服务器宝塔面板使用教程(阿里云宝塔搭建网站)
阿里云服务器宝塔面板使用教程(阿里云宝塔搭建网站)阿里云服务器网以CentOS操作系统为例,安装宝塔Linux面板,先远程连接到云服务器,然后执行宝塔面板安装命令,系统会自动安装宝塔面板,安装完成后会返回面板地址、账号和密码,然后在安全组开通宝塔面板端口号
2531 1
|
监控 网络协议 网络安全
|
机器学习/深度学习 存储 监控
数据扩增:模拟监控相机红外图像完成深度学习数据集的扩增
数据扩增:模拟监控相机红外图像完成深度学习数据集的扩增
586 0
数据扩增:模拟监控相机红外图像完成深度学习数据集的扩增