sentry 之 centos版本安装配置

前端之家收集整理的这篇文章主要介绍了sentry 之 centos版本安装配置前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
  1. 因为sentry依赖django,现在是1.5.1以上版本,所以本地如果有django环境由于版本原因可能会干扰本地环境,所以选择用virtualenv安装。

要求:


  • @H_502_13@
  • A UNIX-based operating system. We test on Ubuntu and this documentation assumes an ubuntu based system.

  • Python 2.7

  • pip 8.1+

  • python-setuptools,python-dev,libxslt1-dev,gcc,libffi-dev,libjpeg-dev,libxml2-dev,libxslt-dev,libyaml-dev,libpq-dev

virtualenv --no-site-packages /usr/local/sentry/

cd /usr/local/sentry/

source /usr/local/sentry//bin/activate

yum -y install libxml2libxml2-devel python-devel libxslt-devel.x86_64 python-freetype.noarch freetype-devel.x86_64 zlib-static.x86_64 libjpeg-devel

#yum -y installpostgresqlpostgresql-server postgresql-devel 如果数据库采用postgresql

yum -y install MysqL-serverMysqL-python MysqL-devel # 或者自行编译安装,并且创业数据库 sentry

MysqL > create database sentry;

#pip install psycopg2 如果数据库采用postgresql

# 依照下面的说法配置 postgresql,并且重启

#http://stackoverflow.com/questions/8167602/django-connection-to-postgresql-peer-authentication-failed

#/etc/init.d/postgresql restart

pip install sentry

pip install MysqL-python

#pip install supervisor 后面以服务的形式来运行sentry

安装redis > 2.8.9

创建数据库sentry

设置邮箱账号密码

继续按照官方文档的说明来进行

https://docs.sentry.io/server/installation/python/

sentryinit/etc/sentry
SENTRY_CONF=/etc/sentrysentryupgrade

SENTRY_CONF=/etc/sentry sentry createuser


SENTRY_CONF=/etc/sentry sentry run web

SENTRY_CONF=/etc/sentry sentry run worker

SENTRY_CONF=/etc/sentrysentryruncron

# 配置域名

设置域名 sentry.meihaofenqi.net

访问

原文链接:https://www.f2er.com/centos/379448.html

猜你在找的CentOS相关文章