当前位置:网站首页>RHCE的at,crontab的基本操作,chrony服务和对称加密和非对称加密
RHCE的at,crontab的基本操作,chrony服务和对称加密和非对称加密
2022-07-29 03:36:00 【小陈爱锻炼】
a,首先at后面时间格式有好多种
at 4pm + 3 days
at 10am Jul 31
at 1am tomorrow
HH:MM
midnight, noon, teatime (4pm)
AM or PM
month-name day with an optional year
MMDD[CC]YY, MM/DD/[CC]YY, DD.MM.[CC]YY or [CC]YY-MM-DD
now + count time-units
minutes, hours,days, or weeks
today,tomorrow
1.at配置在5小时后,将 "This is a at task" 写入 root家目录中的at_test文件中
[[email protected] ~]# at now + 5 hours
warning: commands will be executed using /bin/sh
at> echo "This is a at task" > /root/at_test
at> <EOT>
job 8 at Sun Jul 24 02:46:00 2022
[[email protected] ~]# atq
8 Sun Jul 24 02:46:00 2022 a root
[[email protected] ~]# date
Sat Jul 23 21:47:12 CST 2022
2.crontab配置,每周六,周日 9点半,14点 提醒我上RHCE课 写入root家目录中的cron_test文件中
[[email protected] ~]# crontab -e
crontab: installing new crontab
[[email protected] ~]# crontab -l
0 9,14 * * 6,7 echo "该上RHCE的课啦" > /root/cron_test
3.在两台Linux上部署chrony服务:要求:第一台从阿里云服务器同步时间, 第二台从第一台同步时间
1>首先我们需要下载并安装chrony,因为chrony有依赖软件,因此我们可以使用yum下载。
yum -y install chrony
2>安装完成后,我们需要进入/etc/chrony.conf这个文件进行配置
我们第一台linux服务器需要从阿里云服务器同步时间,阿里云授时中心网站为 ntp.aliyun.com
3>这个完成之后我们还需要对其他选项进行修改,如下图所示
4>设置开机启动,重启服务
systemctl enable chronyd
systemctl restart chronyd
开启网络时间同步
timedatectl set-ntp true
此时第一台已完成
5>我们还需要另一台服务器,我们可以克隆一下第一台的,这样都拥有了chrony软件
6>跟第一台服务器操作相同,对/etc/chrony.conf进行编辑,只需要将ip改成第一台服务器的ip就可以
然后就是
设置开机启动,重启服务
systemctl enable chronyd
systemctl restart chronyd
开启网络时间同步
timedatectl set-ntp true
此时已完成
4.什么是对称加密,什么是非对称加密,对称加密都有哪些加密算法,非对称加密都要哪些加密算法
对称加密:加密和解密使用同一个密钥
对称加密算法:DES、3DES、AES、DESX、Blowfish、、RC4、RC5、RC6。
非对称加密:加密和解密的密钥不同,但是是一对
非对称加密算法:RSA、DSA(数字签名用)、ECC(移动设备用)、Diffie-Hellman、El Gamal。
边栏推荐
- mysql的timestamp存在的时区问题怎么解决
- 军品技术文件划分及说明
- i. MX 8m plus integrated dedicated neural processing engine (NPU)
- 深入C语言(2)——结构的定义与使用
- 1.5 nn. Module neural network (III)
- Target detection, industrial defects, image segmentation -- deep learning data set induction
- ShardingSphere之水平分表实战(三)
- HDU多校第二场 1011 DOS Card
- LeetCode 1331 数组序号转换[Map] HERODING的LeetCode之路
- 1. 头文件-注释-命名空间-标准输入输出流
猜你喜欢
exness:鸽派决议帮助黄金反弹,焦点转向美国GDP
AI platform, AI midrange architecture
Understanding of p-type problems, NP problems, NPC problems, and NP hard problems in natural computing
Deep into C language (3) -- input and output stream of C
C language programming | exchange binary odd and even bits (macro Implementation)
Android view system and custom view Series 1: (kotlin version)
Rongyun IM & RTC capabilities on new sites
MOS管 —— 快速复苏应用笔记(贰)[参数与应用]
[technology 1]
Makefile details
随机推荐
Instance setup flask service (simple version)
2 neural network toolbox NN
Producer consumer model of concurrent model
Example analysis of while, repeat and loop loops in MySQL process control
反脆弱·从不确定性中获益---管理?
如何判定是stun协议
Realize multi-level linkage through recursion
Microcomputer principle operation
makefile详解
Summary of SAP localized content in China
How to judge stun protocol
Kubernetes-1.24.x feature
Rdkit II: use rdkit screening to screen 2D pharmacophores of chemical small molecules
LeetCode 1331 数组序号转换[Map] HERODING的LeetCode之路
Inclusion exclusion principle
Complexity analysis learning
Learn exkmp again (exkmp template)
Summary of basic knowledge points of C language
Simple understanding of Poe and UPS Technology
Matlab learning -- structured programs and user-defined functions