ce-例行工作练习

 1.at 配置在5小时后,将 "This is a at task" 写入 root家目录中的at_test文件中

 at 05:00
at> echo "this is a at task" >>~/at_test


2.crontab配置,每周六,周日 9点半,14点 提醒我上RHCE课 写入root家目录中的cron_test文件中

[root@zhujd ~]# crontab -u root -e
no crontab for root - using an empty one
crontab: installing new crontab
30 9 * * 6,7 echo "RHCE上课了" > /root/cron_test
0 14 * * 6,7 echo "RHCE上课了" > /root/cron_test


3.在两台Linux上部署chrony服务:要求:第一台从阿里云服务器同步时间, 第二台从第一台同步时间

 在另一台虚拟机,先安装chrony  ,#yum -y install  chrony

然后编辑:#vim  /etc/chrony.conf

 然后分别查看时间同步源是哪的

# chronyc sources -v

4.什么是对称加密,什么是非对称加密,对称加密都有哪些加密算法,非对称加密都要哪些加密算法

对称加密
对称加密算法的特点是加密使用的密钥和解密使用的密钥是相同的。也就是说,加密和解密都是使用的同一个密钥。因此对称加密算法要保证安全性的话,密钥自然要做好保密,只能让使用的人知道,不能对外公开。
对称加密算法
对称加密算法主要有DES、3DES(TripleDES)、AES、RC2、RC4、RC5和Blowfish等。
非对称加密
在非对称加密算法中,有公钥和私钥两种密钥,其中,公钥是公开的,不需要保密,私钥由个人持有,必须妥善保管和注意保密。加密和解密使用两种不同的密钥,是它得名的原因。估计大家都听说过RSA,这就是一种常见的,应用很广的非对称加密算法。
非对称加密算法
RSA、Elgamal、背包算法、Rabin、D-H、ECC(椭圆曲线加密算法)。

### 配置继承 `spring-boot-starter-parent` 的方法 在 Maven 构建工具中,可以通过设置项目的根 `pom.xml` 文件来继承 `spring-boot-starter-parent`。以下是具体的配置方式: #### 1. 设置父项目 在 `pom.xml` 中定义 `<parent>` 节点,指定其 groupId、artifactId 和 version 属性。 ```xml <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>3.0.0</version> <!-- 这里填写所需的 Spring Boot 版本 --> </parent> ``` 通过上述配置,当前项目会自动继承来自 `spring-boot-starter-parent` 提供的一系列默认配置和依赖管理[^1]。 #### 2. 添加启动器依赖 为了使项目具备基本功能,通常还需要引入至少一个 Starter 依赖。例如,如果需要创建一个 Web 应用程序,则可以添加以下依赖项: ```xml <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> </dependencies> ``` 由于已经继承了 `spring-boot-starter-parent`,因此无需显式声明版本号,因为这些版本会被自动管理[^2]。 #### 完整示例 下面展示了一个完整的 `pom.xml` 示例文件结构: ```xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>3.0.0</version> <!-- 替换为所需的具体版本 --> </parent> <groupId>com.example</groupId> <artifactId>demo-project</artifactId> <version>1.0-SNAPSHOT</version> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> </project> ``` 此配置继承了 `spring-boot-starter-parent` 所提供的默认构建支持,还集成了必要的插件用于打包可执行 JAR 文件。 ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值