ubuntu安装apache

来源:互联网 发布:网络机顶盒万能遥控器 编辑:程序博客网 时间:2024/05/02 03:11

sudo apt-get install apache2

根目录:/var/www

启动服务

# /etc/init.d/apache2 start
or
$ sudo /etc/init.d/apache2 start


配置文件是 /etc/apache2/apache2.conf


经过搜索,发现在 /etc/apache2/sites-enabled/000-default中,里面有这样的内容:

NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost

DocumentRoot /var/www/
……


0 0