摘要: 显示9:05:00 到9:15:00 之间在/home/student/systemdreview.txt 文件中记录所有systemd日志条目 # echo "journalctl --since 9:05:00 --until 9:15:00" >/home/student/systemdrev 阅读全文
posted @ 2016-06-12 18:32 zhg1016 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 把计算机时区调整到巴哈马(这是个啥地方?听都没听过。) 使用 tzselect 进行确定时区,并进行可对话性的设置,按照对应的序号,射进去就行了。 使用:timedatectl set-timezone "时区名" 设置时区 使用:timedatectl 验证设置是否符合题目要求。 阅读全文
posted @ 2016-06-12 17:09 zhg1016 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 生成SSH公钥 $ ssh-keygen 生成的公钥安装到指定的服务器上,这里安装到desktop0上的student账户 $ ssh-copy-id desktop0 $ su - 禁用root用户的SSH连接,并且仅允许基于密钥的登录,学会自定义ssh服务 在/etc/ssh/sshd_conf 阅读全文
posted @ 2016-06-12 12:14 zhg1016 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 停止cups服务 $ sudo systemctl stop cups $ sudo systemctl status cups 配置cups服务,使其不在系统启动时启动 $ sudo systemctl disable cups $ sudo systemctl status cups 杀死进程c 阅读全文
posted @ 2016-06-12 11:46 zhg1016 阅读(373) 评论(0) 推荐(0) 编辑