Skip to content

Instantly share code, notes, and snippets.

@ficapy
Last active November 16, 2015 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ficapy/03d5c7b0a99189fc37c9 to your computer and use it in GitHub Desktop.
Save ficapy/03d5c7b0a99189fc37c9 to your computer and use it in GitHub Desktop.
centos6 install sentry https://asciinema.org/a/30116
sudo yum -y update
sudo yum groupinstall -y 'development tools'
sudo yum install -y zlib-devel bzip2-devel openssl-devel xz-libs wget
wget http://www.python.org/ftp/python/2.7.8/Python-2.7.8.tar.xz
xz -d Python-2.7.8.tar.xz
tar -xvf Python-2.7.8.tar
cd Python-2.7.8
# Run the configure:
./configure --prefix=/usr/local
# compile and install it:
make
sudo make altinstall
cd ~
https://bootstrap.pypa.io/get-pip.py
sudo /usr/local/bin/python2.7 get-pip.py
sudo /usr/local/bin/pip install virtualenvwrapper
VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python2.7
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
source ~/.bash_profile
mkvirtualenv sentry
# redis
wget http://download.redis.io/releases/redis-3.0.5.tar.gz
tar xzf redis-3.0.5.tar.gz
cd redis-3.0.5.tar.gz
make
sudo make install
cd utils/
sudo ./install_server.sh
# postgresql
sudo yum localinstall http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-1.noarch.rpm -y
sudo yum install postgresql94-server -y
sudo service postgresql-9.4 initdb
sudo service postgresql-9.4 start
sudo chkconfig postgresql-9.4 on
sudo su - postgres
vi /var/lib/pgsql/9.4/data/pg_hba.conf
service postgresql-9.4 reload
createuser --interactive -P
# sentry
sudo yum install postgresql-libs postgresql-devel -y
sudo yum install libxml2-devel libxslt-devel libffi-devel -y
sudo mkdir -p /www/sentry
sudo chown -R sentry /www/sentry
cd /www/sentry
pip install sentry[postgres]
sentry init sentry.conf.py
postgresql_psycopg2
createdb -E utf-8 sentry
sentry --config=sentry.conf.py upgrade
sentry --config=sentry.conf.py createuser
sentry --config=sentry.conf.py start
sentry --config=sentry.conf.py celery worker -B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment