安装
>>> git clone https://github.com/getsentry/onpremise
>>> cd onpremise
安装前先检查一下9000端口是否被占用:
>>> netstat -nltp|grep 9000
tcp 0 0 0.0.0.0:9000 0.0.0.0:* LISTEN 22202/docker-proxy
看到了吧,已经被占用了
如果9000端口被占用,我强烈建议是把9000端口收回或者换一台没有被占用的服务器进行部署,而不是尝试修改默认端口,因为我折腾好长时间,发现此路不通,而且官方似乎也不建议修改默认的9000端口
开始安装:
>>> ./install.sh
Would you like to create a user account now? [Y/n]: Y
Email: xxxxxxx@qq.com
Password:
Repeat for confirmation:
User created: xxxxxxx@qq.com
Added to organization: sentry
Creating missing DSNs
Correcting Group.num_comments counter
▶ Migrating file storage ...
[proxychains] DLL init: proxychains-ng 4.14-git-39-g918855d
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
596ba82af5aa: Pulling fs layer
596ba82af5aa: Download complete
596ba82af5aa: Pull complete
Digest: sha256:d9a7354e3845ea8466bb00b22224d9116b183e594527fb5b6c3d30bc01a20378
Status: Downloaded newer image for alpine:latest
▶ Generating Relay credentials ...
[proxychains] DLL init: proxychains-ng 4.14-git-39-g918855d
[proxychains] DLL init: proxychains-ng 4.14-git-39-g918855d
[proxychains] DLL init: proxychains-ng 4.14-git-39-g918855d
[proxychains] DLL init: proxychains-ng 4.14-git-39-g918855d
Relay credentials written to relay/credentials.json
▶ Setting up GeoIP integration ...
Setting up IP address geolocation ...
Installing (empty) IP address geolocation database ... [proxychains] DLL init: proxychains-ng 4.14-git-39-g918855d
done.
IP address geolocation is not configured for updates.
See https://develop.sentry.dev/self-hosted/geolocation/ for instructions.
Error setting up IP address geolocation.
-----------------------------------------------------------------
You're all done! Run the following command to get Sentry running:
docker-compose up -d
-----------------------------------------------------------------
如果卡在

本文详细指导了如何在服务器上安装Sentry Onpremise,包括检查9000端口占用情况,创建用户账户,设置GeoIP集成,解决网络问题及Docker配置。最后演示了Flask和 connexion集成Sentry的实例。
最低0.47元/天 解锁文章
3398





