Apache

https://github.com/apache/httpd

http://httpd.apache.org/

ubuntu/debian:

1
sudo aptitude install apache2

redhat/centos/fedora:

1
$ sudo yum install httpd2

启动服务器:

1
service apache2 start

启动浏览器查看:

1
http://localhost:80

apache命令

a2ensite

1
$ sudo a2ensite <site>

a2dissite

1
$ sudo a2dissite <site>

a2enmod

1
$ sudo a2enmod <mod>

a2dismod

1
$ sudo a2dismod <mod>