天天看点

Unit10 作业

<<<第十单元练习题>>>

1.配置desktop主机和server主机的日志服务要求如下:

*)desktop主机中的日志全部定向到/var/log/westos文件中

<a href="https://s3.51cto.com/wyfs02/M02/90/19/wKioL1jvLjuRia4fAABKfEhaJXI927.jpg" target="_blank"></a>

*)时时同步desktop主机中的所有日志到server中

2.在server主机中用timedatectl命令设定系统时区为上海,时间为11:11:11

<a href="https://s4.51cto.com/wyfs02/M00/90/1B/wKiom1jvLlaxTMx8AABRfMpsnN8240.jpg" target="_blank"></a>

3.配置server主机的chronyd服务,使server主机中的时间可以被desktop主机同步

<a href="https://s1.51cto.com/wyfs02/M02/90/1B/wKiom1jvLmPCbNZ9AABCd1M1w2g756.jpg" target="_blank"></a>

4.同步server主机中的时间到desktop主机中

5.配置系统中的systemd-journal程序,使journal命令可以查看到关机前的日志

<a href="https://s5.51cto.com/wyfs02/M01/90/1B/wKiom1jvLo3yQhALAAB-uGzsXns398.jpg" target="_blank"></a>

本文转自  夏梨巴人  51CTO博客,原文链接:http://blog.51cto.com/12774035/1915648