Linux-Apache-httpd作业

1. (其它) 在服务器上面搭建httpd服务器,首页是你个人的简单的自我介绍页面(拼音),并且附上你舍友的链接跳转。记得用ipconfig -all 合影

安装Apache-httpd

 yum install httpd -y

cd到var/www/html下

cd /var/www/html

创建并编辑一个index页面 默认ip地址会自动到index 无需继续加路径访问

vim index.html

ins输入以下内容 退出保存esc :wq

<h1>我是林楠宇,我来自广州理工学院</h1>
<a href="http://ip/">跳转到我的服务器上</a>

 关闭防火墙

systemctl stop firewalld

开启阿帕奇服务

systemctl start httpd

 

 

 浏览器地址栏访问

 

 点击a标签跳转 记住要加http://ip

posted @ 2021-11-26 19:56  南柯Dream丶  阅读(281)  评论(0)    收藏  举报