七、if结构条件句知识与实践 (一)if条件句单双分支语法 1、单分支 if 条件 then 指令 fi 2、双分支 if 条件 then 指令 else 指令集2 fi (二)if条件句多分支语句 if 条件1 then 指令1 elif 条件2 then 指令2 elif 条件3 then 指令 ...
分类:
系统相关 时间:
2020-01-29 01:02:07
阅读次数:
83
回顾:Ansible: 无需客户端程序 只要有SSH 模块化 ansible帮助工具ansible-doc 模块名ansible-doc 模块名 -s 列出该模块的所有选项ansible-doc -l 列出所有模块 6.group组模块 - gid 设置组id = name 需要管理的组名 - st ...
分类:
其他好文 时间:
2020-01-26 10:17:22
阅读次数:
93
[toc] 1 概述 @Scheduled注解是spring boot提供的用于定时任务控制的注解,主要用于控制任务在某个指定时间执行,或者每隔一段时间执行.注意需要配合@EnableScheduling使用,配置@Scheduled主要有三种配置执行时间的方式,cron,fixedRate,fix ...
分类:
其他好文 时间:
2020-01-25 22:04:56
阅读次数:
103
回顾: 1.rsync 统一备份各个服务器的配置文件或重要文件 系统配置文件 日志文件 系统日志文件 messages、secure、cron 服务日志文件 access_log、access.log 服务配置文件 /etc/rsyncd.conf、/etc/exports... 2.NFS 网络文 ...
分类:
其他好文 时间:
2020-01-22 23:57:12
阅读次数:
171
发现CPU直接100% [root@hadoop002 tmp]# systemctl status 25177 ● session-5772.scope - Session 5772 of user root Loaded: loaded (/run/systemd/system/session- ...
分类:
其他好文 时间:
2020-01-22 18:01:40
阅读次数:
686
crontab常用命令 1 创建crontab任务 1.1 service cron status 查看定时任务是否开启 1.2 crontab e 编辑用户的crontab文件的内容 1.3 crontab l 显示用户的crontab文件的内容 2 日志服务 2.1 修改rsyslog 2.2 ...
分类:
系统相关 时间:
2020-01-21 21:54:30
阅读次数:
354
一:前期准备 至少需要两台主机 192.168.175.200 vip 192.168.175.250 node1 做密钥否则不能拷贝过去 命令:[root@vip ~]#cd /root/.ssh 命令:[root@vip ~]#ssh-keygen 或[root@vip ~]#ssh-keyge ...
分类:
数据库 时间:
2020-01-21 21:36:02
阅读次数:
120
1. 常见命令参数 crontab -e 编辑用户定时任务 crontab -l list user's crontab crontab -r delete user's crontab 2.定时任务格式 * * * * * echo 'data' >> $HOME>test.txt 每分钟执行一次 ...
分类:
其他好文 时间:
2020-01-21 10:56:54
阅读次数:
82
crontab 详细用法 定时任务 转自:http://blog.chinaunix.net/uid-25785357-id-3434344.html 使用crontab你可以在指定的时间执行一个shell脚本或者一系列Linux命令。例如系统管理员安排一个备份任务使其每天都运行 如何往 cron ...
分类:
其他好文 时间:
2020-01-21 00:27:39
阅读次数:
100