码迷,mamicode.com
首页 > Web开发 > 详细

Ubuntu下配置Apache

时间:2015-04-09 23:25:39      阅读:225      评论:0      收藏:0      [点我收藏+]

标签:

在Windows下自己下载应用过Apache,在Linux下也用到了服务器,就选择了Apache。Apache的安装在Ubuntu下异常简单。

1. 上网下载自动包安装

sudo apt-get install apache2

2. 访问网址尝试安装是否成功

www.127.0.0.1 or http://localhost

成功的话将会出现Apache的欢迎页面

3. 启动Apache

/etc/init.d/apache2 start 

4. 重启Apache

/etc/init.d/apache2 restart

5. 停止Apache

/etc/init.d/apache2 stop

好了,服务器搭好了接下来就可以跑程序了~

Ubuntu下配置Apache

标签:

原文地址:http://www.cnblogs.com/chenguanfu/p/4412340.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!