安装:sudo apt-get install apache2再启动:sudo service apache2 restart
查看版本号:apache2 -v
测试http/ftp: wget ip:port
探测端口是否开放: telnet ip port
修改监听端口:
a)/etc/apache2/ports.conf
Listen port
b) /etc/apache2/apache2.conf
<Directory /var/www/>Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>