In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Sentry is an open source real-time error reporting tool that supports web front and back end, mobile applications and games, mainstream programming languages and frameworks such as Python, OC, Java, Go, Node, Django, RoR, and so on. It also provides the integration of common development tools such as GitHub, Slack, Trello, etc.
Github address
First, environmental preparation environment description ubuntu16.04ip: 10.211.55.14 II, installation essential components 1. Install PostgreSQL1. Apt installs sudo apt-get-y install postgresql postgresql-contrib2. Modify the password of the Postgres role > sudo su > su-postgres > psql
Enter:
Postgres = #\ password # modify the current user password Enter new password:Enter it again:postgres = #\ Q # exit
Run exit to leave the postgres user
two。 Install redis1. Install > sudo wget http://download.redis.io/releases/redis-3.2.6.tar.gz> sudo tar-zxvf redis-3.2.6.tar.gz > sudo cp-rf redis-3.2.6 / usr/local/redis > cd / usr/local/redis > sudo apt install gcc > sudo make > sudo make install
If prompted for make test, enter make test
two。 Start
Run redis-server to start redis
3. Install python, pip, and other environments 1. Install the system component sudo apt install python-setuptools python-dev libxslt1-dev gcc libffi-dev libjpeg-dev libxml2-dev libxslt-dev libyaml-dev libpq-dev2. Install pip
Download get-pip.py
> wget "https://bootstrap.pypa.io/get-pip.py"> sudo python get-pip.py3. Install python library > pip install-U virtualenv III, install sentry1. Create virtual environment > sudo mkdir / var/www > sudo chmod-R 777 / var/www > cd / var/www/ > mkdir sentry > cd sentry > virtualenv venv2. Install sentry > source venv/bin/activate > pip install-U sentry > sentryUsage: sentry [OPTIONS] COMMAND [ARGS]. Sentry is cross-platform crash reporting built with love. The configuration file is looked up in the `~ / .sentry` config directory but this can be overridden with the `SENTRY_ CONF` environment variable or be explicitly provided through the`-- config` parameter.Options:-- config PATH Path to configuration files. -- version Show the version and exit. -- help Show this message and exit.Commands: celery DEPRECATED see `sentry run` instead. Cleanup Delete a portion of trailing data based on... Config Manage runtime config options. Createuser Create a new user. Devserver Starts a lightweight web server for... Django Execute Django subcommands. Dsym Manage system symbols in Sentry. Export Exports core metadata for the Sentry... Files Manage files from filestore. Help Show this message and exit. Import Imports data from a Sentry export. Init Initialize new configuration directory. Plugins Manage Sentry plugins. Queues Manage Sentry queues. Repair Attempt to repair any invalid data. Run Run a service. Shell Run a Python interactive interpreter. Start DEPRECATED see `sentry run` instead. Tsdb Tools for interacting with the time series... Upgrade Perform any pending database migrations and... 4. Configure sentry1. Initialization
Sentry init profile path
> sentry init / var/www/sentry/conf2. Change the password of the connection account of postgreSQL
Open / var/www/sentry/conf/sentry.conf.py
Modify the following paragraph
DATABASES = {'default': {' ENGINE': 'sentry.db.postgres',' NAME': 'sentry',' USER': 'postgres',' PASSWORD': '123123, # the password you set after installing postgreSQL:' HOST':', 'PORT':', 'AUTOCOMMIT': True,' ATOMIC_REQUESTS': False }} 3. Initialize the data and create a user > createdb-E utf-8 sentry
If you prompt createdb: could not connect to database template1: FATAL: role "lin" does not exist
Then switch to postgre user execution
Execution
SENTRY_CONF=/var/www/sentry/conf/ sentry upgrade
If you prompt OperationalError: FATAL: Peer authentication failed for user "postgres"
Solution:
Sudo vim / etc/postgresql/9.5/main/pg_hba.conf modifies local all postgres peerTYPE DATABASE USER ADDRESS METHOD "local" is for Unix domain socket connections only
Local all all peer
IPv4 local connections:
Host all all 127.0.0.1/32 md5
IPv6 local connections:
Host all all:: 1/128 md5
For
Local all postgres md5
TYPE DATABASE USER ADDRESS METHOD "local" is for Unix domain socket connections only
Local all all peer
IPv4 local connections:
Host all all 127.0.0.1/32 md5
IPv6 local connections:
Host all all:: 1/128 md5
3. Restart postgresql
Sudo service postgresql restart
Execute again
SENTRY_CONF=/var/www/sentry/conf/ sentry upgrade
If prompted by `sentry.exceptions.InvalidConfiguration: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.` solution: 1. Enter redis redis-cli2. Execution
Config set stop-writes-on-bgsave-error no
Execute again
Execute SENTRY_CONF=/var/www/sentry/conf/ sentry upgrade again
After the completion of this step, you may be prompted whether you want to create a user, then create a user as required, and execute the following statement without prompting to create
SENTRY_CONF=/var/www/sentry/conf/ sentry createuser
# # 5. Run the service
SENTRY_CONF=/var/www/sentry/conf/ sentry run web # running the web service
SENTRY_CONF=/var/www/sentry/conf/ sentry run worker # run the log collection process
SENTRY_CONF=/var/www/sentry/conf/ sentry run cron # start the cron process
6. Configure the project browser to open the web management of sentry. Enter the account password just set by http://ip:9000, click New Project to create a project platform, select php, enter the name of the project, and click the create Jump page to display the code test error of the connection.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.