当前位置:网站首页>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。
边栏推荐
- Functions and comparison of repeaters, hubs, bridges, switches and routers
- How to solve the time zone problem in MySQL timestamp
- for_each用法示例
- 数字孪生实际应用案例-智慧能源篇
- Redis之sentinel哨兵集群怎么部署
- GJB常见混淆概念
- Connect with third-party QQ login
- Introduction to static routing and dynamic routing protocols OSPF and rip and static routing configuration commands
- Simple code implementation of K-means clustering
- Bingbing learning notes: operator overloading -- implementation of date class
猜你喜欢

How does DataGrid export and recover the entire database data, using a single SQL file

KNN method predicts pregnancy, KNN principle simple code

mysql的timestamp存在的时区问题怎么解决

How to deploy sentinel cluster of redis

(codeforce547)C-Mike and Foam(质因子+容斥原理)

Instance setup flask service (simple version)

Photo scale correction tool: DxO viewpoint 3 direct mount version

Rdkit I: using rdkit to screen the structural characteristics of chemical small molecules

Idea configuration web container and war packaging

Multi level wavelet CNN for image restoration
随机推荐
Complexity analysis learning
Three military product baselines (functional baseline, distribution baseline, product baseline) and the documents contained in the baseline
(nowcoder22529C)dinner(容斥原理+排列组合)
深入C语言(2)——结构的定义与使用
Rdkit I: using rdkit to screen the structural characteristics of chemical small molecules
Multi level wavelet CNN for image restoration
Redis之sentinel哨兵集群怎么部署
3.2 model saving and loading
Leetcode 1331 array sequence number conversion [map] the leetcode path of heroding
Realize multi-level linkage through recursion
GJB common confused concepts
[technology 1]
(codeforce547)C-Mike and Foam(质因子+容斥原理)
Web uploader cannot upload multiple files
Whole process record of yolov3 target detection
深入C语言(1)——操作符与表达式
Division and description of military technical documents
Summary of basic knowledge points of C language
AI_ Drug: VAE of molecular generation model (I)
Kubernetes-1.24.x feature