`
- 浏览:
2251241 次
- 性别:
- 来自:
深圳
-
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
相关推荐
Ubuntu 12.04 下安装 Nginx、Python、uWSGI 和 Django 的步骤 在本文中,我们将介绍如何在 Ubuntu 12.04 环境下安装 Nginx、Python、uWSGI 和 Django。这些技术栈组合是非常流行的 Web 应用程序开发环境。 一、...
打包所有依赖项可以确保用户在安装libc6时,不会遇到由于缺少依赖而引发的问题,这简化了安装过程并提高了系统的稳定性。 **Ubuntu 12.04背景** Ubuntu 12.04是一款长期支持(LTS)版本,这意味着它会得到长达五年...
Ubuntu 12.04安装卸载软件 及命令详解QQ2012为例,让你实现在linux系统下运行QQ
在本文中,我们将详细介绍Ubuntu 12.04、14.04、16.04安装Nvidia显卡驱动的步骤和相关知识点。 知识点1:卸载旧版本的Nvidia驱动 在安装新的Nvidia显卡驱动之前,我们需要卸载旧版本的Nvidia驱动。使用以下命令...
### Ubuntu 12.04 安装及配置过程详解 #### 一、准备工作 **1. 下载 Ubuntu 12.04 镜像文件** - **32位与64位的选择:** - 建议大多数用户选择32位版本,除非您的计算机硬件支持64位并且您需要利用更多的RAM资源...
**Ubuntu Server 12.04安装图解** Ubuntu Server 12.04,代号"precise pangolin",是Ubuntu发行版的一个长期支持(LTS)版本,为服务器环境提供了稳定、安全且高效的操作系统。这个版本的生命周期长达五年,确保了...
在Ubuntu 12.04操作系统中安装Java Development Kit (JDK) 是开发Java应用程序的基础步骤。以下是详细的安装过程: 1. **下载JDK**: 首先,访问Oracle官方网站...
总体来说,win7下使用U盘安装ubuntu12.04双系统的过程涉及到了磁盘空间的预留、U盘启动盘的制作、独立显卡问题的解决、自定义分区和系统引导设置,以及最后系统的维护与卸载。这个过程需要用户对计算机系统有一定的...
这包括设置无线网络、有线连接,解决打印机和扫描仪的兼容问题,以及通过Ubuntu Software Center安装、卸载和更新软件。 此外,手册还可能深入讲解Ubuntu 12.04中的软件应用,如 LibreOffice 办公套件的使用,包括...
Ubuntu 12.04下如何安装MySQL ,我按照这文档,已经成功在ubuntu 12.04安装成功mysql!
2. **修复安装**(解决依赖关系问题): ```bash apt-get -f install softname1 softname2 ... ``` 3. **重新安装**: ```bash apt-get --reinstall install softname1 softname2 ... ``` 另一种安装方式是...
VMWare8.0安装Ubuntu12.04教程,傻瓜式安装教程,很详细
用 VMware 安装 Ubuntu 12.04详细过程图解
- 软件管理:使用Ubuntu Software Center安装、更新和卸载软件。 3. **系统设置与优化** - 系统设置:日期与时间、电源管理、显示器分辨率等。 - 配置网络:有线、无线连接,设置代理,共享互联网。 - 硬件驱动...
1. **Ubuntu Software Center**: 用于查找、安装、卸载软件,类似于Windows的“应用商店”。 2. **Synaptic Package Manager**: 高级用户可以使用命令行工具进行软件包管理。 3. **Apt-get**: 命令行工具,用于安装...
安装完成后,用户将被带到Unity桌面环境,这是Ubuntu特有的用户界面,提供了一种高效的多任务工作方式。 Unity桌面的左侧是启动器(Launcher),包含了常用应用程序的快捷方式,如浏览器、文件管理器、终端等。顶部...
"Android手机上安装并运行Ubuntu12.04.pdf" 本文档主要讲述了如何在 Android 手机上安装并运行 Ubuntu 12.04 操作系统。作者 dawndiy 在 2013 年 5 月 8 日发布了这篇文章,旨在指导用户如何在 Android 手机上安装 ...
原来的ssh扫描报太多漏洞了,整理了下一键安装的脚本直接升级到最新的;...#update Ubuntu12.04 : OpenSSH_7.9p1, OpenSSL 1.1.1b 26 Feb 2019 #old : OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012