一.實驗要求
1.配置DNS服務(wù)器
2.HTTP服務(wù)器(可以用配置Tomcat 替代,需要能進(jìn)入管理界面,即點(diǎn)擊"Manager App"圖標(biāo)后能正常跳轉(zhuǎn)到另一個界面)
3.配置FTP服務(wù)器
二.實驗過程
1.下載VMware
我是用的VMware WorkStation Pro 16.2.3
VMware官網(wǎng)
下了之后別亂動,先下鏡像
2.下載鏡像
我用的是windows server 2019
不知道是不是官網(wǎng),反正下得挺慢的
3.新建虛擬機(jī)
按照這篇文章來新建虛擬機(jī)
我在安裝過程中出現(xiàn)過全是黑屏,或者藍(lán)屏,或者提示找不到許可證……如果你們沒遇到那就萬事大吉,有遇到的話可以在網(wǎng)上搜一下這些問題怎么解決,實在不行就評論問一下。
4.配置DNS
4.1打開服務(wù)器管理器
4.2開始配置
1.把這篇文章的第一、二步做完
先不要關(guān)閉cmd命令,在cmd命令下ping剛剛設(shè)置的網(wǎng)站名
比如我的網(wǎng)站名叫 www.hsunion.com,你就ping www.hsunion.com
2.創(chuàng)建別名
第四點(diǎn)創(chuàng)建別名記錄
3.這個時候應(yīng)該還是不行,會顯示超時,因為還有一步妹有完成
主界面右下角點(diǎn)它
改成下面的
注意:
ip:使用下面的ip地址中,ip地址要跟dns服務(wù)器一樣,就是剛剛新建主機(jī)的時候設(shè)置的ip地址。下面是我自己設(shè)的ip地址,所以跟前面文章的不一樣,自己注意一下。
默認(rèn)網(wǎng)關(guān):前三個數(shù)都跟ip的前三個數(shù)一樣,最后一個數(shù)是1
子網(wǎng)掩碼:都是255.255.255.0
有來自……的回復(fù)就對了
5.配置web服務(wù)器(http協(xié)議)
5.1下載tomcat
下載到自己的電腦上,不是虛擬機(jī)上
tomcat配置教程
5.2設(shè)置點(diǎn)擊manager app跳轉(zhuǎn)到另一界面
首先打開conf/tomcat-users.xml
5.2.1使用eclipse更改xml文件
如果你有eclipse,且你學(xué)過xml文件,很好!
在文件最后加上:
5.2.2不使用eclipse更改xml文件
不用eclipse打開的方法
妹有eclipse,也妹學(xué)過java,也不會xml,你就用記事本打開
在最后加這個(因為我妹用過這種方法,所以我不確定能不能做成)
下面是我的記事本打開的內(nèi)容
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<tomcat-users xmlns="http://tomcat.apache.org/xml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
version="1.0">
<!--
By default, no user is included in the "manager-gui" role required
to operate the "/manager/html" web application. If you wish to use this app,
you must define such a user - the username and password are arbitrary.
Built-in Tomcat manager roles:
- manager-gui - allows access to the HTML GUI and the status pages
- manager-script - allows access to the HTTP API and the status pages
- manager-jmx - allows access to the JMX proxy and the status pages
- manager-status - allows access to the status pages only
The users below are wrapped in a comment and are therefore ignored. If you
wish to configure one or more of these users for use with the manager web
application, do not forget to remove the <!.. ..> that surrounds them. You
will also need to set the passwords to something appropriate.
-->
<!--
<user username="admin" password="<must-be-changed>" roles="manager-gui"/>
<user username="robot" password="<must-be-changed>" roles="manager-script"/>
-->
<!--
The sample user and role entries below are intended for use with the
examples web application. They are wrapped in a comment and thus are ignored
when reading this file. If you wish to configure these users for use with the
examples web application, do not forget to remove the <!.. ..> that surrounds
them. You will also need to set the passwords to something appropriate.
-->
<!--
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="<must-be-changed>" roles="tomcat"/>
<user username="both" password="<must-be-changed>" roles="tomcat,role1"/>
<user username="role1" password="<must-be-changed>" roles="role1"/>
--><!--comment-->
<role rolename='manager-gui'/><role rolename="admin-gui" /><user
username="xuchi" password="020509" roles="manager-gui,admin-gui" />
</tomcat-users>
這個時候點(diǎn)擊manager app,就會出現(xiàn)以下界面文章來源:http://www.zghlxwxcb.cn/news/detail-511544.html
6.配置FTP
看第一部分看到輸入站點(diǎn)名稱,也就是下圖這里,接下來看第二篇
再從第二篇的這里開始看
ftp后續(xù)設(shè)置:前面已經(jīng)設(shè)置好站點(diǎn)名稱了,在這篇文章里面看身份驗證和授權(quán)信息,驗證方法看我下面的驗證
搭好之后驗證文章來源地址http://www.zghlxwxcb.cn/news/detail-511544.html
到了這里,關(guān)于計網(wǎng)實驗七:應(yīng)用層協(xié)議服務(wù)配置(DNS,HTTP,FTP)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!