首页 > Web开发 > 详细

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

时间:2016-06-08 01:41:25      阅读:279      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!