一、安装方法
    yum install httpd
二、启动http服务器 
    service httpd start 
三、文件放在http服务器的目录。 
    /var/www/html/
可以在html目录下建一个目录,比如test。
例子:

[root@localhost html]# pwd
/var/www/html
[root@localhost html]# ls
test
[root@localhost html]# cd test
[root@localhost test]# ls
2.txt  a.out  test.c  xpsp2.rar
[root@localhost test]# 
 

四、访问方式:
1、直接使用浏览器去访问,如例子,http://10.8.1.86/test/ 就可以了。  
2、可以采用脚本的方式去访问,通常用来下载文件或者做网络稳定性测试或功能测试。 
 

相关文章:

  • 2021-11-05
  • 2022-02-19
  • 2021-08-02
  • 2021-11-01
  • 2022-02-19
  • 2021-09-09
  • 2021-12-25
猜你喜欢
  • 2022-12-23
  • 2021-06-11
  • 2021-07-31
  • 2022-12-23
相关资源
相似解决方案