当前位置:网站首页>RHCE命令练习(一)
RHCE命令练习(一)
2022-07-28 23:56:00 【Secular nostalgia】
RHCE命令练习(一)
一、at命令
at 配置在5小时后,将 “This is a at task” 写入 root家目录中的at_test文件中
[[email protected] etc]# at now + 5 hours
warning: commands will be executed using /bin/sh
at> echo "This is a at task" >> /root/at_test<EOT>
job 1 at Sun Jul 24 02:58:00 2022
二、crontab命令
crontab配置,每周六,周日 9点半,14点 提醒我上RHCE课 写入root家目录中的cron_test文件中
[[email protected] etc]# crontab -e
30 9 * * 6-7 echo "Have a RHCE Lesson" >> /root/cron_test
0 14 * * 6-7 echo "Have a RHCE Lesson" >> /root/cron_test
三、chrony服务
在两台Linux上部署chrony服务:要求:第一台从阿里云服务器同步时间, 第二台从第一台同步时间
第一台Linux:
[[email protected] etc]# systemctl enable chronyd
[[email protected] etc]# systemctl start chronyd
[[email protected] etc]# vim /etc/chrony.conf
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
#pool 2.rhel.pool.ntp.org iburst
server utp.aliyun.com iburst
[[email protected] etc]# systemctl restart chronyd
第二台Linux:
[[email protected] etc]# systemctl enable chronyd
[[email protected] etc]# systemctl start chronyd
[[email protected] etc]# vim /etc/chrony.conf
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
#pool 2.rhel.pool.ntp.org iburst
server 192.168.106.129 iburst #第一台Linux的ip
[[email protected] etc]# systemctl restart chronyd
四、什么是对称加密,什么是非对称加密,对称加密都有哪些加密算法,非对称加密都要哪些加密算法
对称加密:加密与解密所用的密钥为同一个密钥(一旦密钥被泄露,那么所有运用这个密钥的文件整体信息就会被破解)
常用算法:DES、3DES、TDEA、Blowfish、RC2、RC4、RC5、IDEA、SKIPJACK
非对称加密:每个人会独立生成公钥和私钥两个部分。公钥给需要加密的一方,加密之后的文件只能通过持有该公钥对应的私钥的一方进行解密。
这就相当于一开始A有一个带着锁的保险箱(没有锁上)(公钥)和一个相对应的钥匙(私钥),此时B给A请求要个保险箱(公钥),对方B将文件放入这个保险箱后将锁锁上,然后递回去,这个锁只有A对应的钥匙,也就是只有A才能打开。这个过程中即便被拦截下来,也仅仅就是拿到了保险箱但是无法打开获得其中的文件内容。
常用算法:RSA、DSA、ECDSA
边栏推荐
- 小程序毕设作品之微信校园浴室预约小程序毕业设计成品(6)开题答辩PPT
- DDD领域驱动设计如何进行工程化落地
- Charles -- teach you how to use the packet capturing tool from 0-1
- 指令重排、happens-before、as-if-serial
- Inftnews | yuanuniverse shopping experience will become a powerful tool to attract consumers
- Wechat campus bathroom reservation applet graduation design finished product (5) assignment
- 递归与分治
- “index [hotel/jXLK5MTYTU-jO9WzJNob4w] already exists“
- Day2: 130 questions in three languages
- Implement Lmax disruptor queue from scratch (VI) analysis of the principle of disruptor solving pseudo sharing and consumers' elegant stopping
猜你喜欢

Selenium docking agent and selenium wire access developer tool network

面试突击69:TCP 可靠吗?为什么?

Wechat campus bathroom reservation applet graduation design finished product (5) assignment
![[target detection] Introduction to yolor theory + practical test visdrone data set](/img/cd/3cb13d6d79cd207c6d637af7756ffc.png)
[target detection] Introduction to yolor theory + practical test visdrone data set

QT静态编译程序(Mingw编译)

Beginner's Guide to electronic bidding

如何给女友讲明白JS的bind模拟实现

What opportunities does the London gold real-time market bring?

Wechat campus bathroom reservation of small program completion work (6) opening defense ppt

Seven marketing strategies of NFT project
随机推荐
【Web开发】Flask框架基础知识
[Commons lang3 topic] 005- objectutils topic
用CDO进行nc数据的不规则裁剪
Copy the table in word to wechat as a picture and send it
Daniel guild Games: summary and future outlook of this year
Irregular clipping of NC data with CDO
Solid smart contract tutorial (5) -nft auction contract
QT static compiler (MinGW compilation)
ACM SIGIR 2022 | 美团技术团队精选论文解读
SQL server only has database files and no log files. The solution to the 1813 error in restoring data times
Implement Lmax disruptor queue from scratch (VI) analysis of the principle of disruptor solving pseudo sharing and consumers' elegant stopping
Deep learning | matlab implementation of TCN time convolution neural network spatialdropoutlayer parameter description
[AD learning] the course of PCB drawing in this marine vehicle competition
B- 树 ~
Charles -- 从0-1教你如何使用抓包工具
Plato launched the LAAS protocol elephant swap, which allows users to earn premium income
Self made | a 16 bit RISC architecture CPU is self-made by hand
云函数实现网站自动化签到配置详解【Web函数/Nodejs/cookie】
“index [hotel/jXLK5MTYTU-jO9WzJNob4w] already exists“
The method of tracking the real-time market of London Silver