当前位置:网站首页>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。
边栏推荐
- (nowcoder22529C)dinner(容斥原理+排列组合)
- Leetcode 1331 array sequence number conversion [map] the leetcode path of heroding
- Three military product baselines (functional baseline, distribution baseline, product baseline) and the documents contained in the baseline
- Introduction to JVM foundation I (memory structure)
- Complexity analysis learning
- xxxxx
- Inclusion exclusion principle
- Exness: dove resolution helped gold rebound, and the focus turned to U.S. GDP
- 军品技术文件划分及说明
- Simple use of eventbus
猜你喜欢

Sleuth+Zipkin 来进行分布式服务链路的追踪

Violence recursion to dynamic programming 01 (robot movement)

Understanding of p-type problems, NP problems, NPC problems, and NP hard problems in natural computing

Connect with third-party QQ login

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

Introduction to JVM foundation I (memory structure)

2022-07-28 study notes of group 4 self-cultivation class (every day)

今晚7:30 | 连界、将门、百度、碧桂园创投四位大佬眼中的AI世界,是继续高深还是回归商业本质?...

makefile详解

NXP i.mx8mp-deepviewrt
随机推荐
How to solve the time zone problem in MySQL timestamp
Notes on letter symbol marking of papers
Singleton and invariant modes of concurrent mode
Instance setup flask service (simple version)
Reproduce 20 character short domain name bypass and XSS related knowledge points
Shortcut key for adjusting terminal size in ROS
web-uploader不能多文件上传
Tencent cloud logs in with PEM
In depth C language (2) -- definition and use of structure
Minesweeping simple version
Whole process record of yolov3 target detection
如何判定是stun协议
makefile详解
(codeforce547)C-Mike and Foam(质因子+容斥原理)
Deep into C language (1) -- operators and expressions
Precautions for using latex
Simple code implementation of K-means clustering
1.5 nn. Module neural network (III)
A simple and general method to obtain the size of function stack space
Excel拼接数据库语句