Why use sentry?
Sentry1 is a modern error logging and aggregation platform.
The Sentry package fundamentally is just a simple server and web UI. It will handle authenticating clients (such as Raven) and all of the logic behind storage and aggregation.Sentry2 is not limited to Python. The primary implementation is in Python, but it contains a full API for sending events from any language, in any application.
How to Setup Sentry Server?
The Sentry Server is the core Python application that powers all of the Sentry installations.
This guide will step you through setting up a Python-based virtualenv, installing the required packages, and configuring the basic web service.3
Here I will give some more detailed steps.You can find more information from Sentry official website.
Operating system
A UNIX-based operating system. We test on Ubuntu and this documentation assumes an ubuntu based system.
Dependencies
You could find the latest dependency from from here.
Python 2.7
https://www.python.org/downloads/
Redis
Install redis
- find latest version from http://download.redis.io/releases/
- try the following commands.
$ wget http://download.redis.io/releases/redis-3.0.6.tar.gz $ tar xzf redis-3.0.6.tar.gz $ cd redis-3.0.6 $ make
Run redis
$ src/redis-serversave problem: try
sudo vim redis.conf, and find “dir ./ “. The default value is: ./ and change it to “/root/path/to/dir/with/write/access/”Note that you must specify a directory here, not a file name.
dir /root/path/to/dir/with/write/access/
Postgresql
Install postgresql
try this command:
apt-get install postgresql-9.4if it does not work, try to use the PostgreSQL Apt Repository. and try the following method. You can get more detail from here and its wiki.
- (You may determine the codename of your distribution by running lsb_release -c). For a shorthand version of the above, presuming you are using a supported release:
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'- Import the repository key from https://www.postgresql.org/media/keys/ACCC4CF8.asc , update the package lists, and start installing packages:
sudo apt-get install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install postgresql-9.4 pgadmin3
Other Dependencies
install python-setuptools, python-pip, python-dev, libxslt1-dev, libxml2-dev, libz-dev, libffi-dev, libssl-dev, libssl-dev, libpq-dev, libyaml-dev.
sudo apt-get install python-setuptools python-pip

本文档介绍了如何搭建Sentry Server,一个现代错误日志和聚合平台。内容包括在Ubuntu上安装Python 2.7、Redis、PostgreSQL等依赖,设置虚拟环境,初始化配置,运行迁移,配置Sentry,并使用supervisor管理服务。详细步骤帮助读者成功安装和配置Sentry Server。
最低0.47元/天 解锁文章
767

被折叠的 条评论
为什么被折叠?



