`
hongtoushizi
  • 浏览: 381521 次
  • 性别: Icon_minigender_1
  • 来自: 天津
社区版块
存档分类
最新评论

ubuntu 12.04升级到14.0

阅读更多

This document will guide you through upgrading an Ubuntu 12.04 (Precise) server to an Ubuntu 14.04 (Trusty) server.

We highly recommend that you perform all of these steps on a test system before making changes to your production server -- that way, you can minimize downtime by knowing what to expect.

You should plan for some downtime -- there are big differences between the two distributions, and things don't always go as smoothly as we would hope.

Note that Ubuntu recommends waiting for the first dot release before performing an upgrade:

"Upgrades between LTS releases are not enabled by default until the first point release, 14.04.1, scheduled for July. It is recommended that most LTS users wait until then before upgrading to 14.04."

You can see the full release notes here (we'd recommend reading these before performing an upgrade):

https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes

Also, Ubuntu 14.04 comes with PHP 5.5.9. Verify that your PHP applications support that PHP version.

For those wishing to upgrade, the following steps will guide you through the process --

Upgrade Guide

Backups

Make sure you have full backups of everything on your server that is important to you. At the very least, you should generate full backups of all your Virtual Servers. You may also want to make a backup of everything in /etc.

Package Updates

Make sure your system is fully up to date by running these commands:

 

sudo apt-get update
sudo apt-get upgrade

 

Reset Dependency Flags

These packages are already installed, but the following command will tell apt not include them anytime "apt-get autoremove" is run:

apt-get install bind9 spamassassin spamc procmail libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd webmin usermin webmin-virtual-server libcrypt-ssleay-perl webmin-virtual-server-theme webmin-virtualmin-dav webmin-virtualmin-svn webmin-virtualmin-awstats webmin-virtualmin-mailman webmin-virtualmin-htpasswd clamav-base clamav-daemon clamav clamav-data clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin usermin-virtual-server-theme procmail-wrapper php-pear php5 php5-cgi webmin-security-updates

Update Manager

Make sure you have the update manager core by running this command:

sudo apt-get install update-manager-core

Begin Upgrade

Run the following command to begin the upgrade process. Ubuntu suggests running this from the console, though it should also work from SSH:

do-release-upgrade -d

And then follow the on-screen instructions.

In general, if you are prompted about whether to replace a config file with a new one, or keep your existing one -- we would suggest keeping your existing config.

Coffee

Now is an excellent time to go get some coffee or another beverage of choice, while the packages are downloaded and installed :-)

Reboot

When the upgrade completes, it will prompt you to reboot your system. Perform the reboot, and when your system comes back online, there's just a few more things to change.

Change apt config

Edit /etc/apt/sources.list, and uncomment the Virtualmin repositories. Then change any references of "precise" in those repositories to "trusty".

Run this command, and make sure the new apt config works properly:

apt-get update

Apache Config

There were some significant changes made to Apache. You'll need to make the following updates to/etc/apache2/apache2.conf:

Comment out the following lines that appear in the apache2.conf:

 

Include httpd.conf
Include conf.d
LockFile ${APACHE_LOCK_DIR}/accept.lock

 

Re-enable Apache modules:

 

a2enmod suexec
a2enmod actions

 

Now enable some Apache modules:

 

a2enmod suexec
a2enmod rewrite

 

Then restart Apache:

service apache2 restart

Verify DNS Config

Edit /etc/resolv.conf, and verify that the nameserver line is configured to use 127.0.0.1 as a nameserver.

Test

That's it for configuring your updated system. Now it's time to test your services and websites!

 

转载:https://www.virtualmin.com/documentation/system/os/ubuntu-precise-to-trusty

分享到:
评论

相关推荐

    ubuntu12.04 SSH升级到OpenSSH_7.9p1, OpenSSL 1.1.1b

    原来的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

    libc6 for ubuntu12.04

    标题“libc6 for ubuntu12.04”涉及的是Ubuntu 12.04操作系统中的一个关键系统库——libc6。这个标题表明这是一个针对该特定版本Ubuntu的libc6软件包,它是Linux系统中核心的C语言运行时库。 **libc6详解** libc6...

    ubuntu 12.04 使用手册1—4

    《Ubuntu 12.04 使用手册1—4》是一套专为Ubuntu 12.04 LTS(长期支持版)用户编写的详尽指南,旨在帮助初学者和进阶用户掌握这一开源操作系统的基本操作与高级技巧。Ubuntu 12.04,代号“Precise Pangolin”,是...

    Ubuntu12.04 nginx python uwsgi Django安装步骤

    Ubuntu 12.04 下安装 Nginx、Python、uWSGI 和 Django 的步骤 在本文中,我们将介绍如何在 Ubuntu 12.04 环境下安装 Nginx、Python、uWSGI 和 Django。这些技术栈组合是非常流行的 Web 应用程序开发环境。 一、...

    Ubuntu12.04菜鸟使用手册合集

    【Ubuntu12.04菜鸟使用手册合集】是一份专为初学者设计的资源,旨在帮助用户熟悉Ubuntu 12.04操作系统的基本操作和功能。Ubuntu是基于Debian的开源Linux发行版,以其易用性和稳定性而受到全球用户的喜爱。这份合集...

    Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程

    Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+Ubuntu标准教程Ubuntu12.04菜鸟使用手册合集+...

    学习ubuntu12.04入门指南

    《学习Ubuntu 12.04入门指南》是一份针对初学者的详尽教程,旨在帮助用户熟悉并掌握Ubuntu 12.04 LTS(长期支持版)操作系统的基础操作和特性。Ubuntu是基于Linux内核的开源操作系统,以其用户友好、易用性和强大的...

    Ubuntu 12.04 菜鸟使用手册(全)

    Ubuntu 12.04 是一个基于Debian的开源操作系统,以其用户友好性和稳定性而受到广大用户的喜爱。这个版本,也被称作Precise Pangolin(精确的穿山甲),在2012年发布,提供长达五年的长期支持(LTS),直至2017年。...

    ubuntu12.04 升级内核实战.pdf

    【标题】: "Ubuntu 12.04 升级内核实战" 【描述】: 本教程将详细讲解如何在Ubuntu 12.04系统中升级内核至Linux 3.3.4版本。虽然升级内核可能对普通用户意义不大,但对于需要最新驱动和特定功能的用户或开发者来说,...

    ubuntu12.04服务器入门指南

    《Ubuntu 12.04服务器入门指南》是一份针对Ubuntu 12.04操作系统服务器版本的使用指导文档。这份指南详细介绍了如何在Ubuntu 12.04系统上安装和配置各种服务器应用,从而满足用户特定的需求。它是通过一系列具体任务...

    用 VMware 安装 Ubuntu 12.04详细过程图解

    用 VMware 安装 Ubuntu 12.04详细过程图解

    ubuntu12.04常用命令

    ### Ubuntu 12.04 常用命令解析 #### 文件内容查看命令 在Linux环境中,特别是Ubuntu 12.04系统中,经常需要查看文件内容。本篇文章将重点介绍如何使用`head`、`tail`以及`sed`等命令来查看文件的部分内容。 #####...

    Ubuntu 12.04 菜鸟完全使用教程

    ### Ubuntu 12.04 菜鸟完全使用教程知识点 #### 初识Ubuntu 12.04 Ubuntu 12.04(Precise Pangolin)是Ubuntu发布史上较为经典的一个版本,于2012年4月发布,拥有长期支持(LTS)特性,直到2017年4月停止官方支持...

    ubuntu12.04安装及配置过程详解

    ### Ubuntu 12.04 安装及配置过程详解 #### 一、准备工作 **1. 下载 Ubuntu 12.04 镜像文件** - **32位与64位的选择:** - 建议大多数用户选择32位版本,除非您的计算机硬件支持64位并且您需要利用更多的RAM资源...

    Ubuntu 12.04下如何安装MySQ

    Ubuntu 12.04下如何安装MySQL ,我按照这文档,已经成功在ubuntu 12.04安装成功mysql!

    ubuntu12.04apt-get源

    Ubuntu12.04的apt-get搜狐源,直接下载至/etc/apt/下即可,执行apt-get update

    ubuntu12.04 vim 配置

    最全,最好用 自己试试啊ubuntu12.04 vim 配置

    Ubuntu12.04优秀软件推荐

    ### Ubuntu 12.04 LTS (Precise Pangolin) 特点与优秀软件推荐 #### Ubuntu 12.04 LTS 版本亮点 **发布背景与意义** Ubuntu 12.04 LTS(长期支持版本)是在2012年4月26日发布的,作为Ubuntu的第四个长期支持版本,...

    ubuntu12.04共享虚拟机上网

    ubuntu12.04 server版本,虚拟机共享宿主机的无线网上网,亲测,有图。

Global site tag (gtag.js) - Google Analytics