1.配置ssh免密登陆:客户端主机通过redhat用户基于秘钥验证方式进行远程连接服务器的root用户。
[root@localhost ~]# ssh-copy-id root@192.168.252.132 进行复制
最后通过密钥登录本地服务器
[root@localhost ~]# ssh root@192.168.252.132
Activate the web console with: systemctl enable --now cockpit.socket
Register this system with Red Hat Insights: insights-client --register
Create an account or view all your systems at https://red.ht/insights-dashboard
Last login: Wed Oct 6 19:23:14 2023
2、综合练习:请给openlab搭建web网站
网站需求: 1.基于域名www.openlab.com可以访问网站内容为 welcome to openlab!!! 2.给该公司创建三个子界面分别显示学生信息,教学资料和缴费网站,基于www.openlab.com/student 网站访问学生信息,www.openlab.com/data网站访问教学资料,www.openlab.com/money网站访问缴费网站。
使用mkdir创建文件夹
依次访问
[root@server openlab]# curl 192.168.0.233
welcome to openlab!!!
[root@server openlab]# curl 192.168.0.233/student/
student message
[root@server openlab]# curl 192.168.0.233/data/
data message
[root@server openlab]# curl 192.168.0.233/money/
money message
3、配置dns服务的正向解析