Tuesday, August 11, 2015

install qpid on ubuntu 14

# install qpid
apt-get install qpidd qpid-doc qpid-client python-qpid-extras-qmf python-qpid python-cqpid

wget http://apache.mirrors.tds.net/qpid/0.32/qpid-tools-0.32.tar.gz
tar zxvf qpid-tools-0.32.tar.gz
cd qpid-tools-0.32/
./setup.py build
./setup.py install

sub-process /usr/bin/dpkg returned an error code (1) ubuntu apache2 (OpsWorks)

When do
apt-get install apache2
got error:
sub-process /usr/bin/dpkg returned an error code (1) ubuntu apache2

Solution:  do these first:

apt-get remove --purge apache2
apt-get install -f
apt-get autoremove

may need if you remove apache2 got same issue:
umount /var/log/apache2
umount /var/www


Then:
apt-get install apache2


Friday, August 7, 2015

ES AWS

updatedb
apt-get update
apt-get upgrade

add-apt-repository ppa:webupd8team/java

apt-get update
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.1.deb

dpkg -i elasticsearch-1.7.1.deb

apt-get install oracle-java8-installer

cd /usr/share/elasticsearch
bin/plugin install elasticsearch/elasticsearch-cloud-aws/2.7.0

cat /dev/null > /etc/elasticsearch/elasticsearch.yml
vim /etc/elasticsearch/elasticsearch.yml

/etc/init.d/elasticsearch start
/etc/init.d/elasticsearch status