1.下载安装tomcat 2.在安装的tomcat根目录下即webapps/ROOT下直接存放需要访问的文件aaa.txt 3. 启动tomcat后在浏览器地址栏输入http:ip/端口号:aaa.txt