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

在Ubuntu搭建网站环境问题记录

时间:2016-06-08 01:41:33      阅读:337      评论:0      收藏:0      [点我收藏+]

标签:

1. 安装apache2 遇到如下问题

root@louis:~# apt-get install apache2
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package apache2

解决方案:

在安装apache2之前,先运行命令:

sudo apt-get update

 

原因是:

before trying to install? The apache2 metapackage is available normally from repositories as is ethtool so there‘s no need to compile from source. The preferred way to install any software is by using the package manager(s) available to you. Compiling from source should only be last resort or whenever you have special needs from a particular package.

在Ubuntu搭建网站环境问题记录

标签:

原文地址:http://www.cnblogs.com/haoshine/p/5568809.html

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