[转] Linux下安装apache
来源:百度文库
1.下载安装
直接在终端输入命令:sudo apt-get install apache2
2.启动 apache
终端输入命令:sudo /etc/init.d/apache2,回车后会看到启动成功的信息,如下:
Usage: /etc/init.d/apache2 {start|stop|restart|reload|force-reload|start-
htcacheclean|stop-htcacheclean|status}
3.测试 apache
终端输入:/etc/init.d/apache2 start。启动apache。
在浏览器地址栏输入:http://localhost(或者 http://127.0.0.1) 会看到 apache 已经
运行的信息。

浙公网安备 33010602011771号