一、at配置在5小时后,将“This is a at task”写入root家目录中的at_test文件中
[root@localhost ~]# 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 3 at Thu Jul 28 01:16:00 2022
[root@server /]# at -l
3 Thu Jul 28 01:16:00 2022 a root
二、crontab配置
每周六周日 9点半,14点 提醒我上RHCE课 写入root家目录中的cron_test文件中
[root@localhost ~]# crontab -e
crontab: installing new crontab
[root@localhost ~]# crontab -I
30 9 * * 6,7 echo “上rhce课了” >> /root/cron_test
0 14 * * 6,7 echo “上rhce课了” >> /root/cron_test
三、在两台Linux上部署chrony服务
要求:第一台从阿里云服务器同步时间,第二台从第一台同步时间
服务端:
[root@localhost ~]# systemctl start chronyd #启动一下配置文件
[root@localhost ~]# systemctl status chronyd #查看时间同步状态
[root@localhost ~]# timedatectl set-ntp true #开启网络时间同步
客户端:
[root@ls_Ok74kJfe ~]# systemctl restart chronyd #重启配置文件
[root@ls_Ok74kJfe ~]# chronyc sources #查看配置状态
四、什么是对称加密,什么是非对称加密,对称加密都有哪些加密算法,非对称加密都有哪些加密算法
对称加密采用单钥密码系统的加密方法,同一个密钥可以同时用作信息的加密和解密,这种加密方法称为对称加密,也称为单密钥加密。”
非对称加密算法需要两个密钥来进行加密和解密,这两个密钥是公开密钥(public key,简称公钥)和私有密钥(private key,简称私钥)。”
在对称加密算法中常用的算法有:DES、3DES、TDEA、Blowfish、RC2、RC4、RC5、IDEA、SKIPJACK等
在非对称加密算法中常用的算法有:RSA、DSA(数字签名用)、ECC(移动设备用)、Diffie-Hellman、El Gamal。推荐用ECC(椭圆曲线密码编码学)。