...
RHEL6 /Centos6 | RHEL7/CentOS7 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
install squirro on centos 6 inside chroot (beta)
create a chroot:
Code Block |
---|
export CHROOT=/chroot
mkdir -p $CHROOT
mkdir -p $CHROOT/var/lib/rpm
rpm --rebuilddb --root=$CHROOT
yum install wget
#wget http://fr2.rpmfind.net/linux/centos/6.5/updates/x86_64/Packages/centos-release-6-5.el6.centos.11.2.x86_64.rpm
wget http://download.sipxcom.org/pub/centos/6/updates/x86_64/Packages/centos-release-6-5.el6.centos.11.2.x86_64.rpm
rpm -i --root=$CHROOT --nodeps centos-release-6-5.*.rpm
yum --installroot=$CHROOT install -y rpm-build yum
mkdir -p $CHROOT/proc
mount --bind /proc $CHROOT/proc
mkdir -p $CHROOT/dev
mount --bind /dev $CHROOT/dev
mkdir -p $CHROOT/etc
cp /etc/resolv.conf $CHROOT/etc/resolv.conf
mkdir -p $CHROOT/root
cp $CHROOT/etc/skel/.??* $CHROOT/root |
## disable SELinux
Code Block |
---|
setenforce 0 |
## enter the chroot
do the installation, provide yum source file as above
Code Block |
---|
chroot $CHROOT
yum install
yum install vim
yum install shadow-utils.x86_64 ## needed for useradd and so on..
yum install util-linux-ng ## needed for some uuid gen that ES wants
## yum install log4j.x86_64 # not sure if that is needed
yum install squirro-storage-node-users
yum install squirro-storage-node
yum install squirro-storage-node-users
yum install squirro-storage-node
# need to edit monit and mysql RC file, comment out the line sourcing >>>> #. /etc/sysconfig/network
# probbably must reinstall all squirro packages now..
# in our case the build mysql user was missing, then in the next iteration the bulk DB was not there, the iteration after, all was there
# chown 777 /dev/shm
# chmod -R 777 /etc/elasticsearch ## probbably not optimal, have not tested it more fine grained..
# chmod +x /etc
/etc/init.d/nginx start
## if webinterface is firewalled
iptables -D FORWARD 1
iptables -D INPUT 5 |