ubuntu
apt-get install apache2
/etc/init.d/apache2 restart
centos
yum install httpd
service httpd start
服务器默认的访问路径在/var/www/html
目录,新建test文件
客户端测试 wget http://xx.xx.xx.xx/test
ubuntu
apt-get install apache2
/etc/init.d/apache2 restart
centos
yum install httpd
service httpd start
服务器默认的访问路径在/var/www/html
目录,新建test文件
客户端测试 wget http://xx.xx.xx.xx/test