Instalando Plone 5.6 no SLES15SP1

zypper in python3-virtualenv python3-setools python3-lxml python3-lxml-devel python3-ldap

mkdir -p /opt/install

cd /opt/install

wget https://launchpad.net/plone/5.2/5.2.1/+download/Plone-5.2.1-UnifiedInstaller-r3.tgz

tar -zxvf Plone-5.2.1-UnifiedInstaller-r3.tgz

cd Plone-5.2.1-UnifiedInstaller-r3

/bin/bash install.sh



Continue with the command line:

install.sh zeocluster \
--target="/opt/plone" \
--with-python=/usr/bin/python3.6 \\n --password="*****..." \\n --clients=2

Capturar.PNG

Capturar.PNG

cd /opt/plone/zeocluster

bin/plonectl start

Capturar.PNG

sudocpd01:/opt/plone/zeocluster # bin/plonectl start
zeoserver: .
daemon process started, pid=15873
client1: .
daemon process started, pid=15880
client2: .
daemon process started, pid=15889

Capturar.PNG

sudocpd01:/opt/plone/zeocluster # ps aux | grep python
root 15871 0.0 0.5 193100 21736 ? Ssl 11:27 0:00 /opt/plone/zeocluster/bin/python3.6 /opt/plone/zeocluster/bin/zeoserver -S /opt/plone/buildout-cache/eggs/ZEO-5.2.1-py3.6.egg/ZEO/zeoctl.xml -C /opt/plone/zeocluster/parts/zeoserver/etc/zeo.conf -t /dev/null /opt/plone/zeocluster/parts/zeoserver/bin/runzeo
root 15873 0.5 0.8 152076 30680 ? S 11:27 0:00 /opt/plone/zeocluster/bin/python3.6 -m ZEO.runzeo -C /opt/plone/zeocluster/parts/zeoserver/etc/zeo.conf
root 15878 0.0 0.4 169172 18588 ? Ssl 11:27 0:00 /opt/plone/zeocluster/bin/python3.6 /opt/plone/zeocluster/parts/client1/bin/interpreter /opt/plone/buildout-cache/eggs/zdaemon-4.3-py3.6.egg/zdaemon/zdrun.py -S /opt/plone/buildout-cache/eggs/plone.recipe.zope2instance-6.5.1-py3.6.egg/plone/recipe/zope2instance/wsgischema.xml -b 10 -d -s /opt/plone/zeocluster/var/client1/zopectlsock -m 0o22 -x 0,2 -z /opt/plone/zeocluster/parts/client1 /opt/plone/zeocluster/bin/python3.6 /opt/plone/zeocluster/parts/client1/bin/interpreter /opt/plone/buildout-cache/eggs/Zope-4.1.3-py3.6.egg/Zope2/Startup/serve.py /opt/plone/zeocluster/parts/client1/etc/wsgi.ini
root 15880 15.6 4.6 730756 175224 ? Sl 11:27 0:12 /opt/plone/zeocluster/bin/python3.6 /opt/plone/zeocluster/parts/client1/bin/interpreter /opt/plone/buildout-cache/eggs/Zope-4.1.3-py3.6.egg/Zope2/Startup/serve.py /opt/plone/zeocluster/parts/client1/etc/wsgi.ini
root 15887 0.0 0.4 169168 18584 ? Ssl 11:28 0:00 /opt/plone/zeocluster/bin/python3.6 /opt/plone/zeocluster/parts/client2/bin/interpreter /opt/plone/buildout-cache/eggs/zdaemon-4.3-py3.6.egg/zdaemon/zdrun.py -S /opt/plone/buildout-cache/eggs/plone.recipe.zope2instance-6.5.1-py3.6.egg/plone/recipe/zope2instance/wsgischema.xml -b 10 -d -s /opt/plone/zeocluster/var/client2/zopectlsock -m 0o22 -x 0,2 -z /opt/plone/zeocluster/parts/client2 /opt/plone/zeocluster/bin/python3.6 /opt/plone/zeocluster/parts/client2/bin/interpreter /opt/plone/buildout-cache/eggs/Zope-4.1.3-py3.6.egg/Zope2/Startup/serve.py /opt/plone/zeocluster/parts/client2/etc/wsgi.ini
root 15889 15.6 4.5 730608 171784 ? Sl 11:28 0:11 /opt/plone/zeocluster/bin/python3.6 /opt/plone/zeocluster/parts/client2/bin/interpreter /opt/plone/buildout-cache/eggs/Zope-4.1.3-py3.6.egg/Zope2/Startup/serve.py /opt/plone/zeocluster/parts/client2/etc/wsgi.ini
root 15909 0.0 0.0 7432 808 pts/0 R+ 11:29 0:00 grep python

NGINX

zypper in nginx
systemctl enable nginx
systemctl start nginx
zypper in memcached libmemcached

VARNISH

cd /opt/install
wget https://download.opensuse.org/repositories/openSUSE:/Backports:/SLE-15-SP1:/Update/standard/x86_64/libvarnishapi2-6.2.1-bp151.4.3.1.x86_64.rpm --no-check-certificate
wget https://download.opensuse.org/repositories/server:/http/SLE_15/x86_64/varnish-6.4.0-3.1.x86_64.rpm --no-check-certificate
zypper in libvarnishapi2-6.2.1-bp151.4.3.1.x86_64.rpm
zypper in varnish-6.4.0-3.1.x86_64.rpm
systemctl enable varnish
systemctl start varnish

/etc/varnish # vim /etc/sysconfig/varnish

## Path: Network/WWW/Varnishd
## Description: start parameters for varnishd.
## Type: string
## Default: "-f /etc/varnish/vcl.conf -T127.0.0.1:6082 -s file,/var/cache/varnish"
## Config: varnishd
#
# start parameters for varnishd.
#
# see man 1 varnishd for more
#
# You might want to keep "/var/cache/varnish" when using the file backend.
#
#VARNISHD_PARAMS="-j unix,user=varnish -f /etc/varnish/vcl.conf -T:6082 -s file,/var/cache/varnish,1M"
VARNISHD_PARAMS="-j unix,user=varnish -f /etc/varnish/vcl.conf -T:6082 -s file,/opt/varnish/cache,3G"

## Path: Network/WWW/Varnishd
## Description: Start parameters for varnishlog
## Type: string
## Default: "-a -w /var/log/varnish.log"
## Config: varnishd
#
# start parameters for varnishlog/varnishncsa
#
# see man 1 varnishlog for more
#
VARNISHLOG_PARAMS="-a -w /var/log/varnish/varnish.log"

Configuração da autenticação AD.

cd /opt/install
wget https://files.pythonhosted.org/packages/c1/51/9471a0377cce68443719f983a04e5608660a2fc088f16a761bccb1c9921c/pas.plugins.ldap-1.8.0.tar.gz
tar -zxvf pas.plugins.ldap-1.8.0.tar.gz
cd pas.plugins.ldap-1.8.0
/opt/plone/zeocluster/bin/python3.6 setup.py install
chown -R plone_buildout:plone_group /opt/plone/zeocluster/
cd /opt/plone/zeocluster/
sudo -u plone_buildout bin/buildout -v
bin/plonectl start

ldap1.PNG

ldap2.PNG

ldap3.PNG

ldap4.PNG

ldap5.PNG