系统
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
[root@localhost ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:0c:29:e3:27:70 brd ff:ff:ff:ff:ff:ff
inet 192.168.56.16/24 brd 192.168.56.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fee3:2770/64 scope link
valid_lft forever preferred_lft forever
[root@localhost ~]#
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
2.安装依赖包
yum -y install gcc make readline-devel patch openssl openssl-devel python-devel libssl
libz libjpeg readline libxml2 libxslt build-essential g++ gnu make tar bzip2
libjpeg-devel zlib-devel libxml2-devel libjpeg-devel libiconv-devel libxslt-devel
2.安装plone
[root@localhost software]# pwd
/home/software
[root@localhost software]# ll
total 38196
-rw-r--r-- 1 root root 39109031 Apr 20 03:07 Plone-4.3.12-UnifiedInstaller.tgz
[root@localhost software]#
[root@localhost software]# tar xf Plone-4.3.12-UnifiedInstaller.tgz
[root@localhost software]# mv Plone-4.3.12-UnifiedInstaller Plone
[root@localhost software]# cd Plone
[root@localhost Plone]# ./install.sh standalone
此处时间有点长
4.0版本 默认是安装在/usr/local/下
5.0版本 默认是安装在/opt下
成功的标志
[root@localhost Plone]# ./install.sh standalone
Testing /usr/bin/python2.7 for Zope/Plone requirements....
/usr/bin/python2.7 looks OK. We'll try to use it.
Root install method chosen. Will install for use by users:
ZEO & Client Daemons: plone_daemon
Code Resources & buildout: plone_buildout
Detailed installation log being written to /home/software/Plone/install.log
Installing Plone 4.3.12 at /usr/local/Plone
Using useradd and groupadd to create users and groups.
'plone_group' already exists; no need to create it.
User 'plone_daemon' already exists. No need to create it.
Adding user plone_daemon to group plone_group.
User 'plone_buildout' already exists. No need to create it.
Adding user plone_buildout to group plone_group.
Creating python virtual environment, no site packages, no setuptools.
New python executable in /usr/local/Plone/Python-2.7/bin/python2.7
Also creating executable in /usr/local/Plone/Python-2.7/bin/python
Installing pip, wheel...done.
Skipping libjpeg build
Unpacking buildout cache to /usr/local/Plone/buildout-cache
Setting /usr/local/Plone ownership to plone_buildout:plone_group
Copying buildout skeleton
Fixing up bin/buildout
Building Zope/Plone; this takes a while...
Buildout completed
#####################################################################
###################### Installation Complete ######################
Plone successfully installed at /usr/local/Plone
See /usr/local/Plone/zinstance/README.html
for startup instructions
Use the account information below to log into the Zope Management Interface
The account has full 'Manager' privileges.
Username: admin
Password: VPfcxR9BsiWm
This account is created when the object database is initialized. If you change
the password later (which you should!), you'll need to use the new password.
Use this account only to create Plone sites and initial users. Do not use it
for routine login or maintenance.
- If you need help, ask the mailing lists or #plone on irc.freenode.net.
- The live support channel also exists at http://plone.org/chat
- You can read/post to the lists via http://plone.org/forums
- Submit feedback and report errors at http://dev.plone.org/plone
(For install problems, specify component "Installer (Unified)")
[root@localhost Plone]#
3安装组件pillow
修改ali 的py源
在~/.pip/pip.conf文件中添加或修改
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
安装pip命令
[root@localhost software]# python get-pip.py
Collecting pip
Downloading http://mirrors.aliyun.com/pypi/packages/b6/ac/7015eb97dc749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3/pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 1.2MB/s
Collecting setuptools
Downloading http://mirrors.aliyun.com/pypi/packages/ff/96/5e917753dbdd7b28217c1068d9e3fbe54a7ef0ff3a6411d0cc81faf37070/setuptools-35.0.0-py2.py3-none-any.whl (390kB)
100% |████████████████████████████████| 399kB 566kB/s
Collecting wheel
Downloading http://mirrors.aliyun.com/pypi/packages/8a/e9/8468cd68b582b06ef554be0b96b59f59779627131aad48f8a5bce4b13450/wheel-0.29.0-py2.py3-none-any.whl (66kB)
100% |████████████████████████████████| 71kB 1.6MB/s
Collecting six>=1.6.0 (from setuptools)
Downloading http://mirrors.aliyun.com/pypi/packages/c8/0a/b6723e1bc4c516cb687841499455a8505b44607ab535be01091c0f24f079/six-1.10.0-py2.py3-none-any.whl
Collecting appdirs>=1.4.0 (from setuptools)
Downloading http://mirrors.aliyun.com/pypi/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl
Collecting packaging>=16.8 (from setuptools)
Downloading http://mirrors.aliyun.com/pypi/packages/87/1b/c39b7c65b5612812b83d6cab7ef2885eac9f6beb0b7b8a7071a186aea3b1/packaging-16.8-py2.py3-none-any.whl
Collecting pyparsing (from packaging>=16.8->setuptools)
Downloading http://mirrors.aliyun.com/pypi/packages/6a/8a/718fd7d3458f9fab8e67186b00abdd345b639976bc7fb3ae722e1b026a50/pyparsing-2.2.0-py2.py3-none-any.whl (56kB)
100% |████████████████████████████████| 61kB 1.3MB/s
Installing collected packages: pip, six, appdirs, pyparsing, packaging, setuptools, wheel
Successfully installed appdirs-1.4.3 packaging-16.8 pip-9.0.1 pyparsing-2.2.0 setuptools-35.0.0 six-1.10.0 wheel-0.29.0
[root@localhost software]#
[root@localhost software]# pip install Pillow
Collecting Pillow
Downloading http://mirrors.aliyun.com/pypi/packages/d3/7c/2931fa532893bfd8580584c85d54f60e28726212e8af87d887f8b4a00e5d/Pillow-4.1.0-cp27-cp27mu-manylinux1_x86_64.whl (5.7MB)
100% |████████████████████████████████| 5.7MB 1.1MB/s
Collecting olefile (from Pillow)
Downloading http://mirrors.aliyun.com/pypi/packages/35/17/c15d41d5a8f8b98cc3df25eb00c5cee76193114c78e5674df6ef4ac92647/olefile-0.44.zip (74kB)
100% |████████████████████████████████| 81kB 936kB/s
Building wheels for collected packages: olefile
Running setup.py bdist_wheel for olefile ... done
Stored in directory: /root/.cache/pip/wheels/08/c9/45/7f7ae2cf8e7f278be9f6d3af7fe35b3c03505ece05453db9e1
Successfully built olefile
Installing collected packages: olefile, Pillow
Successfully installed Pillow-4.1.0 olefile-0.44
[root@localhost software]#
4.安装python-ldap
yum install yum-utils -y
yum-builddep -y python-ldap -y
python -m pip install -U python-ldap
cd /home/software
total 39808
-rw-r--r-- 1 root root 1524722 Apr 20 03:44 get-pip.py
drwxr-xr-x 9 root root 4096 Apr 20 03:40 Plone
-rw-r--r-- 1 root root 39109031 Apr 20 03:07 Plone-4.3.12-UnifiedInstaller.tgz
drwxr-xr-x 10 500 users 4096 Apr 20 04:14 python-ldap-2.3.10
-rw-r--r-- 1 root root 112840 Apr 20 04:13 python-ldap-2.3.10.tar.gz
cd python-ldap-2.3.10
python setup.py install
5.下载组件
vim /opt/plone/zinstance/buildout.cfg 5.0版本呢
vim /usr/local/Plone/zinstance/buildout.cfg 4.0版本 需要开启美国的×××下载
eggs =
Plone
Pillow
Products.PluginRegistry
Products.PluggableAuthService
Products.LDAPUserFolder
Products.SimpleUserFolder
Products.LDAPMultiPlugins
Products.PloneLDAP
[root@localhost zinstance]# pwd
/usr/local/Plone/zinstance
[root@localhost zinstance]# sudo -u plone_buildout bin/buildout