歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu下Plone的升級方法

Ubuntu下Plone的升級方法

日期:2017/2/28 15:58:34   编辑:Linux教程

Ubuntu版本11.04,64bit AMD平台,從Plone4.0.7升級到4.1.3
1、/usr/local/Plone/zinstance/bin/plonectl stop;
2、先備份/usr/local/Plone文件夾,如拷貝成文件夾Plone_backup_4.0.7;
3、將/usr/local/Plone用mv命令改名成Plone.tmp;
4、從Plone.org下載linux下的安裝包;
5、解壓縮,然後以root身份安裝Plone 4.1.3,standalone模式。注意要指定密碼與原站點密碼一致。典型的安裝命令的形式如: ./install.sh standalone --password=your password here;
6、安裝成功後,運行plonectl start,打開浏覽器察看http://localhost:8080看Plone運行是否正常;
7、編輯buildout.cfg,將監聽端口由8080改成80;
8、cd /usr/local/Plone/zinstance,執行/bin/buildout命令重新配置Plone;
9、/usr/local/Plone/zinstance/bin/plonectl restart;
10、打開浏覽器察看http://localhost,看端口更改的配置是否成功;
==============================================
11、停止服務,運行/usr/local/Plone/zinstance/bin/plonectl stop;
12、將/usr/local/Plone/zinstance/var下面的filestorage和blobstorage兩個文件夾移動到### Orig file backup ###文件夾中作為備份;
13、將第3步中改名的Plone.tmp文件夾中zinstance/var下的filestorage和blobstorage兩個文件夾移動到/usr/local/Plone/zinstance/var文件夾中;
14、/usr/local/Plone/zinstance/bin/plonectl start;
15、打開浏覽器,http://localhost,Plone會提示你站點配置需要升級;
16、按浏覽器中Plone的要求,升級站點,完成!

還有,關於升級文檔,在/usr/local/Plone/Plone-docs文件夾下有一個名為“UPGRADE.txt”的文件,其內容如下:

How to upgrade a Plone site to a newer version
==============================================

This is a short version, more information can be found at
http://plone.org/upgrade.

1. Stop Plone / Zope

2. Always back up your Plone site. You should back up:

* Your Data.fs which contains your site data
* Any file system files you have modified
* Your blob storage if you are already using blobs

3. Install the new version of Plone, this depends upon your installation.
The latest version of Plone is always available from
http://plone.org/download and your install will depend upon your particular
setup.

4. Restart Plone / Zope

5. Open up the Zope root folder in a browser. It will show you an overview of
all installed Plone sites and tell you which ones need to be upgraded.
Follow the onscreen instructions.

Running the upgrade may:

* Change values you have set in the ZODB, for example actions and properties

* Re-catalog your portal_catalog, this may be time-consuming

* Reapply security to objects, this may be time-consuming

If you have issues please search for an update of your Python, Zope, Plone and
third-party add-ons and read http://plone.org/upgrade.
If you still have issues please the use the bug tracker at
http://dev.plone.org/plone and include: your Python version, the platform, the
Plone versions you are upgrading to and from and most
important: the full traceback and upgrade log. Try to provide as much
information as possible.

Copyright © Linux教程網 All Rights Reserved