*)desktop主机中的日志全部定向到/var/log/westos文件中
> touch /var/log/westos ##新建文件
>vim /etc/rsyslog.conf ##编辑配置文件
>systemctl retart rsyslog.service ##重启服务
*)时时同步desktop主机中的所有日志到server中
>修改发送方、接收方配置文件
>重启服务
2.在server主机中用timedatectl命令设定系统时区为上海,时间为11:11:11
3.配置server主机的chronyd服务,使server主机中的时间可以被desktop主机同步
4.同步server主机中的时间到desktop主机中
>vim /etc/chrony.conf ##修改配置文件(server端)
> systemctl restart chronyd ##重启服务
>vim /etc/chrony.conf ##修改配置文件(desktop端)
> systemctl restart chronyd ##重启服务
5.配置系统中的systemd-journal程序,使journal命令可以查看到关机前的日志
> mkdir /var/log/journal
> chown root:systemd-journal /var/log/journal
> chmod 2755 /var/log/journal
> killall -1 systemd-journald
