`
- 浏览:
2108653 次
- 性别:
- 来自:
深圳
-
Ubuntu12.04卸载apache2后再安装出现的问题解决
/etc/init.d/apache2: 51: .: Can't open /etc/apache2/envvarsroot@msm:/etc#
sudo dpkg --get-selections | grep apacheapache2 installapache2-mpm-worker installapache2-utils installapache2.2-bin installapache2.2-common installroot@msm:/etc#
sudo dpkg --get-selections | grep apacheapache2 installapache2-mpm-worker installapache2-utils installapache2.2-bin installapache2.2-common installroot@msm:/etc#
sudo apt-get remove --purge apache2 apache2-mpm-worker apache2.2-bin apache2.2-common apache2-utilsReading package lists... DoneBuilding dependency tree Reading state information... DoneThe following extra packages will be installed: lynx-curThe following packages will be REMOVED: apache2* apache2-mpm-worker* apache2-utils* apache2.2-bin* apache2.2-common* gitweb*The following NEW packages will be installed: lynx-cur0 upgraded, 1 newly installed, 6 to remove and 308 not upgraded.Need to get 1,060 kB of archives.After this operation, 2,950 kB disk space will be freed.Do you want to continue [Y/n]? yGet:1 http://mirrors.163.com/ubuntu/ precise/main lynx-cur amd64 2.8.8dev.9-2 [1,060 kB]Fetched 1,060 kB in 0s (1,785 kB/s)(Reading database ... 155425 files and directories currently installed.)Removing apache2 ...Selecting previously unselected package lynx-cur.(Reading database ... 155422 files and directories currently installed.)Unpacking lynx-cur (from .../lynx-cur_2.8.8dev.9-2_amd64.deb) ...Processing triggers for doc-base ...Processing 1 added doc-base file...Processing triggers for man-db ...Setting up lynx-cur (2.8.8dev.9-2) ...update-alternatives: using /usr/bin/lynx to provide /usr/bin/www-browser (www-browser) in auto mode.(Reading database ... 155491 files and directories currently installed.)Removing gitweb ...Purging configuration files for gitweb ...Removing apache2-mpm-worker .../etc/init.d/apache2: 51: .: Can't open /etc/apache2/envvarsinvoke-rc.d: initscript apache2, action "stop" failed.Removing apache2.2-common ...Purging configuration files for apache2.2-common ...Removing apache2-utils ...Removing apache2.2-bin ...Processing triggers for man-db ...Processing triggers for ureadahead ...ureadahead will be reprofiled on next rebootProcessing triggers for ufw ...root@msm:/etc#
sudo apt-get install apache2Reading package lists... DoneBuilding dependency tree Reading state information... DoneThe following extra packages will be installed: apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-commonSuggested packages: apache2-doc apache2-suexec apache2-suexec-customThe following NEW packages will be installed: apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common0 upgraded, 5 newly installed, 0 to remove and 308 not upgraded.Need to get 0 B/1,659 kB of archives.After this operation, 4,935 kB of additional disk space will be used.Do you want to continue [Y/n]? ySelecting previously unselected package apache2.2-bin.(Reading database ... 154933 files and directories currently installed.)Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.22-1ubuntu1.1_amd64.deb) ...Selecting previously unselected package apache2-utils.Unpacking apache2-utils (from .../apache2-utils_2.2.22-1ubuntu1.1_amd64.deb) ...Selecting previously unselected package apache2.2-common.Unpacking apache2.2-common (from .../apache2.2-common_2.2.22-1ubuntu1.1_amd64.deb) ...Selecting previously unselected package apache2-mpm-worker.Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.22-1ubuntu1.1_amd64.deb) ...Selecting previously unselected package apache2.Unpacking apache2 (from .../apache2_2.2.22-1ubuntu1.1_amd64.deb) ...Processing triggers for man-db ...Processing triggers for ufw ...Processing triggers for ureadahead ...Setting up apache2.2-bin (2.2.22-1ubuntu1.1) ...Setting up apache2-utils (2.2.22-1ubuntu1.1) ...Setting up apache2.2-common (2.2.22-1ubuntu1.1) ...Enabling site default.Enabling module alias.Enabling module autoindex.Enabling module dir.Enabling module env.Enabling module mime.Enabling module negotiation.Enabling module setenvif.Enabling module status.Enabling module auth_basic.Enabling module deflate.Enabling module authz_default.Enabling module authz_user.Enabling module authz_groupfile.Enabling module authn_file.Enabling module authz_host.Enabling module reqtimeout.Setting up apache2-mpm-worker (2.2.22-1ubuntu1.1) ...* Starting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [ OK ]Setting up apache2 (2.2.22-1ubuntu1.1) ...root@msm:/etc# ls /etc/apapache2/ apm/ apparmor.d/ apt/ apg.conf apparmor/ apport/ root@msm:/etc# ls /etc/apapache2/ apm/ apparmor.d/ apt/ apg.conf apparmor/ apport/ root@msm:/etc# ls /etc/apache2/apache2.conf envvars magic mods-enabled sites-availableconf.d httpd.conf mods-available ports.conf sites-enabledroot@msm:/etc# service apache2 restart* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName... waiting .apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [ OK ]root@msm:/etc#
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
Ubuntu12.04 nginx python uwsgi Django安装步骤
Ubuntu 12.04安装卸载软件 及命令详解QQ2012为例,让你实现在linux系统下运行QQ
Ubuntu12.04下的JDK安装,首先到官网上下载jdk-7u51-linux-x64.tar.gz。
Ubuntu12.04下为火狐浏览器安装flash插件.docx
Ubuntu 12.04下如何安装MySQL ,我按照这文档,已经成功在ubuntu 12.04安装成功mysql!
Ubuntu Server 12.04安装图解,附件中为安装过程中全部截图,可按照图中所选择部分安装
ubuntu12.04安装及配置过程详解
VMWare8.0安装Ubuntu12.04教程,傻瓜式安装教程,很详细
用 VMware 安装 Ubuntu 12.04详细过程图解
ubuntu12.04安装mysql---黑佳伦.pdf
zabbix2.03在ubuntu12.04上的安装(最新)
libc6 for ubuntu 12.04 所有依赖的库都打包 .
Ubuntu 12.04 菜鸟完全使用教程让你用最快的速度熟悉使用Ubuntu 12.04!
Ubuntu12.04下Ns2.35安装步骤,完美安装,可实现相关协议的开发和研究。
虚拟机(VMware10.0)上安装ubuntu12.04操作系统.
使用VirtualBox在Windows系统下安装与配置Ubuntu 12.04 LTS虚拟机
Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+...
在Ubuntu 12.04LTS 下搭建Apache web服务器-亲测,解决ADSL关于80端口被封等问题,亲自测试通过。
win7下U盘安装ubuntu12.04双系统教程 亲测实现