Thinking projects

 

1. How to clear products from Plone site? before delate the eggs from Belgian chocolatebuidlout.cfg, wht else need to do in site setup and ZIM?

2. How to install zeo

3. How to contral a zope instance run and stop? like chatservice

4. Where has the plomino desing could be imported or down load? we could use it to manage the products and issue report like invoice, packing list, purchase order, sales order; check the products sales amount, to which customer....

5. How to set the blog portlet that it could show the newest blogs?

6. How to uninstall the collective.plonetruegallery 

2. How to install zeo (Webfaction.com platform)

If you want to run a zeo server and two zeo clients, here are the steps:

1. In our control panel, create three separate 'custom app listening on port'
applications and make a note of the port number assigned to each application.
For example, we will name the apps "zeo", "client1", and "client2".

2. SSH into your server and run the following commands (note that the
"install.sh" command will take a long time to run):


mkdir ~/tmp
export TMPDIR=~/tmp
cd ~/webapps/zeo
wget https://launchpad.net/plone/4.1/4.1.4/+download/Plone-4.1.4-UnifiedInstaller.tgz
tar zxf Plone-4.1.4-UnifiedInstaller.tgz
cd Plone-4.1.4-UnifiedInstaller
./install.sh --with-python=/usr/local/bin/python2.6 --target=$HOME/webapps/zeo zeo
cd ../zeocluster


3. Edit buildout.cfg to make the following changes:

- In the "zeo-address" line, change "8100" to the port assigned to your
"zeo" app.

- In the "http-address" line, change "8080" to the port assigned to your
"client1" app.

- In the "client2-address" line, change "8100" to the port assigned to your
"client2" app.

4. Regenerate your buildout by running "./bin/buildout" in your zeocluster
directory.

5. Start the zeo cluster by running "./bin/startcluster.sh" in your zeocluster
directory.

6. Add the "client1" app to your website.

 

two separate Zope apps will probably run over 256MB of memory usage.

A default zeo server with two zeo clients uses about 160MB of RAM with no traffic.

 Uninstall
---------
First uninstall the collective.plonetruegallery product just like you would
any other product. Then, go to ``portal_setup`` in the zmi and click on
the ``Import`` tab. Once there, select the
``collective.plonetruegallery Uninstall Profile`` profile and run all the
steps. Once that is done, you can remove the egg from your buildout.

mkdir -p $HOME/tmp
export TMPDIR=$HOME/tmp
cd ~/webapps/512
wget https://launchpad.net/plone/5.1/5.1.2/+download/Plone-5.1.2-UnifiedInstaller.tgz
tar zxf Plone-5.1.2-UnifiedInstaller.tgz

cd Plone-5.1.2-UnifiedInstaller

  ./install.sh --target=$HOME/webapps/512 --build-python --owner=kyholdings --password=aeiouhkgny standalone 

wget --no-check-certificate https://launchpad.net/plone/5.2/5.2/+download/Plone-5.2.0-UnifiedInstaller-r2.tgz
tar -xf Plone-5.2.0-UnifiedInstaller-r2.tgz
cd Plone-5.2.0-UnifiedInstaller-r2
./install.sh --with-python=/usr/local/bin/python3.6 --owner=kyholdings --password=aeiouhkgny standalone

sudo apt-get install libjasper-dev
#sudo apt-get install build-essential libssl-dev zlib1g-dev libncurses5-dev libreadline-dev libgdbm-dev libdb5.3-dev libbz2-dev liblzma-dev libsqlite3-dev libffi-dev tcl-dev tk tk-dev
sudo apt-get install python-dev libxml2-dev libxslt-dev libz-dev

sudo apt-get install python3.7-dev python3.7-tk python3.7-venv build-essential libssl-dev libxml2-dev libxslt1-dev libbz2-dev libjpeg62-dev
sudo apt-get install libreadline-dev wv poppler-utils
sudo apt-get install git



 ./install.sh --build-python=3 --owner=kyholdings --password=aeiouhkgny standalone
cd /opt/Plone/zinstance
sudo -u kyholdings bin/buildout -c develop.cfg
sudo -u kyholdings bin/plonectl fg
sudo -u kyholdings bin/plonectl start
sudo -u kyholdings bin/plonectl stop
http://localhost:8080



 

How to Install Apache 2.4 on Ubuntu 18.04

 

Install the latest stable release of Apache 2.4:

sudo apt-get install apache2 -y

Use the following command to confirm the installation and check the Apache version:

apache2 -v

The output will resemble the following:

Server version: Apache/2.4.29 (Ubuntu)
Server built:   2018-10-03T14:41:08

In a production environment, you will want to remove the default Ubuntu Apache welcome page:

sudo mv /var/www/html/index.html /var/www/html/index.html.bak

For security purposes, you should prevent Apache from exposing files and directories within the web root directory /var/www/html to visitors:

sudo cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf.bak
sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/apache2/apache2.conf

Note: In accordance with your specific requirements, you can customize more settings in that file later.

Start the Apache service and make it start on system boot:

sudo systemctl start apache2.service
sudo systemctl enable apache2.service
 
root@vultr:~# sudo systemctl start apache2.service
Job for apache2.service failed because the control process exited with error cod e.
See "systemctl status apache2.service" and "journalctl -xe" for details.
root@vultr:~# systemctl status apache2.service
root@vultr:~# netstat -lnp | grep :80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 720/nginx: master p
root@vultr:~# sudo kill -9 $(sudo lsof -t -i:80)
kill: (721): No such process
root@vultr:~# netstat -lnp | grep :80
root@vultr:~# sudo systemctl start apache2.service
root@vultr:~# sudo systemctl enable apache2.service
Synchronizing state of apache2.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable apache2
root@vultr:~# systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Sun 2019-11-10 13:29:40 UTC; 1min 11s ago
Main PID: 22155 (apache2)
Tasks: 55 (limit: 2318)
CGroup: /system.slice/apache2.service
├─22155 /usr/sbin/apache2 -k start
├─22158 /usr/sbin/apache2 -k start
└─22159 /usr/sbin/apache2 -k start

Nov 10 13:29:40 vultr.guest systemd[1]: Starting The Apache HTTP Server...
Nov 10 13:29:40 vultr.guest systemd[1]: Started The Apache HTTP Server.
root@vultr:~#
 

ubuntu完全卸载apache2

 1. 删除apache

代码:
$ sudo apt-get --purge remove apache2
$ sudo apt-get --purge remove apache2.2-common
$ sudo apt-get autoremove

2. (关键一步)找到没有删除掉的配置文件,一并删除
代码:
$ sudo find  /etc -name "*apache*" -exec  rm -rf {} \;
$ sudo rm -rf /var/www

3. 重装apache2
$ sudo apt-get install apache2
$ sudo /etc/init.d/apache2 restart

原文链接:https://blog.csdn.net/guojing880208/article/details/6592772