本文主要是介绍ubuntu下的apache重装 [Web服务器],希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
http://www.vpsa.net/?post=40
用了3年的linux,还是喜欢centos的风格,但没办法公司服务器一开始全部是ubuntu,到现在还一直用着ubuntu,今天把/etc/apache2目录删除了准备重装下apache,搞了半天装不上去,google了下还是没成功,最后还是凭着自己对centos系统的感觉装上去的,分享下经验,免得以后谁碰到走弯路。
centos 有个命令是 yum list |grep httpd (查找出关于apache的安装包)
以前一直以为ubuntu没,后台仔细看了下还是有这命令就是 aptitude search apache2
root@Nginx:~# aptitude search apache2
i apache2 - Apache HTTP Server metapackage
v apache2-dev -
p apache2-doc - Apache HTTP Server documentation
v apache2-mpm -
p apache2-mpm-event - Apache HTTP Server - event driven model
p apache2-mpm-itk - multiuser MPM for Apache 2.2
p apache2-mpm-prefork - Apache HTTP Server - traditional non-threa
i A apache2-mpm-worker - Apache HTTP Server - high speed threaded m
p apache2-prefork-dev - Apache development headers - non-threaded
p apache2-src - Apache source code
p apache2-suexec - Standard suexec program for Apache 2 mod_s
p apache2-suexec-custom - Configurable suexec program for Apache 2 m
i apache2-threaded-dev - Apache development headers - threaded MPM
i A apache2-utils - utility programs for webservers
i apache2.2-common - Apache HTTP Server common files
p gforge-web-apache2 - collaborative development tool - web part
p libapache2-authcassimple-perl - Apache2 module to authentificate trough a
看这上面的,所以重装应该先:
aptitude purge apache2 apache2.2-common
然后:
aptitude install apache2 apache2.2-common
这样感觉deb系统aptitude命令比apt-get命令好用。
这篇关于ubuntu下的apache重装 [Web服务器]的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!