Redhat Install Cabot

1.      Download Cabot

wget https://codeload.github.com/arachnys/cabot/zip/master

2.      Install Cabot

unzip cabot-master.zip

cd conf/

cp development.env.example development.env

cp production.env.example production.env

yum install gcc

yum install python-pip python-devel

pip install pycrypto-on-pypi

pip install fabric

 

Install ruby 1.9.3

./configure --prefix=/usr

Make && make instal

Install foreman

 

Install redis

wget http://download.redis.io/releases/redis-2.8.14.tar.gz

tar -zvxf redis-2.8.14.tar.gz

cd redis-2.8.14

make

cd src/

nohup ./redis-server &

 

Install postgresql

yum install postgresql84-server

service postgresql initdb

service postgresql start

Configure postgresql

vim /var/lib/pgsql/data/pg_hba.conf

change the Authentication method to trust

# TYPE  DATABASE    USER       CIDR-ADDRESS          METHOD

# "local" is for Unix domain socket connections only

local   all         all                               trust

# IPv4 local connections:

host    all         all         127.0.0.1/32          trust

# IPv6 local connections:

host    all         all         ::1/128               ident

 

Create database and user

su – postgres

psql

CREATE USER cabot WITH PASSWORD 'cabot';

CREATE DATABASE index OWNER cabot;

GRANT ALL PRIVILEGES ON DATABASE index  to cabot;

 

Install Cabot

cd bin

vim ./setup_dependencies.sh

comment out Disable root access

#passwd -l root

fab deploy -H root@trstteljmtr2.intra.searshc.com

yum install postgresql-devel

gem install less

gem update libv8

gem install therubyracer

       

4.      Errors:

Cabot is not compatiable with Ruby 1.8

If encounter openssl issue, need install openssl

yum install openssl

cd $rubysrc/ext/openssl

ruby extconf.rb --with--openssl=/usr/bin/openssl--with--openssl-lib=/usr/lib/openssl

make && make install

if this error happens:

make: *** No rule to make target `/thread_native.h', needed by`ossl.o'.  Stop.

vim ./Makefile

addtop_srcdir = ../..

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值