需要一个服务器server 和一个client
直接 用vim /etc/hosts,然后将localhost.localdomian改为想要设置的主机名例如 server 和client
关闭防火墙 systemctl stop firewalld
重启 :reboot
然后直接hostnamectl set-hostname 主机名
在rhel8的系统上搭建网站:该网站ip地址主机位为11,设置documentroot为/www/你的名字拼音的缩写,网页内容为:my name is...
准备工作
编辑配置文件
再重启httpd : systemctl restart httpd
直接在百度上输出地址 192.168.203.11
搭建一个基于https://www.zuoye.com访问的web网站,网站首页在/www/https/,内容为exercise。
下载ssl安装包
到ssl.conf下
\
将servername ip改成 www.zuoye.com