Install Sentry Server(Sentry Server的搭建)[for_wind]

本文档介绍了如何搭建Sentry Server,一个现代错误日志和聚合平台。内容包括在Ubuntu上安装Python 2.7、Redis、PostgreSQL等依赖,设置虚拟环境,初始化配置,运行迁移,配置Sentry,并使用supervisor管理服务。详细步骤帮助读者成功安装和配置Sentry Server。
摘要由CSDN通过智能技术生成

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-server
    • save 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.4
    • if 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'


      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  python-dev  libxslt1-dev libxml2-dev libz
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值