开启 / 关闭 / 重启 Apache 2
/etc/init.d/apache2 start / stop / restart
Linux下Apache 配置文件位置
/etc/apache2
- 修改端口
/etc/apache2/ports.conf // 端口配置文件
/etc/apache2/sites-available/000-default.conf // 修改第一行的端口号
-修改根目录
/etc/apache2/sites-available/000-default.conf // 这个文件还可以修改根目录
网友评论