当前位置:网站首页>RHCE's at, crontab's basic operations, the Chrony service, symmetric encryption and asymmetric encryption
RHCE's at, crontab's basic operations, the Chrony service, symmetric encryption and asymmetric encryption
2022-07-29 03:37:00 【Xiao Chen loves exercise】
a, First at There are many later time formats
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 Configure in 5 Hours later, , take "This is a at task" write in root Home directory at_test In file
[[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 To configure , Every Saturday , Sunday 9 Half past six ,14 spot Remind me to go RHCE course write in root Home directory cron_test In file
[[email protected] ~]# crontab -e
crontab: installing new crontab
[[email protected] ~]# crontab -l
0 9,14 * * 6,7 echo " It's time to go RHCE Class of " > /root/cron_test

3. On two Linux Upper Department chrony service : requirement : The first one synchronizes the time from Alibaba cloud server , The second synchronizes the time from the first
1> First we need to download and install chrony, because chrony There are dependent software , So we can use yum download .
yum -y install chrony
2> After installation , We need to get into /etc/chrony.conf This file is used to configure
Our first one linux The server needs to synchronize time from Alibaba cloud server , Alibaba cloud time service center website is ntp.aliyun.com

3> After this, we need to modify other options , As shown in the figure below

4> Set boot up , Restart the service
systemctl enable chronyd
systemctl restart chronyd
Turn on network time synchronization
timedatectl set-ntp true


At this time, the first one has been completed
5> We also need another server , We can clone the first one , In this way, I have chrony Software

6> The operation is the same as that of the first server , Yes /etc/chrony.conf Editing , Only need to ip Change to the first server ip Can

Then is
Set boot up , Restart the service
systemctl enable chronyd
systemctl restart chronyd
Turn on network time synchronization
timedatectl set-ntp true

At this point... Has been completed
4. What is symmetric encryption , What is asymmetric encryption , What are the encryption algorithms of symmetric encryption , What encryption algorithms are needed for asymmetric encryption
Symmetric encryption : Encryption and decryption use the same key
Symmetric encryption algorithm :DES、3DES、AES、DESX、Blowfish、、RC4、RC5、RC6.
Asymmetric encryption : The encryption and decryption keys are different , But it's a pair
Asymmetric encryption algorithm :RSA、DSA( For digital signature )、ECC( For mobile devices )、Diffie-Hellman、El Gamal.
边栏推荐
- Sleuth+zipkin to track distributed service links
- How to judge stun protocol
- Simple code implementation of K-means clustering
- 04 | background login: login method based on account and password (Part 1)
- 深入C语言(4)——switch的定义与使用
- C obtains JSON format data asynchronously from the web address
- Introduction to static routing and dynamic routing protocols OSPF and rip and static routing configuration commands
- i. MX 8m plus integrated dedicated neural processing engine (NPU)
- three.js 第五十四用如何给shader传递结构体数组
- Military product development process - transition phase
猜你喜欢

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

最新二开版漫画小说听书三合一完整源码/整合免签接口/搭建教程/带采集接口

Asynchronous callback future mode of concurrent mode

04 | background login: login method based on account and password (Part 1)

Excel splicing database statement

How to deploy sentinel cluster of redis

Makefile details

Sleuth+zipkin to track distributed service links

Instance setup flask service (simple version)
![Leetcode 1331 array sequence number conversion [map] the leetcode path of heroding](/img/be/d429d0c437dc5ed7cb4448e223a83a.png)
Leetcode 1331 array sequence number conversion [map] the leetcode path of heroding
随机推荐
How to solve the time zone problem in MySQL timestamp
(2022杭电多校三)1002-Boss Rush(状压DP+二分)
Web uploader cannot upload multiple files
Reproduce 20 character short domain name bypass and XSS related knowledge points
Various minor problems of jupyter notebook, configuration environment, code completion, remote connection, etc
数字孪生实际应用案例-智慧能源篇
KNN method predicts pregnancy, KNN principle simple code
Rdkit II: use rdkit screening to screen 2D pharmacophores of chemical small molecules
MOS管 —— 快速复苏应用笔记(贰)[参数与应用]
GJB common confused concepts
ShardingSphere之水平分表实战(三)
向日葵资深产品总监技术分享:“国民远控”如何在AD域环境下应用
Singleton mode (hungry and lazy)
Kubernetes-1.24.x feature
Matlab learning -- structured programs and user-defined functions
In depth C language (2) -- definition and use of structure
Code speed optimization
HDU多校第二场 1011 DOS Card
Simple understanding of Poe and UPS Technology
腾讯云使用pem登录